Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tlm_teamd: Filter portchannel subinterface events from STATE_DB LAG_TABLE #2408

Merged
merged 3 commits into from
Aug 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tlm_teamd/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
INCLUDES = -I $(top_srcdir)
INCLUDES = -I $(top_srcdir) -I$(top_srcdir)/lib

bin_PROGRAMS = tlm_teamd

Expand Down
6 changes: 6 additions & 0 deletions tlm_teamd/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

#include "teamdctl_mgr.h"
#include "values_store.h"
#include "subintf.h"


bool g_run = true;
Expand All @@ -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)
judyjoseph marked this conversation as resolved.
Show resolved Hide resolved
{
SWSS_LOG_INFO("Skip subintf %s statedb event", lag_name.c_str());
continue;
}
if (op == "SET")
{
mgr.add_lag(lag_name);
Expand Down