Skip to content

Add arp timeout - #1607

Open
ky-teramae wants to merge 3 commits into
openconfig:masterfrom
ky-teramae:add_arp-timeout
Open

ky-teramae wants to merge 3 commits into
openconfig:masterfrom
ky-teramae:add_arp-timeout

Conversation

@ky-teramae

@ky-teramae ky-teramae commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Change Scope

  • Add arp-timeout leaf to the per-interface IPv4 configuration: the time after which a dynamically learned address resolution entry on the interface expires and is removed from the table, unless a packet is received from the corresponding host before the timer expires (terminology follows RFC 826).
  • Backward compatible: Yes (new optional leaf only).

Platform Implementations

  • Implementation A: Cisco IOS / IOS XR — arp timeout (interface configuration, seconds; default 14400)
interface GigabitEthernet0/0/0/0
 arp timeout 60
  • Implementation B: Arista EOS — arp aging timeout (interface configuration, seconds; default 14400)
interface Ethernet1
   arp aging timeout 60

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
                     ...

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, 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

  • Added arp-timeout configuration: Introduced a new uint32 leaf named arp-timeout to the IPv4 interface configuration to manage the expiration time of dynamic ARP entries.
  • Updated YANG module metadata: Incremented the module version to 3.13.0 and added a new revision entry for the 2026-11-04 update.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@google-cla

google-cla Bot commented Nov 13, 2026

Copy link
Copy Markdown

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.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +576 to +583
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.";
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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
  1. 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)

@ky-teramae
ky-teramae marked this pull request as ready for review November 13, 2026 11:59
@ky-teramae
ky-teramae requested a review from a team as a code owner November 13, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant