]> git.puffer.fish Git - matthieu/frr.git/commitdiff
tools: Ignore agentx command for frr-reload.py
authorDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 22 Dec 2022 15:55:40 +0000 (17:55 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 22 Dec 2022 15:55:40 +0000 (17:55 +0200)
agentx can't be disabled once enabled, so we should ignore it for frr-reload.py.

```
$ /usr/lib/frr/frr-reload.py --reload /etc/frr/bgpd.conf --bindir /usr/local/bin
"no agentx" we failed to remove this command
SNMP AgentX support cannot be disabled once enabled
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
tools/frr-reload.py

index 7c5d91d4dc5471a722eee8a0ec77cac75a3f24d8..bf402e1bef7b69cc3449da7e804c900cc927f354 100755 (executable)
@@ -1514,6 +1514,7 @@ def ignore_unconfigurable_lines(lines_to_add, lines_to_del):
             [
                 ctx_keys[0].startswith(x)
                 for x in [
+                    "agentx",
                     "frr version",
                     "frr defaults",
                     "username",