diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-06-12 07:59:11 -0700 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-06-12 07:59:11 -0700 |
| commit | c43ed2e48af8c787a1ebc4b648f844c44032db35 (patch) | |
| tree | 24e3abff6f724033ab16418961da91ff1ddd6aee /lib/zebra.h | |
| parent | f1aa5d8ac823969694430feec02594c6851e596a (diff) | |
This patch changes BGP from only listening mode for BFD status updates to interactive mode of dynamically registering/deregistering BFD enabled peers with PTM/BFD through zebra. Peer is registered with BFD when it goes into established state and de-registers when it goes out of establish state.
This patch also adds BFD multihop support for BGP. Whether a peer is multi-hop or single hop is determined internally. All IGP peers are considered as multi-hop peers. EBGP peers are considered as single hop unless configured as multi-hop.
BGP BFD command enhancement to configure BFD parameters (detect multiplier, min rx and min tx).
router bgp <as-number>
neighbor <name/ip-address> bfd <detect mult> <min rx> <min tx>
Signed-off-by: Radhika Mahankali <radhika@cumulusnetworks.com>
Reviewed-by: Dinesh G Dutt <ddutt@cumulusnetworks.com>
Reviewed-by: Vipin Kumar <vipin@cumulusnetworks.com>
Reviewed-by: Kanna Rajagopal <kanna@cumulusnetworks.com>
Diffstat (limited to 'lib/zebra.h')
| -rw-r--r-- | lib/zebra.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/zebra.h b/lib/zebra.h index c1231e4c8b..387cd65415 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -434,7 +434,11 @@ struct in_pktinfo #define ZEBRA_IMPORT_ROUTE_UNREGISTER 31 #define ZEBRA_IMPORT_CHECK_UPDATE 32 #define ZEBRA_IPV4_ROUTE_IPV6_NEXTHOP_ADD 33 -#define ZEBRA_MESSAGE_MAX 34 +#define ZEBRA_BFD_DEST_REGISTER 34 +#define ZEBRA_BFD_DEST_DEREGISTER 35 +#define ZEBRA_BFD_DEST_UPDATE 36 +#define ZEBRA_BFD_DEST_REPLAY 37 +#define ZEBRA_MESSAGE_MAX 38 /* Marker value used in new Zserv, in the byte location corresponding * the command value in the old zserv header. To allow old and new |
