Skip to content

Add NtpKey and NtpAssociation resource modules - #76

Open
ed6869 wants to merge 1 commit into
aruba:masterfrom
ed6869:feature/ntp
Open

ed6869 wants to merge 1 commit into
aruba:masterfrom
ed6869:feature/ntp

Conversation

@ed6869

@ed6869 ed6869 commented Jun 29, 2026

Copy link
Copy Markdown

Summary

Add NTP family resource modules so the AOS-CX REST system/ntp_keys and
system/vrfs/{vrf}/ntp_associations endpoints are backed by first-class
pyaoscx classes.

  • NtpKey (pyaoscx/ntp_key.py): indexed by key_id, manages NTP
    authentication keys. Standard get/get_all/create/update/delete/apply.
  • NtpAssociation (pyaoscx/ntp_association.py): nested under a VRF, indexed
    by address, manages NTP server associations. POST body carries the VRF
    URI; optional key_id reference for authentication.
  • Registered both in api.py.

Tests

tests/test_ntp.py — 10 offline unit tests (paths, create payloads, delete,
get_all, index popping) with a mocked session. All pass.

Verified live on a 6300 (FL.10.17) at REST v10.09: key + association POST
201 / DELETE 204.

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

Fixes #78

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 NtpKey and NtpAssociation resource modules

1 participant