]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Use the correct bgp instance for cli commands issuing clear
authorDon Slice <dslice@cumulusnetworks.com>
Mon, 18 Jul 2016 14:32:46 +0000 (10:32 -0400)
committerDon Slice <dslice@cumulusnetworks.com>
Mon, 18 Jul 2016 14:32:46 +0000 (10:32 -0400)
commit849144993d13bae68f8eccf45c677e4a78e153bd
tree412568f45ef5fc9196d8e6669d0399b8a11c9ec4
parentb3a39dc510a258282908674e55c5b27be61a642a
bgpd: Use the correct bgp instance for cli commands issuing clear

Some bgp commands end with doing a bgp_clear_vty, which invalidly
made the assumption that the clear should always be done for the default
instance.  This fix derives the correct instance from the vty-index if
one is supplied, and uses the default instance if it is not.

Ticket: CM-10113
Signed-off-by: Don Slice
Reviewed-by: Donald Sharp
bgpd/bgp_vty.c