diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-19 17:47:23 -0700 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-19 17:47:23 -0700 |
| commit | d5a5c8f05bc4637dcb113f8285f7db6cfb924b6c (patch) | |
| tree | bd1312d37bb30dfac8d41ee56ae88bce27889996 /zebra/interface.c | |
| parent | 04b02fda9ff706fd53fbd17fe1700f567b1575b0 (diff) | |
This patch adds support for a new BFD session down message from zebra to
protocols. BGP and OSPF are integrated to respond this BFD session down message
originated in Zebra via ptmd.
BGP and OSPF now have a bfd command, which tells OSPF/BGP to respond to the
BFD session down message.
OSPF:
interface <>
ip ospf bfd
BGP:
router bgp <>
neighbor <> bfd
Please note that these commands don't enable BFD as a protocol. BFD configuration
and paramter tuning are via BFD applicable UI.
Signed-off-by: Vipin Kumar <vipin@cumulusnetworks.com>
Reviewed-by: Shrijeet Mukherjee <shm@cumulusnetworks.com>
Diffstat (limited to 'zebra/interface.c')
| -rw-r--r-- | zebra/interface.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index 10344c6281..da5e41e8dc 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -604,6 +604,23 @@ if_refresh (struct interface *ifp) if_get_flags (ifp); } +/* BFD session goes down, send message to the protocols. */ +void +if_bfd_session_down (struct interface *ifp, struct prefix *p) +{ + if (IS_ZEBRA_DEBUG_EVENT) + { + char buf[INET6_ADDRSTRLEN]; + + zlog_debug ("MESSAGE: ZEBRA_INTERFACE_BFD_DEST_DOWN %s/%d on %s", + inet_ntop (p->family, &p->u.prefix, buf, INET6_ADDRSTRLEN), + p->prefixlen, ifp->name); + } + + zebra_interface_bfd_update (ifp, p); +} + + /* Output prefix string to vty. */ static int prefix_vty_out (struct vty *vty, struct prefix *p) |
