Skip to content

Commit a153622

Browse files
qiluo-msftabdosi
authored andcommitted
Add more log message, fix test code (sonic-net#1239)
1 parent e5ffa4e commit a153622

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
@@ -249,7 +249,7 @@ int main(int argc, char **argv)
249249
SWSS_LOG_ERROR("Failed to create a switch, rv:%d", status);
250250
exit(EXIT_FAILURE);
251251
}
252-
SWSS_LOG_NOTICE("Create a switch");
252+
SWSS_LOG_NOTICE("Create a switch, id:%" PRIu64, gSwitchId);
253253

254254
/* Get switch source MAC address if not provided */
255255
if (!gMacAddress)

tests/test_route.py

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

116116
# check ASIC route database
117117
tbl = swsscommon.Table(self.adb, "ASIC_STATE:SAI_OBJECT_TYPE_ROUTE_ENTRY")
118+
route_found = False
118119
for key in tbl.getKeys():
119120
route = json.loads(key)
120121
if route["dest"] == "2.2.2.0/24":
@@ -192,6 +193,7 @@ def test_RouteAddRemoveIpv6Route(self, dvs, testlog):
192193

193194
# check ASIC route database
194195
tbl = swsscommon.Table(self.adb, "ASIC_STATE:SAI_OBJECT_TYPE_ROUTE_ENTRY")
196+
route_found = False
195197
for key in tbl.getKeys():
196198
route = json.loads(key)
197199
if route["dest"] == "3000::/64":

0 commit comments

Comments
 (0)