SuppressARP per VNI - #554
Open
adamtrizuljak-sap wants to merge 1 commit into
Open
adamtrizuljak-sap wants to merge 1 commit into
adamtrizuljak-sap wants to merge 1 commit into
Conversation
adamtrizuljak-sap
force-pushed
the
feat/nve-suppress-arp-per-vni
branch
from
September 9, 2026 11:13
b553bbf to
c72cb2d
Compare
adamtrizuljak-sap
marked this pull request as draft
September 9, 2026 11:19
adamtrizuljak-sap
marked this pull request as ready for review
September 10, 2026 08:35
adamtrizuljak-sap
marked this pull request as draft
September 10, 2026 12:30
adamtrizuljak-sap
force-pushed
the
feat/nve-suppress-arp-per-vni
branch
from
September 16, 2026 13:44
0254903 to
2231f29
Compare
adamtrizuljak-sap
marked this pull request as ready for review
September 16, 2026 14:07
adamtrizuljak-sap
force-pushed
the
feat/nve-suppress-arp-per-vni
branch
from
September 18, 2026 11:11
2231f29 to
21e8a04
Compare
This enables us to set the SuppressARP field individually per VNI. The allowed values are strings `off`, `enabled`, `disabled` Value `off` means unset, no need to use the special `DME_UNSET_PROPERTY_MARKER` value See nvo_SuppressARPT definition in https://github.com/YangModels/yang/blob/main/vendor/cisco/nx/10.6-3/Cisco-NX-OS-device.yang Signed-off-by: Adam Trizuljak <adam.trizuljak@sap.com>
adamtrizuljak-sap
force-pushed
the
feat/nve-suppress-arp-per-vni
branch
from
September 18, 2026 12:34
21e8a04 to
d19a510
Compare
Merging this branch changes the coverage (1 decrease, 1 increase)
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The NVE-level
suppressARPis a device-wide default for all VNIs. There was no way to override ARP suppression individually per VNI — either to explicitly enable it for a specific VNI while leaving others to inherit the default, or to disable it for a VNI while the global default has it enabled.This PR adds an optional
suppressARPfield toEVPNInstanceSpec. When set, it overrides the NVE-level setting for that VNI's gNMI path. When unset (nil), the NVE-level default remains in effect.API change (
api/core/v1alpha1/evpninstance_types.go):Provider mapping (
internal/provider/cisco/nxos/):The NX-OS DME API represents this field as a string on Nw-list, not a boolean. The provider maps:
spec.suppressARPVNI.SuppressARPis therefore a plainstringfield, avoiding any bool↔string unmarshal mismatch when reading device state back for idempotency checks.Changes
api/core/v1alpha1/evpninstance_types.go— addsSuppressARP *booltoEVPNInstanceSpecapi/core/v1alpha1/zz_generated.deepcopy.go— regenerated deep-copyconfig/crd/bases/, charts/.../crd/— regenerated CRD manifestsdocs/api-reference/index.md— updated API reference tableinternal/provider/cisco/nxos/nve.go— addsVNI.SuppressARPstring and string constantsinternal/provider/cisco/nxos/provider.go— maps *bool → string constant inEnsureEVPNInstanceinternal/provider/cisco/nxos/testdata/— updates marshal testdata to includesuppressARPin all VNI payloads-
test/gnmi/testdata/cisco-nxos-gnmi/evpninstance.txtar— updates expected gNMI state to include"suppressARP": "off"Testing
Updated
testdata/vni.jsonto include"suppressARP": "DME_UNSET_PROPERTY_MARKER"(reflecting the new zero-value serialization ofOption[bool])Added golden files and fixtures for explicit true and false cases (vni_suppress_arp_true, vni_suppress_arp_false)
Simulated device
Tested against a simulated Cisco N9K-C9300v in Clabernets. Results of reading the path using
gnmic -a 127.0.0.1 --port 9339 -u *** -p *** --skip-verify get -e json --values-only --path 'System/eps-items/epId-items/Ep-list[epId=1]/nws-items/vni-items/Nw-list[vni=100010]/suppressARP'spec.suppressARP["off"]true["enabled"]false["disabled"]YANG
Reference https://github.com/YangModels/yang/blob/main/vendor/cisco/nx/10.6-3/Cisco-NX-OS-device.yang
Path:
System/eps-items/epId-items/Ep-list[epId=1]/nws-items/vni-items/Nw-list[vni={vni}]/suppressARPAllowed values of
suppressARP: