summaryrefslogtreecommitdiff
path: root/lib/command.h
diff options
context:
space:
mode:
authorChirag Shah <chirag@nvidia.com>2024-04-18 11:44:00 -0700
committerChirag Shah <chirag@nvidia.com>2024-04-23 13:40:07 -0700
commitbb52e5ebdcd450d718bef31917c476c43fb9a082 (patch)
tree86069982b3138f22fb04cf442db61143d1acd917 /lib/command.h
parent1c49f93b5f19054eec1d975898b19cf3d9f118bc (diff)
tools: fix pim interface config deletionII
When no ip pim is performed subsequent pim related configs under the interface also implicitly deleted. The previous fix was attempting to remove from the same list which was being integrated. First collect the lines to remove in separate list then at the end remove from the original lines_to_del. commit 623af04e1c does not work properly if tries to delete an entry from existing list which is being walked on. Ticket: #3869779 Testing done: frr.conf: no interface config running-config: -------------- interface swp1 ip pim ip pim active-active ip pim allow-rp rp-list sample ip pim bfd ip pim use-source 1.1.1.1 ip multicast boundary oil test exit frr-reload log pointing only no ip pim config is removed under interface: 2024-04-18 18:44:37,202 INFO: "frr defaults datacenter" cannot be removed 2024-04-18 18:44:37,202 INFO: "service integrated-vtysh-config" cannot be removed 2024-04-18 18:44:37,504 INFO: Executed "interface swp1 no ip pim exit" 2024-04-18 18:44:37,505 INFO: /var/run/frr/reload-YHS51E.txt content Signed-off-by: Chirag Shah <chirag@nvidia.com>
Diffstat (limited to 'lib/command.h')
0 files changed, 0 insertions, 0 deletions