-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ripd: fix ip rip send/receive version command #18217
base: master
Are you sure you want to change the base?
Conversation
7510df4
to
36117a6
Compare
36117a6
to
c932146
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a topotest?
c932146
to
76c95ff
Compare
OK,I added the test rip_send_recv_version |
76c95ff
to
24e0819
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we have a command of just saying ip rip receive version all
or (both)?
Yes, we have command Besides, we have command |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
IP_STR | ||
"Routing Information Protocol\n" | ||
"Advertisement reception\n" | ||
"Version control\n" | ||
"RIP version 1\n" | ||
"RIP version 2\n" | ||
"RIP version 1&2\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Align please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my editor this line 747 and 754 are both aligned
# SPDX-License-Identifier: ISC | ||
|
||
# Copyright (c) 2023 by | ||
# Donatas Abraitis <[email protected]> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not me.
#!/usr/bin/env python | ||
# SPDX-License-Identifier: ISC | ||
|
||
# Copyright (c) 2023 by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2025
# | ||
|
||
""" | ||
Test if RIP `passive-interface default` and `no passive-interface IFNAME` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong description.
tgen.stop_topology() | ||
|
||
|
||
import re |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move imports to the top.
|
||
|
||
import re | ||
def getConfOfInterface(i_name, text): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use snake_case pattern for function names.
24e0819
to
bf80a25
Compare
Now the vtysh will reject illegal command `ip rip send/receive version 2 1`, instead accept command `ip rip send/receive version 1 2` as shown in doc. Add topotest `rip_send_recv_version` test. Signed-off-by: Shbinging <[email protected]>
bf80a25
to
58f9bbb
Compare
Now the vtysh will reject illegal command
ip rip send/receive version 2 1
, instead accept commandip rip send/receive version 1 2
as shown in doc.Add topotest
rip_send_recv_version
test.Signed-off-by: Shbinging [email protected]