ZAPI message for detecting/monitoring BGP peer status and BFD status #14167
Replies: 2 comments 4 replies
-
The message header type is The parser for the zebra BFD message is here: https://github.com/FRRouting/frr/blob/master/lib/bfd.c#L141 The message format is as the following: /*
* Message format:
* - header: command, vrf
* - l: interface index
* - c: family
* - AF_INET:
* - 4 bytes: ipv4
* - AF_INET6:
* - 16 bytes: ipv6
* - c: prefix length
* - l: bfd status
* - c: family
* - AF_INET:
* - 4 bytes: ipv4
* - AF_INET6:
* - 16 bytes: ipv6
* - c: prefix length
* - c: cbit
*
* Commands: ZEBRA_BFD_DEST_REPLAY
*
* q(64), l(32), w(16), c(8)
*/ (code for encoder here: https://github.com/FRRouting/frr/blob/master/bfdd/ptm_adapter.c#L180 ) In the BGP case, for an example, the code path should be as following:
The |
Beta Was this translation helpful? Give feedback.
-
I'm not convinced that a zapi interaction is what you really want. Look at the lua integration for zebra for routes added imo. Additionally it could be easily extended for peer up/down events for bgp (or other daemons, It might have already been done for bgp I do not remember). As a note -> There is never going to be zapi level integration for daemon private information( ala bgp peer up/down events as an example ) |
Beta Was this translation helpful? Give feedback.
-
hi Team,
I am looking for message which would help in monitoring the status of BGP and BFD client status. If it becomes DOWN/UP - the Zebra client has to take some actions based on that. Is there any message for that?
Beta Was this translation helpful? Give feedback.
All reactions