Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 9 additions & 15 deletions nac_collector/resources/endpoint_overrides/catalystcenter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ remove_endpoints:
- global_credential_netconf
- integrate_ise
- wireless_profile_site_tag
- tag
- assign_devices_to_tag
- assign_templates_to_tag

# Extra endpoints not present in the Terraform provider definitions
Expand Down Expand Up @@ -96,6 +94,12 @@ extra_endpoints:
- name: site_settings
endpoint: /api/v1/commonsetting/global

- name: network_profile
endpoint: /api/v1/siteprofile?populated=true

- name: fabric_multicast_virtual_network
endpoint: /dna/intent/api/v1/sda/multicast/virtualNetworks

# Endpoint overrides format:
# A flat list of endpoints (no tree with "children").
# "name" refers to an endpoint anywhere in the main endpoint tree.
Expand Down Expand Up @@ -125,19 +129,6 @@ overrides:
import_id_attributes:
- name: id

- name: network_profile
endpoint: /api/v1/siteprofile?populated=true
id_field: siteProfileUuid
import_id_attributes:
- name: siteProfileUuid
data_path: response.siteProfileUuid
children:
- name: network_profile_for_sites_assignments
endpoint: /dna/intent/api/v1/networkProfilesForSites/%v/siteAssignments
import_id_attributes:
- name: networkProfileId
data_path: $parent_id

- name: project
endpoint: /dna/intent/api/v2/template-programmer/project
import_id_attributes:
Expand All @@ -158,3 +149,6 @@ overrides:

- name: wireless_profile
endpoint: /intent/api/v1/wirelessProfiles

- name: assign_devices_to_tag
endpoint: /member?memberType=networkdevice
21 changes: 15 additions & 6 deletions nac_collector/resources/endpoints/catalystcenter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@
endpoint: /dna/intent/api/v2/global-credential
- name: device_detail
endpoint: /dna/intent/api/v1/device-detail
- name: extended_templates
endpoint: /api/v1/template-programmer/extendedTemplates
- name: update_device_management_address
endpoint: /dna/intent/api/v1/network-device
- name: device_replacement
endpoint: /dna/intent/api/v1/device-replacement
- name: extended_templates
endpoint: /api/v1/template-programmer/extendedTemplates
- name: fabric_authentication_profile
endpoint: /dna/intent/api/v1/business/sda/authentication-profile
- name: fabric_device
Expand All @@ -48,10 +46,10 @@
endpoint: /dna/intent/api/v1/sda/fabricDevices/layer3Handoffs/sdaTransits
- name: fabric_l3_virtual_network
endpoint: /dna/intent/api/v1/sda/layer3VirtualNetworks
- name: virtual_network_to_fabric_site
endpoint: /dna/intent/api/v1/sda/layer3VirtualNetworks
- name: fabric_multicast_replication_mode
endpoint: /dna/intent/api/v1/sda/multicast
- name: fabric_multicast_virtual_network
endpoint: /dna/intent/api/v1/sda/multicast/virtualNetworks
- name: fabric_port_assignments
endpoint: /dna/intent/api/v1/sda/portAssignments
- name: fabric_port_channel
Expand Down Expand Up @@ -90,6 +88,8 @@
endpoint: /api/v1/commonsetting/global
- name: network_devices
endpoint: /dna/intent/api/v1/network-device
- name: network_profile
endpoint: /api/v1/siteprofile?populated=true
- name: pnp_device
endpoint: /dna/intent/api/v1/onboarding/pnp-device
- name: power_profile
Expand Down Expand Up @@ -123,6 +123,11 @@
endpoint: /api/v1/commonsetting/global
- name: sp_profile
endpoint: /dna/intent/api/v2/service-provider
- name: tag
endpoint: /dna/intent/api/v1/tag
children:
- name: assign_devices_to_tag
endpoint: /member?memberType=networkdevice
- name: template
endpoint: /dna/intent/api/v2/template-programmer/template
import_id_attributes:
Expand All @@ -137,10 +142,14 @@
- name: name
- name: update_authentication_profile
endpoint: /dna/intent/api/v1/sda/authenticationProfiles
- name: update_device_management_address
endpoint: /dna/intent/api/v1/network-device
- name: user
endpoint: /dna/system/api/v1/user
- name: virtual_network_ip_pool
endpoint: /dna/intent/api/v1/business/sda/virtualnetwork/ippool
- name: virtual_network_to_fabric_site
endpoint: /dna/intent/api/v1/sda/layer3VirtualNetworks
- name: vlanToSsids
endpoint: /dna/intent/api/v1/sda/fabrics/%v/vlanToSsids
- name: wireless_controller_primary_managed_ap_locations
Expand Down