]> git.puffer.fish Git - matthieu/frr.git/commit
tools: fix pim interface config deletion
authorChirag Shah <chirag@nvidia.com>
Thu, 29 Jun 2023 16:55:12 +0000 (09:55 -0700)
committerChristian Breunig <christian@breunig.cc>
Wed, 7 Feb 2024 19:40:19 +0000 (20:40 +0100)
commitd371e33933a8476f42f2a882f73ba1e7bcdc818a
tree82b93d8265af478134f23d8be287dc362ead3489
parented7febb596cad594cf69271ed1302296121f0b21
tools: fix pim interface config deletion

When no ip pim is performed subsequent pim related
configs under the interface also implicitly deleted.

When doing this via frr-reload requires to remove any
explicit no ip pim <blah> lines so delete list.

Testing Done:

running-config:
interface lo
 ip pim
 ip pim use-source 6.0.0.1
exit

frr.conf:
remove two pim config lines.
interface lo
exit

Before fix:
2023-06-29 23:44:26,062  INFO: Failed to execute interface lo  no ip pim use-source 6.0.0.1
2023-06-29 23:44:26,142  INFO: Failed to execute interface lo  no ip pim use-source
2023-06-29 23:44:26,221  INFO: Executed "interface lo  no ip pim"

After fix:
Only no ip pim executed and rest of the other lines removed from delete
list.

2023-06-30 01:07:32,618  INFO: Executed "interface lo  no ip pim"

Signed-off-by: Chirag Shah <chirag@nvidia.com>
(cherry picked from commit 623af04e1cb5413b7500fd25d98b59d7bfd4a5e1)
tools/frr-reload.py