diff --git a/cfgmgr/vlanmgr.cpp b/cfgmgr/vlanmgr.cpp index 830f8d9d26..51e9741b6a 100644 --- a/cfgmgr/vlanmgr.cpp +++ b/cfgmgr/vlanmgr.cpp @@ -7,6 +7,7 @@ #include "tokenize.h" #include "shellcmd.h" #include "warm_restart.h" +#include using namespace std; using namespace swss; @@ -453,6 +454,11 @@ bool VlanMgr::isMemberStateOk(const string &alias) } else if (m_statePortTable.get(alias, temp)) { + auto state_opt = swss::fvsGetValue(temp, "state", true); + if (!state_opt) + { + return false; + } SWSS_LOG_DEBUG("%s is ready", alias.c_str()); return true; }