diff --git a/cfgmgr/vlanmgr.cpp b/cfgmgr/vlanmgr.cpp index 5124cd5a7a0f..aa0237781993 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; @@ -461,6 +462,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; }