aoscx_vni: manage static VTEP peers (head-end replication) - #212
Open
ed6869 wants to merge 2 commits into
Open
Conversation
added 2 commits
June 28, 2026 17:18
Manage VXLAN VNIs (system/virtual_network_ids) on AOS-CX. Supports Layer 2 VNIs (VLAN-mapped) and Layer 3 VNIs (VRF-mapped with routing), attached to a VXLAN tunnel interface. Options: vni_id, interface, vni_type, vlan, vrf, routing, state (create/update/delete); vlan and vrf are mutually exclusive. Includes documentation, a changelog fragment, integration target and 15 offline unit tests. The module's delete path depends on the pyaoscx delete_attrs fix (aruba/pyaoscx#57). Signed-off-by: ed6869 <ed6869@mail.com>
Add the vtep_peers and vtep_peer_vrf options to attach static remote VTEP peers to a VNI's flood list. The supplied list fully replaces the static peers of the VNI (an empty list removes them all); a peer shared by several VNIs is preserved when removed from one of them. Backed by the pyaoscx TunnelEndpoint class. Updates documentation, changelog, unit and integration tests. Signed-off-by: ed6869 <ed6869@mail.com>
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.
Fixes #209
Depends on SDK PR aruba/pyaoscx#102.
Summary
Adds the
vtep_peersandvtep_peer_vrfoptions toaoscx_vnito manage static remote VTEP peers (head-end replication) attached to a VNI's flood list. The supplied list fully replaces the static peers of the VNI (an empty list removes them all). A peer shared by several VNIs is preserved when removed from one of them.VTEP peers are modeled as tunnel endpoints on the VXLAN interface whose
network_idmap references the VNI(s); this is backed by the pyaoscxTunnelEndpointclass.Notes
Requires aruba/pyaoscx#102, which keeps the Tunnel Endpoint
network_idas a multi-VNI map (so a shared peer is not dropped). Includes documentation, changelog fragment, unit and integration tests.Testing
ansible-test sanity(pep8, pylint, validate-modules) andansible-docpass.latest): create / idempotency / add and remove peers / shared-peer preservation / delete.