Skip to content

Commit

Permalink
[vrfmgrd] Fix VRF is not set to VRF_TABLE in APP_DB correctly (#768)
Browse files Browse the repository at this point in the history
vrfmgrd always set VNET_TABLE in APP_DB whatever the table name is. It should use CFG_VRF_TABLE_NAME instead of APP_VRF_TABLE_NAME to judge which table(Vrf or VNET) to be operated.

Signed-off-by: yorke <yorke.yuan@asterfusion.com>
  • Loading branch information
lorchid authored and prsunny committed Jan 24, 2019
1 parent e84a6ab commit f637557
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfgmgr/vrfmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ void VrfMgr::doTask(Consumer &consumer)
m_stateVrfTable.set(vrfName, fvVector);

SWSS_LOG_NOTICE("Created vrf netdev %s", vrfName.c_str());
if (consumer.getTableName() == APP_VRF_TABLE_NAME)
if (consumer.getTableName() == CFG_VRF_TABLE_NAME)
{
m_appVrfTableProducer.set(vrfName, kfvFieldsValues(t));
}
Expand All @@ -180,7 +180,7 @@ void VrfMgr::doTask(Consumer &consumer)

m_stateVrfTable.del(vrfName);

if (consumer.getTableName() == APP_VRF_TABLE_NAME)
if (consumer.getTableName() == CFG_VRF_TABLE_NAME)
{
m_appVrfTableProducer.del(vrfName);
}
Expand Down

0 comments on commit f637557

Please sign in to comment.