Add Port Access CDP/LLDP device classification group classes - #113
Open
ed6869 wants to merge 1 commit into
Open
Conversation
Add PortAccessCdpGroup and PortAccessLldpGroup (with their entry classes) to manage system/port_access_cdp_groups and system/port_access_lldp_groups. Each group is a container indexed by name with an entries sub-collection indexed by sequence_number holding device-classification match fields (CDP: platform, software_version, voice_vlan_query_value; LLDP: system_description, system_name, vendor_oui, vendor_oui_subtype). Fixes aruba#112 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.
Summary
Adds
PortAccessCdpGroupandPortAccessLldpGroup(and their entry classes) to manage the Port Access device classification groups exposed by the AOS-CX REST API:system/port_access_cdp_groups/{name}/entries/{sequence_number}system/port_access_lldp_groups/{name}/entries/{sequence_number}Each group is a container indexed by
namewith anentriessub-collection indexed bysequence_number, holding only device-classification match fields (no traffic-class reference, no action set):platform,software_version,voice_vlan_query_valuesystem_description,system_name,vendor_oui,vendor_oui_subtypeThe classes are self-contained (only depend on
PyaoscxModule) and registered inapi.py.Testing
Validated live on a CX6300 (FL.10.17, REST latest): create, idempotency, per-entry update and delete of both CDP and LLDP groups, including their entries.
Fixes #112
Companion collection PR: aruba/aoscx-ansible-collection#221