summaryrefslogtreecommitdiff
path: root/ospfclient/ospfclient.c
diff options
context:
space:
mode:
authorChirag Shah <chirag@nvidia.com>2024-03-15 18:18:42 -0700
committerChirag Shah <chirag@nvidia.com>2024-03-18 15:36:41 -0700
commit6b96dcf80e49ea579b6c1375848d1f7b7719b322 (patch)
treeb44f9401eb0d54d2828ce62d05d399315da06649 /ospfclient/ospfclient.c
parent5e420114e170063729ef8304bc266b16e784d061 (diff)
bgpd: do not del peer upon pg remote as change
Currently, when peer-group remote-as is removed, it deletes all associated neighbors. Upon re configuring peer-group remote-as, all neighbors needs to be reconfigured. Instead, when peer-group remote-as is remove, cease associated peer's connection and keep in Idle state. When the peer-group remote-as is (re)configured, trigger BGP Peer FSM to form neighbor. Note the connection will be initiated after start timer expiry. Ticket: #3828243 Testing: ----- Peers start config ---- router bgp 65566 bgp router-id 27.0.0.5 bgp bestpath as-path multipath-relax neighbor fabric peer-group neighbor fabric remote-as external >>>> neighbor swp1 interface peer-group fabric neighbor swp1 advertisement-interval 0 neighbor swp1 timers 3 9 neighbor swp1 timers connect 10 neighbor swp2 interface peer-group fabric neighbor swp2 advertisement-interval 0 neighbor swp2 timers 3 9 tor(config)# router bgp 65566 tor(config-router)# no neighbor fabric remote-as external ----- Peers are retained in config ---- router bgp 65566 bgp router-id 27.0.0.5 bgp bestpath as-path multipath-relax neighbor fabric peer-group neighbor swp1 interface peer-group fabric neighbor swp1 advertisement-interval 0 neighbor swp1 timers 3 9 neighbor swp1 timers connect 10 neighbor swp2 interface peer-group fabric neighbor swp2 advertisement-interval 0 neighbor swp2 timers 3 9 ----- Peers are in idle state ---- Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc spine-1(swp1) 4 0 52 34 0 0 0 00:00:04 Idle 0 N/A spine-3(swp2) 4 0 52 34 0 0 0 00:00:04 Idle 0 N/A tor(config)# router bgp 65566 tor(config-router)# neighbor fabric remote-as external ---- after connect timer expiry forms the neighbor ---- Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd PfxSnt Desc spine-1(swp1) 4 64435 784 749 0 0 0 00:35:10 11 2 N/A spine-3(swp2) 4 64435 784 749 0 0 0 00:35:10 11 2 N/A Signed-off-by: Chirag Shah <chirag@nvidia.com>
Diffstat (limited to 'ospfclient/ospfclient.c')
0 files changed, 0 insertions, 0 deletions