Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: fix some special commands for reloading pim #17010

Merged
merged 1 commit into from
Oct 6, 2024

Conversation

anlancs
Copy link
Contributor

@anlancs anlancs commented Oct 5, 2024

The issue is we can't remove all pim configurations including some special configurations (e.g., no ip pim bsm) for one interface.

For one pim-disable interface, all such pim depdendent options (including ip pim and no ip pim ) should be completely removed.

Also append no ip multicast for the same purpose, it is no use at present, but for future use.

The running config:

interface A
 ip pim
 no ip pim bsm
exit

Reload the new config:

interface A
exit

Before:

2024-10-05 20:52:33,467  INFO: Executed "interface A  no ip pim exit"
2024-10-05 20:52:33,482  INFO: Executed "interface A  ip pim bsm exit"

And the pim configurations in running configuration are not removed after reloading:

interface A
 ip pim <- Wrong
exit

After:

2024-10-05 20:56:27,489  INFO: Executed "interface A  no ip pim exit"

And all the pim configuration are removed.

The issue is we can't remove all pim configurations including some
special configurations (e.g., `no ip pim bsm`) for one interface.

For one pim-disable interface, all such pim depdendent options
(including `ip pim ` and `no ip pim `) should be completely removed.

Also append `no ip multicast` for the same purpose, it is no use at present,
but for future use.

The running config:
```
interface A
 ip pim
 no ip pim bsm
exit
```

Reload the new config:
```
interface A
exit
```

Before:
```
2024-10-05 20:52:33,467  INFO: Executed "interface A  no ip pim exit"
2024-10-05 20:52:33,482  INFO: Executed "interface A  ip pim bsm exit"
```
And the pim configurations in running configuration are not removed after reloading:
```
interface A
 ip pim <- Wrong
exit
```

After:
```
2024-10-05 20:56:27,489  INFO: Executed "interface A  no ip pim exit"
```
And all the pim configuration are removed.

Signed-off-by: anlan_cs <[email protected]>
@ton31337 ton31337 merged commit 28a614d into FRRouting:master Oct 6, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants