Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
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
1 change: 1 addition & 0 deletions orchagent/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ orchagent_SOURCES = \
notifications.cpp \
nhgorch.cpp \
nhgbase.cpp \
protnhg.cpp \
cbf/cbfnhgorch.cpp \
cbf/nhgmaporch.cpp \
routeorch.cpp \
Expand Down
14 changes: 14 additions & 0 deletions orchagent/neighorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,13 @@ bool NeighOrch::addNextHop(NeighborContext& ctx)

gFgNhgOrch->validNextHopInNextHopGroup(nexthop);

/* Sync skipped group member(s); gNhgOrch may be null in unit tests. */
if (gNhgOrch && !gNhgOrch->validateNextHop(nexthop))
{
SWSS_LOG_WARN("Failed to validate next hop %s in next hop group(s)",
nexthop.to_string().c_str());
}

// For nexthop with incoming port which has down oper status, NHFLAGS_IFDOWN
// flag should be set on it.
// This scenario may happen under race condition where buffered neighbor event
Expand Down Expand Up @@ -569,6 +576,13 @@ bool NeighOrch::processBulkAddNextHop(NeighborContext& ctx)

gFgNhgOrch->validNextHopInNextHopGroup(nexthop);

/* Sync skipped group member(s); gNhgOrch may be null in unit tests. */
if (gNhgOrch && !gNhgOrch->validateNextHop(nexthop))
{
SWSS_LOG_WARN("Failed to validate next hop %s in next hop group(s)",
nexthop.to_string().c_str());
}

// For nexthop with incoming port which has down oper status, NHFLAGS_IFDOWN
// flag should be set on it.
// This scenario may happen under race condition where buffered neighbor event
Expand Down
Loading
Loading