From 5da255c78cb5d02a49b0a5299764c325ed0bdc32 Mon Sep 17 00:00:00 2001 From: lguohan Date: Mon, 6 Nov 2017 22:32:01 -0800 Subject: [PATCH] read switch mac from DEVICE_METADATA|localhost:mac (#373) --- cfgmgr/vlanmgrd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfgmgr/vlanmgrd.cpp b/cfgmgr/vlanmgrd.cpp index ced51a1585f4..0852077e4fdd 100644 --- a/cfgmgr/vlanmgrd.cpp +++ b/cfgmgr/vlanmgrd.cpp @@ -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);