Skip to content

Commit 486939a

Browse files
tlm_teamd: Filter portchannel subinterface events from STATE_DB LAG_TABLE (#2408)
* Fix for issue #11218 Avoid processing portchannel subinterfaces in teamd
1 parent a4b8992 commit 486939a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

tlm_teamd/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
INCLUDES = -I $(top_srcdir)
1+
INCLUDES = -I $(top_srcdir) -I$(top_srcdir)/lib
22

33
bin_PROGRAMS = tlm_teamd
44

tlm_teamd/main.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include "teamdctl_mgr.h"
1111
#include "values_store.h"
12+
#include "subintf.h"
1213

1314

1415
bool g_run = true;
@@ -30,6 +31,11 @@ void update_interfaces(swss::SubscriberStateTable & table, TeamdCtlMgr & mgr)
3031
const auto & lag_name = kfvKey(entry);
3132
const auto & op = kfvOp(entry);
3233

34+
if (lag_name.find(VLAN_SUB_INTERFACE_SEPARATOR) != std::string::npos)
35+
{
36+
SWSS_LOG_INFO("Skip subintf %s statedb event", lag_name.c_str());
37+
continue;
38+
}
3339
if (op == "SET")
3440
{
3541
mgr.add_lag(lag_name);

0 commit comments

Comments
 (0)