mjethanandani / ietf-bgp-yang

Repository to collaborate on the IETF BGP YANG module.
1 stars 1 forks source link

How to support "all" neighbors #357

Open mjethanandani opened 1 year ago

mjethanandani commented 1 year ago

BGP supports the concept of static (those that are configured) and dynamic (those that are learnt by the system) neighbors. Therefore a 'show neighbors all' needs to show all neighbors, both static and dynamic.

jhaas-pfrc commented 1 year ago

Consider a case where there are configured peers and dynamic peers. You may have peers that show up as state that aren't configured.

It might be useful to have a leaf that declares the "source" of the peer. Is it statically configured? Dynamically? Is it in one of those cases and perhaps it's derived from it if it's an identity. E.g. static has children "local-mode" and "local-cli".