Skip to content

Commit 8df99da

Browse files
authored
Add more log message, fix test code (sonic-net#1239)
1 parent fc25f82 commit 8df99da

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

orchagent/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ int main(int argc, char **argv)
233233
SWSS_LOG_ERROR("Failed to create a switch, rv:%d", status);
234234
exit(EXIT_FAILURE);
235235
}
236-
SWSS_LOG_NOTICE("Create a switch");
236+
SWSS_LOG_NOTICE("Create a switch, id:%" PRIu64, gSwitchId);
237237

238238
/* Get switch source MAC address if not provided */
239239
if (!gMacAddress)

tests/test_route.py

+2
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ def test_RouteAddRemoveIpv4Route(self, dvs, testlog):
118118

119119
# check ASIC route database
120120
tbl = swsscommon.Table(self.adb, "ASIC_STATE:SAI_OBJECT_TYPE_ROUTE_ENTRY")
121+
route_found = False
121122
for key in tbl.getKeys():
122123
route = json.loads(key)
123124
if route["dest"] == "2.2.2.0/24":
@@ -195,6 +196,7 @@ def test_RouteAddRemoveIpv6Route(self, dvs, testlog):
195196

196197
# check ASIC route database
197198
tbl = swsscommon.Table(self.adb, "ASIC_STATE:SAI_OBJECT_TYPE_ROUTE_ENTRY")
199+
route_found = False
198200
for key in tbl.getKeys():
199201
route = json.loads(key)
200202
if route["dest"] == "3000::/64":

0 commit comments

Comments
 (0)