]> git.puffer.fish Git - mirror/frr.git/commit
tools: fix missing check interfaces for reloading pim 16952/head
authoranlan_cs <anlan_cs@126.com>
Sun, 29 Sep 2024 02:15:31 +0000 (10:15 +0800)
committeranlan_cs <anlan_cs@126.com>
Sun, 29 Sep 2024 02:51:39 +0000 (10:51 +0800)
commit1276eaaa90f0360687fab14a7c7f58399be6c0f3
treec869f80ec9a546dc23703b30049d3d64629b60d6
parent8b1b5315c319240a6a5db2f163b7b063def89b5c
tools: fix missing check interfaces for reloading pim

Without checking interfaces, the other interfaces' changes will be wrongly
lost.

Running config:
```
interface A
ip pim
ip pim use-source 11.0.0.1
exit
!
interface B
ip pim
ip pim use-source 22.0.0.1
exit
!
```

Reload the new config:
```
interface A
exit
!
interface B
ip pim
exit
```

Before:
```
2024-09-29 10:08:27,686  INFO: Executed "interface A  no ip pim exit"
```

After:
```
2024-09-29 10:05:01,356  INFO: Executed "interface A  no ip pim exit"
2024-09-29 10:05:01,376  INFO: Executed "interface B  no ip pim use-source 22.0.0.1 exit"
```

Signed-off-by: anlan_cs <anlan_cs@126.com>
tools/frr-reload.py