Skip to content

Add Stp resource module#85

Open
ed6869 wants to merge 2 commits into
aruba:masterfrom
ed6869:feature/stp
Open

Add Stp resource module#85
ed6869 wants to merge 2 commits into
aruba:masterfrom
ed6869:feature/stp

Conversation

@ed6869

@ed6869 ed6869 commented Jun 29, 2026

Copy link
Copy Markdown

Summary

Add an Stp resource class so the AOS-CX Ansible collection can manage
Spanning Tree instances through pyaoscx.

  • Stp (system/stp_instances, indexed by instance) — priority,
    hello_time, forward_delay, max_age, topology_change_trap_enable. Standard
    get/create/update/delete/apply lifecycle. Registered in pyaoscx/api.py.

Works on REST API v10.09.

Testing

  • Offline unit tests (tests/test_stp.py) — mocked session, 3 passing.
  • Live update + idempotency on a CX6300 FL.10.17 switch.

Companion collection PR

Companion collection PR: aruba/aoscx-ansible-collection#163

Fixes #84

ed6869 added 2 commits June 29, 2026 09:47
Add a User class for system/users (indexed by name) with the standard
get/create/update/delete/apply lifecycle and register it in api.py.
Includes offline tests.

Signed-off-by: ed6869 <ed6869@mail.com>
Add an Stp class for system/stp_instances (indexed by instance) with the
standard get/create/update/delete/apply lifecycle and register it in
api.py. Includes offline tests.

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 Stp resource module

1 participant