@@ -697,7 +697,6 @@ void MuxCable::updateNeighborFromEvent(NextHopKey nh, bool add)
697697 {
698698 mux_orch_->removeNexthop (nh);
699699 }
700- nbr_handler_->update (nh, tnh, add, state_);
701700 updateRoutesForNextHop (nh);
702701}
703702
@@ -790,7 +789,6 @@ void MuxNbrHandler::update(NextHopKey nh, sai_object_id_t tunnelId, bool add, Mu
790789 }
791790
792791 gRouteOrch ->updateNextHopRoutes (nh, num_routes);
793- gNeighOrch ->increaseNextHopRefCount (nh, num_routes);
794792 break ;
795793 case MuxState::MUX_STATE_STANDBY:
796794 neighbors_[nh.ip_address ] = tunnelId;
@@ -811,9 +809,6 @@ void MuxNbrHandler::update(NextHopKey nh, sai_object_id_t tunnelId, bool add, Mu
811809 nh.ip_address .to_string ().c_str (), nh.alias .c_str ());
812810 }
813811
814- gRouteOrch ->updateNextHopRoutes (nh, num_routes);
815- gNeighOrch ->decreaseNextHopRefCount (nh, num_routes);
816- gNeighOrch ->disableNeighbor (nh);
817812 updateTunnelRoute (nh, true );
818813 gRouteOrch ->updateNextHopRoutes (nh, num_routes);
819814 break ;
@@ -2055,26 +2050,6 @@ bool MuxOrch::handleMuxCfg(const Request& request)
20552050 (MuxCable (port_name, srv_ip, srv_ip6, mux_peer_switch_, cable_type));
20562051 addSkipNeighbors (skip_neighbors);
20572052
2058- // Add neighbors that were learned before this mux port was configured.
2059- NeighborTable m_neighbors;
2060- gNeighOrch ->getMuxNeighborsForPort (port_name, m_neighbors);
2061- for (const auto &entry : m_neighbors)
2062- {
2063- bool nexthop_found = containsNextHop (entry.first );
2064- bool is_skip_neighbor = isSkipNeighbor (entry.first .ip_address );
2065- if (!nexthop_found && !is_skip_neighbor)
2066- {
2067- SWSS_LOG_NOTICE (" Neighbor %s on %s learned before mux port %s configured. updating..." ,
2068- entry.first .ip_address .to_string ().c_str (),
2069- entry.second .mac .to_string ().c_str (),
2070- port_name.c_str ()
2071- );
2072-
2073- NeighborUpdate neighbor_update = {entry.first , entry.second .mac , 1 };
2074- updateNeighbor (neighbor_update);
2075- }
2076- }
2077-
20782053 SWSS_LOG_NOTICE (" Mux entry for port '%s' was added, cable type %d" , port_name.c_str (), cable_type);
20792054 }
20802055 else
0 commit comments