]> git.proxmox.com Git - mirror_frr.git/commit
lib: handle exit cmd for bgp afi-safi nodes
authorChirag Shah <chirag@nvidia.com>
Thu, 27 Aug 2020 19:49:45 +0000 (12:49 -0700)
committerChirag Shah <chirag@nvidia.com>
Mon, 26 Oct 2020 15:57:14 +0000 (08:57 -0700)
commitdd90823b1dc732e6dee4a5e2b601b62bf555a8f6
treeb7fa60f6aa839ea7effdd8fd93fcb8b71dfa085f
parent3b66fcef5833da4eeb2dd19922778b108a1c63c1
lib: handle exit cmd for bgp afi-safi nodes

In transactional cli mode, bgp address-family <afi> <afi>
node builds xpath on top of `router bgp` node's xpath.
When `exit` is applied under afi-safi commands, retain
xpath_index to 1 to keep using bgp global xpath.

Signed-off-by: Chirag Shah <chirag@nvidia.com>
lib/command.c