Skip to content

Commit

Permalink
Add more log message, fix test code (#1239)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiluo-msft authored Apr 4, 2020
1 parent fc25f82 commit 8df99da
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 @@ -233,7 +233,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 @@ -118,6 +118,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 @@ -195,6 +196,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 8df99da

Please sign in to comment.