Skip to content

Commit 5da255c

Browse files
authored
read switch mac from DEVICE_METADATA|localhost:mac (sonic-net#373)
1 parent 45c1ed4 commit 5da255c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cfgmgr/vlanmgrd.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ int main(int argc, char **argv)
5353
*/
5454
string switch_mac_str;
5555
stringstream cmd;
56-
cmd << REDIS_CLI_CMD << " -n " << CONFIG_DB << " hget " << " \"SWITCH|SWITCH_ATTR\" " << " switch_mac";
56+
cmd << REDIS_CLI_CMD << " -n " << CONFIG_DB << " hget " << " \"DEVICE_METADATA|localhost\" " << " mac";
5757
EXEC_WITH_ERROR_THROW(cmd.str(), switch_mac_str);
5858
gMacAddress = MacAddress(switch_mac_str);
5959

0 commit comments

Comments
 (0)