]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: fix "clear bgp" commands 425/head
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 28 Apr 2017 13:22:28 +0000 (10:22 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 28 Apr 2017 13:47:51 +0000 (10:47 -0300)
commitf0dac89fdef4cb4e95f6741e6b95756aa5984b98
tree2de16762f11e227182dd449a8abf7ff81e619029
parent59341c1b5ec2fcbf1a5bd27532936e575841aeaf
bgpd: fix "clear bgp" commands

The use of VTY_DECLVAR_CONTEXT(bgp, bgp) here is wrong as we are not
inside the "router bgp" configuration node. This was making the clear
commands always fail with a "Current configuration object was deleted
by another process" error, which doesn't make any sense.

Also, the bgp_clear() function will already check for us if the given
peer-group or neighbor exists or not, there's no need to duplicate this
logic here.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
bgpd/bgp_vty.c