diff --git a/orchagent/muxorch.cpp b/orchagent/muxorch.cpp index 6770a4defb..baa0495a60 100644 --- a/orchagent/muxorch.cpp +++ b/orchagent/muxorch.cpp @@ -962,6 +962,10 @@ bool MuxOrch::isNeighborActive(const IpAddress& nbr, const MacAddress& mac, stri if (ptr) { + if (ptr->getSkipNeighborsSet().find(nbr) != ptr->getSkipNeighborsSet().end()) + { + return true; + } return ptr->isActive(); } diff --git a/orchagent/muxorch.h b/orchagent/muxorch.h index 011d61b924..c9b09fd823 100644 --- a/orchagent/muxorch.h +++ b/orchagent/muxorch.h @@ -97,6 +97,10 @@ class MuxCable { return nbr_handler_->getNextHopId(nh); } + std::set getSkipNeighborsSet() + { + return skip_neighbors_; + } private: bool stateActive();