Skip to content

BGP routes getting removed while shutting down the ZAPI connection #14305

Closed Answered by mjstapp
sarungprakash asked this question in Q&A
Discussion options

You must be logged in to vote

so if I'm reading this correctly, you're doing a couple of things here that are ... likely to cause problems for you. are you writing your own code that uses the zapi library, and using that code of yours to connect to zebra and claim to be bgpd?

a) FRR doesn't support ZAPI as a stable api, and it may change in ways that surprise you from release to release.
b) zebra doesn't expect there to be more than one "bgpd" claiming to be bgp protocol, instance 0, and session_id 0. your closing your own process's ZAPI connection is causing zebra to clear out the real bgpd data because your code claims to be bgpd.

there are several ways to interact with FRR, with bgp and with zebra. what appears to …

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@ton31337
Comment options

@sarungprakash
Comment options

Comment options

You must be logged in to vote
1 reply
@sarungprakash
Comment options

Answer selected by sarungprakash
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants