-
Notifications
You must be signed in to change notification settings - Fork 347
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
op-mode: T6601: move "reset ip(v6) arp|neighbor" to "clear ip(v6) arp|neighbor" #3885
Conversation
…|neighbor" In addition create a build-time symbolic link for: "show ip arp" -> "show ip neighbors"
👍 |
❌ |
@Mergifyio backport circinus |
🟠 Waiting for conditions to match
|
CI integration 👍 passed! Details
|
<children> | ||
<tagNode name="address"> | ||
<properties> | ||
<help>Reset ARP cache for an IPv4 address</help> |
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.
Should there also be a clear ARP cache
?
<script>${vyos_completion_dir}/list_interfaces</script> | ||
</completionHelp> | ||
</properties> | ||
<command>sudo ${vyos_op_scripts_dir}/neighbor.py reset --family inet --interface "$5"</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.
Should there be a clear
option instead of reset
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.
Top level op mode words have specific meanings in VyOS. clear
is reserved for completely non-disruptive operations: clearing the screen, clearing rule counters... reset
is for locally-disruptive operations.
Since removing a neighbor table entry can lead to lost packets or increased latencies for new connections, it doesn't qualify for clear
, which is why it was called reset
.
I'd prefer to keep that terminology consistent. BGP neighbors in Cisco IOS are also under clear
, but we don't plan to mimic that, do we? ;)
Change Summary
Move
reset ip(v6) arp|neighbor
toclear ip(v6) arp|neighbor
In addition create a build-time symbolic link for:
show ip arp
->show ip neighbors
This change also introduces new-style op-mode for IPv6 ND operations rather then directly calling iproute2
Parts should be manually backported to 1.4 sagitta to also provide the new CLI commands but keep the old ones for CLI stability reasons!
Types of changes
Related Task(s)
Related PR(s)
How to test
Checklist: