diff --git a/tlm_teamd/Makefile.am b/tlm_teamd/Makefile.am index 1c86c118ee51..46ddfd22f552 100644 --- a/tlm_teamd/Makefile.am +++ b/tlm_teamd/Makefile.am @@ -1,4 +1,4 @@ -INCLUDES = -I $(top_srcdir) +INCLUDES = -I $(top_srcdir) -I$(top_srcdir)/lib bin_PROGRAMS = tlm_teamd diff --git a/tlm_teamd/main.cpp b/tlm_teamd/main.cpp index 3a464e8a67b9..291b044eda12 100644 --- a/tlm_teamd/main.cpp +++ b/tlm_teamd/main.cpp @@ -9,6 +9,7 @@ #include "teamdctl_mgr.h" #include "values_store.h" +#include "subintf.h" bool g_run = true; @@ -30,6 +31,11 @@ void update_interfaces(swss::SubscriberStateTable & table, TeamdCtlMgr & mgr) const auto & lag_name = kfvKey(entry); const auto & op = kfvOp(entry); + if (lag_name.find(VLAN_SUB_INTERFACE_SEPARATOR) != std::string::npos) + { + SWSS_LOG_INFO("Skip subintf %s statedb event", lag_name.c_str()); + continue; + } if (op == "SET") { mgr.add_lag(lag_name);