diff options
author | bisdhdh <biswajit.sadhu@gmail.com> | 2019-10-23 07:32:45 +0200 |
---|---|---|
committer | bisdhdh <biswajit.sadhu@gmail.com> | 2020-01-23 05:04:25 +0100 |
commit | b0965c44e942a06fedea73277aa164a27152a616 (patch) | |
tree | 4ef41df28e0cc6c628892e1dc8f645b8623c6d5f /bgpd/bgp_vty.h | |
parent | Merge pull request #5412 from opensourcerouting/bfdd-vrf-fix (diff) | |
download | frr-b0965c44e942a06fedea73277aa164a27152a616.tar.xz frr-b0965c44e942a06fedea73277aa164a27152a616.zip |
bgpd: BGP Graceful Restart Per Neighbor(BGPN), DS & header files.
This pr contains all the header files changes for BGP GR per Neighbour(BGPN)
feature.
Signed-off-by: Biswajit Sadhu <sadhub@vmware.com>
Diffstat (limited to 'bgpd/bgp_vty.h')
-rw-r--r-- | bgpd/bgp_vty.h | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/bgpd/bgp_vty.h b/bgpd/bgp_vty.h index 5f3ce9cd8..e1109841d 100644 --- a/bgpd/bgp_vty.h +++ b/bgpd/bgp_vty.h @@ -22,7 +22,7 @@ #define _QUAGGA_BGP_VTY_H #include "bgpd/bgpd.h" - +#include "stream.h" struct bgp; #define BGP_INSTANCE_HELP_STR "BGP view\nBGP VRF\nView/VRF name\n" @@ -46,6 +46,32 @@ struct bgp; "Address Family modifier\n" \ "Address Family modifier\n" + + +#define SHOW_GR_HEADER \ + "Codes: GR - Graceful Restart," \ + " * - Inheriting Global GR Config,\n" \ + " Restart - GR Mode-Restarting," \ + " Helper - GR Mode-Helper,\n" \ + " Disable - GR Mode-Disable.\n\n" + +#define BGP_SHOW_PEER_GR_CAPABILITY( \ + vty, p, use_json, json) \ + do { \ + bgp_show_neighbor_graceful_restart_local_mode( \ + vty, p, use_json, json); \ + bgp_show_neighbor_graceful_restart_remote_mode( \ + vty, p, use_json, json); \ + bgp_show_neighnor_graceful_restart_rbit( \ + vty, p, use_json, json); \ + bgp_show_neighbor_graceful_restart_time( \ + vty, p, use_json, json); \ + bgp_show_neighbor_graceful_restart_capability_per_afi_safi(\ + vty, p, use_json, json); \ + } while (0) + + + extern void bgp_vty_init(void); extern const char *get_afi_safi_str(afi_t afi, safi_t safi, bool for_json); extern int bgp_get_vty(struct bgp **bgp, as_t *as, const char *name, |