Skip to content

Add Port Access CDP/LLDP device classification group modules - #221

Open
ed6869 wants to merge 1 commit into
aruba:masterfrom
ed6869:feature/port-access-device-groups
Open

Add Port Access CDP/LLDP device classification group modules#221
ed6869 wants to merge 1 commit into
aruba:masterfrom
ed6869:feature/port-access-device-groups

Conversation

@ed6869

@ed6869 ed6869 commented Jun 30, 2026

Copy link
Copy Markdown

Summary

Adds two modules to manage Port Access device classification groups, which classify connected devices by the attributes they advertise through CDP/LLDP and are referenced by device profiles:

  • aoscx_port_access_cdp_groupsystem/port_access_cdp_groups; entries match platform, software_version, voice_vlan_query_value.
  • aoscx_port_access_lldp_groupsystem/port_access_lldp_groups; entries match system_description, system_name, vendor_oui, vendor_oui_subtype.

Each group is an ordered list of match entries indexed by sequence_number; the supplied entries fully replace the existing ones. Shared logic lives in module_utils/port_access_device_group.py. Supports check mode.

Testing

Validated live on a CX6300 (FL.10.17, REST latest): create, idempotency, per-entry update and delete of both CDP and LLDP groups. show running-config confirmed the expected port-access cdp-group/lldp-group blocks with their seq N match ... entries. Sanity (pep8, pylint, validate-modules) passes.

Fixes #220

Depends on SDK PR aruba/pyaoscx#113

Add aoscx_port_access_cdp_group and aoscx_port_access_lldp_group to manage
Port Access device classification groups (system/port_access_cdp_groups,
system/port_access_lldp_groups). A group is an ordered list of match entries;
CDP entries match platform, software_version and voice_vlan_query_value, LLDP
entries match system_description, system_name, vendor_oui and
vendor_oui_subtype. The supplied entries fully replace the existing ones.

The shared logic lives in module_utils/port_access_device_group.py. Validated
live on a CX6300 (FL.10.17, REST latest): create, idempotency, per-entry
update and delete.

Fixes aruba#220

Signed-off-by: ed6869 <ed6869@mail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add modules for Port Access CDP/LLDP device classification groups

1 participant