#include "buffer.h"
#include "stream.h"
#include "zclient.h"
-#include "vty.h"
#include "bfd.h"
#include "lib/json.h"
#include "filter.h"
if (!CHECK_FLAG(bfd_info->flags, BFD_FLAG_BFD_REG))
return;
+ bfd_info->status = BFD_STATUS_DOWN;
+ bfd_info->last_update = bgp_clock();
+
bgp_bfd_peer_sendmsg(peer, ZEBRA_BFD_DEST_DEREGISTER);
}
prefix2str(&dp, buf[0], sizeof(buf[0]));
if (ifp)
{
- zlog_debug("Zebra: interface %s bfd destination %s %s",
- ifp->name, buf[0], bfd_get_status_str(status));
+ zlog_debug("Zebra: vrf %d interface %s bfd destination %s %s",
+ vrf_id, ifp->name, buf[0], bfd_get_status_str(status));
}
else
{
prefix2str(&sp, buf[1], sizeof(buf[1]));
- zlog_debug("Zebra: source %s bfd destination %s %s",
- buf[1], buf[0], bfd_get_status_str(status));
+ zlog_debug("Zebra: vrf %d source %s bfd destination %s %s",
+ vrf_id, buf[1], buf[0], bfd_get_status_str(status));
}
}
if (dp.u.prefix4.s_addr != peer->su.sin.sin_addr.s_addr)
continue;
}
-#ifdef HAVE_IPV6
else if ((dp.family == AF_INET6) &&
(peer->su.sa.sa_family == AF_INET6))
{
sizeof (struct in6_addr)))
continue;
}
-#endif
else
continue;
if (sp.u.prefix4.s_addr != peer->su_local->sin.sin_addr.s_addr)
continue;
}
-#ifdef HAVE_IPV6
else if ((sp.family == AF_INET6) &&
(peer->su_local->sa.sa_family == AF_INET6))
{
sizeof (struct in6_addr)))
continue;
}
-#endif
else
continue;
NEIGHBOR_STR
NEIGHBOR_ADDR_STR2
"Disables BFD support\n"
- "Session type\n")
+ "Multihop session\n"
+ "Singlehop session\n")
{
int idx_peer = 2;
struct peer *peer;