SuppressARP per VNI - #554
Draft
adamtrizuljak-sap wants to merge 2 commits into
Draft
Conversation
This enables us to set the SuppressARP field individually per VNI. VNI.SuppressARP is of type Option[bool]. When nil (zero), the Option marshals to "DME_UNSET_PROPERTY_MARKER", which instructs the device to clear the per-VNI setting and let the global NVE.SuppressARP take precedence. Signed-off-by: Adam Trizuljak <adam.trizuljak@sap.com>
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
Signed-off-by: Adam Trizuljak <adam.trizuljak@sap.com>
Merging this branch will decrease overall coverage
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
Adds per-VNI ARP suppression to
EVPNInstance, complementing the existing NVE-levelSuppressARP. The new field supports three states:SuppressARPsetting takes precedence on the devicetrue: ARP suppression is explicitly enabled for this VNIfalse: ARP suppression is explicitly disabled for this VNI, overriding the NVE-level settingChanges
API (
api/core/v1alpha1/evpninstance_types.go)Added
SuppressARP *booltoEVPNInstanceSpec. A pointer is used to distinguish nil (inherit) from an explicitfalse, consistent with other optional bool fields in this package (Passive,LogAdjacencyChanges,PrependLocalAS). No kubebuilder default is applied — that would collapse the nil state.Provider struct (
internal/provider/cisco/nxos/nve.go)Changed
VNI.SuppressARPfrombooltoOption[bool]. TheOption[T]type marshals to"DME_UNSET_PROPERTY_MARKER"when its value is nil, which instructs the NX-OS DME to clear the per-VNI leaf and fall back to the NVE-global value. A plainboolwould always sendfalse, silently overriding the global setting on every reconcile.Provider mapping (
internal/provider/cisco/nxos/provider.go)Wires the new API field into
EnsureEVPNInstance.NewOptionis intentionally bypassed here becauseNewOption(false)returns a zero Option (unset), making explicitfalseindistinguishable from nil. The struct is initialized directly instead:Tests
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)
YANG path
System/eps-items/epId-items/Ep-list[epId=1]/nws-items/vni-items/Nw-list[vni={vni}]/suppressARP