]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: correct bgp global context
authorChirag Shah <chirag@nvidia.com>
Wed, 16 Sep 2020 17:28:11 +0000 (10:28 -0700)
committerChirag Shah <chirag@nvidia.com>
Sat, 3 Oct 2020 18:25:38 +0000 (11:25 -0700)
commit87ce25646be36bb9a27e75d177615e3d19a07df0
treeccedf7d4f9580ec493930af58d932752ea31c963
parent906ebeec9800d3aef0eddb70ce74b48e370cb5ce
bgpd: correct bgp global context

Move bgp (router bgp) context at "bgp" node
level from (instead of) "global" level.
This change allows access of bgp context at neighbor
and peer-group node levels.

    +--rw bgp   <--- (store `struct bgp` at bgp node xpath)
       +--rw global!
       |    ...
       |  +--rw afi-safis
       |    ...
       +--rw neighbors
       |  +--rw neighbor* [remote-address]
       |    ...
       |  |  +--rw afi-safis
       |    ...
       |  +--rw unnumbered-neighbor* [interface]
       |    ...
       +--rw peer-groups
          +--rw peer-group* [peer-group-name]
            ...

Signed-off-by: Chirag Shah <chirag@nvidia.com>
bgpd/bgp_nb.h
bgpd/bgp_nb_config.c
bgpd/bgp_vty.c