Skip to content

Commit

Permalink
Add more log message, fix test code (sonic-net#1239)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiluo-msft authored and abdosi committed Jun 16, 2020
1 parent e5ffa4e commit a153622
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion orchagent/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ int main(int argc, char **argv)
SWSS_LOG_ERROR("Failed to create a switch, rv:%d", status);
exit(EXIT_FAILURE);
}
SWSS_LOG_NOTICE("Create a switch");
SWSS_LOG_NOTICE("Create a switch, id:%" PRIu64, gSwitchId);

/* Get switch source MAC address if not provided */
if (!gMacAddress)
Expand Down
2 changes: 2 additions & 0 deletions tests/test_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def test_RouteAddRemoveIpv4Route(self, dvs, testlog):

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

# check ASIC route database
tbl = swsscommon.Table(self.adb, "ASIC_STATE:SAI_OBJECT_TYPE_ROUTE_ENTRY")
route_found = False
for key in tbl.getKeys():
route = json.loads(key)
if route["dest"] == "3000::/64":
Expand Down

0 comments on commit a153622

Please sign in to comment.