Skip to content

Commit

Permalink
Sflow fixes during DEL processing (sonic-net#1427)
Browse files Browse the repository at this point in the history
Co-authored-by: dgsudharsan <sudharsan_gopalarat@dell.com>
  • Loading branch information
Sudharsan D.G and dgsudharsan authored Sep 4, 2020
1 parent e54948a commit 65f63c1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cfgmgr/sflowmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,10 @@ void SflowMgr::doTask(Consumer &consumer)
}
sflowCheckAndFillValues(key,values);
m_sflowPortConfMap[key].local_conf = true;
m_appSflowSessionTable.set(key, values);
if (m_gEnable)
{
m_appSflowSessionTable.set(key, values);
}
}
}
}
Expand All @@ -340,6 +343,7 @@ void SflowMgr::doTask(Consumer &consumer)
{
sflowHandleService(false);
sflowHandleSessionAll(false);
sflowHandleSessionLocal(false);
}
m_gEnable = false;
m_appSflowTable.del(key);
Expand All @@ -350,7 +354,10 @@ void SflowMgr::doTask(Consumer &consumer)
{
if (!m_intfAllConf)
{
sflowHandleSessionAll(true);
if (m_gEnable)
{
sflowHandleSessionAll(true);
}
}
m_intfAllConf = true;
}
Expand Down

0 comments on commit 65f63c1

Please sign in to comment.