diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2017-04-28 10:22:28 -0300 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2017-04-28 10:47:51 -0300 |
| commit | f0dac89fdef4cb4e95f6741e6b95756aa5984b98 (patch) | |
| tree | 2de16762f11e227182dd449a8abf7ff81e619029 /lib/json.h | |
| parent | 59341c1b5ec2fcbf1a5bd27532936e575841aeaf (diff) | |
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>
Diffstat (limited to 'lib/json.h')
0 files changed, 0 insertions, 0 deletions
