Commit 0ed2bb5
feat: add Catalyst Center dynamic inventory plugin
Add cisco.catalystcenter.catalystcenter inventory plugin that queries
Catalyst Center for managed devices and builds Ansible inventory with
site hierarchy groups, device role/family groups, tag groups, and full
Constructable support (keyed_groups, compose, conditional groups).
Key features:
- Uses catalystcentersdk (same SDK as the collection modules)
- Pagination for large deployments (500+ devices)
- Caching via standard Ansible cache framework
- Auto-sets ansible_network_os for IOS-XE and NX-OS (FQCNs)
- AP filtering (excluded by default)
- Environment variable fallback (CATALYSTCENTER_*)
Based on jandiorio/ansible-dnac-inventory-plugin, modernized with
BaseInventoryPlugin + Constructable + Cacheable pattern.
Includes 29 unit tests and integration test target.1 parent 5e9599d commit 0ed2bb5
8 files changed
Lines changed: 1295 additions & 0 deletions
File tree
- changelogs/fragments
- meta
- plugins/inventory
- tests
- integration/targets/catalystcenter_inventory
- tasks
- unit/plugins/inventory
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Whitespace-only changes.
0 commit comments