oxidecomputer / maghemite

A routing stack written in Rust.
Mozilla Public License 2.0
36 stars 2 forks source link

BGP: Add equivalent of "clear ip bgp [neighbor] [in | out | soft]" #331

Closed taspelund closed 2 days ago

taspelund commented 2 months ago

Add ability to administratively "clear" BGP neighbor sessions.

There should be options to do the following:

  1. Inbound: send route-refresh to peer (if negotiated via capabilities) or re-process adj-rib-in (if we eventually implement that)
  2. Outbound: trigger update to peer containing all currently advertised routes
  3. Hard/Force: send BGP Notification message (with subcodes admin shutdown) to reset the BGP/TCP session