Repository navigation
Add arp timeout - #1607
Add arp timeout#1607ky-teramae wants to merge 3 commits into
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the IPv4 interface configuration model by adding an optional arp-timeout leaf. This change allows for better control over ARP cache aging, ensuring that stale entries are removed efficiently, while maintaining full backward compatibility with existing implementations. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
There was a problem hiding this comment.
Code Review
This pull request updates the openconfig-if-ip.yang model to version 3.13.0, introducing a new arp-timeout leaf of type uint32 (in seconds) to the IPv4 interface configuration. The review feedback provides a multi-vendor implementation comparison for the new leaf, confirming strong compatibility with Cisco IOS-XR, Nokia SR Linux, Juniper JunOS, and Arista EOS, which aligns with the OpenConfig guidelines for vendor-neutral modeling.
| leaf arp-timeout { | ||
| type uint32; | ||
| units "seconds"; | ||
| description | ||
| "The time after which a dynamic ARP entry learned on this | ||
| interface expires and is removed from the ARP cache unless | ||
| it is refreshed."; | ||
| } |
There was a problem hiding this comment.
Repository Style Guide Compliance: Multi-Vendor Implementation Comparison
In accordance with Section 2 of the Repository Style Guide, here is the comparison of the newly added arp-timeout leaf with the corresponding configurations in major network operating systems:
| Network Operating System | Command / Configuration | Match Strength | Documentation URL |
|---|---|---|---|
| Cisco IOS-XR | interface <interface> arp timeout <seconds> |
Strong | Cisco IOS-XR IP Addresses Configuration Guide |
| Nokia SR Linux | /interface <name> subinterface <index> ipv4 arp aging-timeout <seconds> |
Strong | SR Linux Interfaces Guide |
| Juniper JunOS | set interfaces <interface-name> unit <logical-unit> family inet arp timeout <seconds> |
Strong | Juniper JunOS CLI Reference |
| Arista EOS | interface <interface> arp aging timeout <seconds> |
Strong | Arista EOS User Manual - IPv4 |
| NVIDIA Cumulus Linux | No direct interface-specific CLI command (configured via Linux sysctl base_reachable_time_ms or gc_stale_time) |
Weak | NVIDIA Cumulus Linux Documentation |
| SONiC | No direct interface-specific CLI command (uses Linux kernel defaults / sysctl) | Weak | SONiC GitHub Wiki |
Since at least two implementations (Cisco IOS-XR, Nokia SR Linux, Juniper JunOS, Arista EOS) have a strong match with the YANG changes, this addition meets the minimum OpenConfig guidelines for vendor-neutral modeling.
References
- Compare the yang changes with the documentation of implementations of network operating systems from Cisco IOS-XR, Nokia SR Linux, Juniper JunOS/JunOS Evolved, Arista EOS, NVIDIA Cumulus Linux and SONiC, and generate a comparison table with publicly accessible URLs. (link)
47c35e5 to
f6734f0
Compare
Change Scope
Platform Implementations
arp timeout(interface configuration, seconds; default 14400)arp aging timeout(interface configuration, seconds; default 14400)Tree View
module: openconfig-interfaces +--rw interfaces +--rw interface* [name] +--rw subinterfaces +--rw subinterface* [index] +--rw oc-ip:ipv4 +--rw oc-ip:config | +--rw oc-ip:enabled? boolean | +--rw oc-ip:mtu? uint16 | +--rw oc-ip:gratuitous-arp-accepted? boolean | +--rw oc-ip:dhcp-client? boolean + | +--rw oc-ip:arp-timeout? uint32 +--ro oc-ip:state +--ro oc-ip:enabled? boolean +--ro oc-ip:mtu? uint16 +--ro oc-ip:gratuitous-arp-accepted? boolean +--ro oc-ip:dhcp-client? boolean + +--ro oc-ip:arp-timeout? uint32 ...