Skip to content

Commit

Permalink
read switch mac from DEVICE_METADATA|localhost:mac (sonic-net#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
lguohan authored Nov 7, 2017
1 parent 45c1ed4 commit 5da255c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cfgmgr/vlanmgrd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ int main(int argc, char **argv)
*/
string switch_mac_str;
stringstream cmd;
cmd << REDIS_CLI_CMD << " -n " << CONFIG_DB << " hget " << " \"SWITCH|SWITCH_ATTR\" " << " switch_mac";
cmd << REDIS_CLI_CMD << " -n " << CONFIG_DB << " hget " << " \"DEVICE_METADATA|localhost\" " << " mac";
EXEC_WITH_ERROR_THROW(cmd.str(), switch_mac_str);
gMacAddress = MacAddress(switch_mac_str);

Expand Down

0 comments on commit 5da255c

Please sign in to comment.