]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Apply NOOP when doing negative commands for GR operations
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 30 Apr 2024 10:40:08 +0000 (13:40 +0300)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Tue, 7 May 2024 13:58:04 +0000 (13:58 +0000)
commit25986a7f5bf6b5b31c599aa48d2ff55bac439123
treebfc7926bd4c774e49e2de2b5e753bc9fd99c87af
parent9ca4407147535baf10193d7eb5bdd7214f524097
bgpd: Apply NOOP when doing negative commands for GR operations

E.g.:

```
% The Graceful Restart command used is not valid at this moment.
zsh: exit 1     vtysh -c configure -c 'router bgp' -c 'no neighbor 127.0.0.1 graceful-restart
1
```

This does not make sense frr-reload to fail.

Instead, just ignore such requests if they are just NOOP.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit 9ebdb8e80d83a9087deaffee93df4bc90ab6e7ee)
bgpd/bgpd.c