]> git.proxmox.com Git - mirror_frr.git/commit - doc/user/bgp.rst
bgpd: Send Hard Reset Notification for BGP_NOTIFY_CEASE_ADMIN_RESET
authorDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 6 May 2022 07:21:15 +0000 (10:21 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 10 May 2022 06:04:25 +0000 (09:04 +0300)
commit1ae314be4fa741dad8ca0d329e7142c248522169
treefc7b01b7e285230d3efaf76950502bd73d469f1b
parent026f28e8caf9c37c851ad7b649e8439e0baf9588
bgpd: Send Hard Reset Notification for BGP_NOTIFY_CEASE_ADMIN_RESET

`clear bgp neighbor` should send Hard Reset and graceful restart should be
activated. Let's make this adjustable.

https://datatracker.ietf.org/doc/html/rfc8538#section-5.1

   +-------+------------------------------------+----------------------+
   | Value |                Name                |  Suggested Behavior  |
   +-------+------------------------------------+----------------------+
   |   1   | Maximum Number of Prefixes Reached |      Hard Reset      |
   |   2   |      Administrative Shutdown       |      Hard Reset      |
   |   3   |         Peer De-configured         |      Hard Reset      |
   |   4   |        Administrative Reset        | Provide user control |
   |   5   |        Connection Rejected         |    Graceful Cease    |
   |   6   |     Other Configuration Change     |    Graceful Cease    |
   |   7   |  Connection Collision Resolution   |    Graceful Cease    |
   |   8   |          Out of Resources          |    Graceful Cease    |
   |   9   |             Hard Reset             |      Hard Reset      |
   +-------+------------------------------------+----------------------+

Enabled by default.

Co-authored-by: Biswajit Sadhu <biswajit.sadhu@gmail.com>
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_packet.c
bgpd/bgp_packet.h
bgpd/bgp_vty.c
bgpd/bgpd.h
doc/user/bgp.rst