Skip to content

L2rib dup host detection - #721

Open
lparz1val wants to merge 2 commits into
ironcore-dev:mainfrom
lparz1val:l2rib-dup-host-detection
Open

lparz1val wants to merge 2 commits into
ironcore-dev:mainfrom
lparz1val:l2rib-dup-host-detection

Conversation

@lparz1val

Copy link
Copy Markdown
Contributor

Adds l2rib to the NX-OS System CRD to configure l2rib dup-host-ip-addr-detection thresholds per device.

spec:
  l2rib:
    moves: 5                   # default 5,   range 1–1000
    durationSeconds: 180       # default 180,  range 2–36000
    recoveryTimeoutSeconds: 30 # default 30,   range 30–36000
    recoveryCount: 5           # default 5,    range 1–3000

Non-obvious decisions

The feature maps to System/hmm-items/fwdinst-items/evpn-items (HMM, not System/l2rib-items which is MAC/L2 dup detection). The provider uses sb.Patch() on this path because fwdinst-items is shared with the EVPN fabric provider — Replace would clobber sibling data. On deletion, Defaultable resets to platform defaults rather than deleting the path.

Tests

  • Payload: testdata/l2rib.json
  • gNMI txtar: system_l2rib.txtar — write, idempotency, reset
  • Updated system.txtar and both system_dhcp_override*.txtar to include the hmm-items defaults block (now unconditionally written by EnsureSystemSettings)
  • Live-verified on Cisco NX-OS: write → idempotent second reconcile → reset on delete

Adds the `l2rib` field to the NX-OS `System` CRD, exposing the four
parameters of "l2rib dup-host-ip-addr-detection": move count, detection
window, recovery timeout, and recovery count.

The provider realizes this via a new `HMMFwdEvpn` struct written to
System/hmm-items/fwdinst-items/evpn-items using PATCH semantics so
that `FabricFwd`'s data at the parent path is not clobbered. The struct
implements `Defaultable` so reset writes platform defaults (5/180/30/5)
rather than deleting the subtree.

Signed-off-by: Yurii Levchenko <yurii.levchenko@sap.com>
Signed-off-by: Yurii Levchenko <yurii.levchenko@sap.com>
@hardikdr hardikdr added the area/switch-automation Automation processes for network switch management and operations. label Nov 14, 2026
@hardikdr hardikdr added this to Roadmap Nov 14, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/switch-automation Automation processes for network switch management and operations.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants