cisco.catalystcenter.wireless_profile module -- Resource module for Wireless Profile
Note
This module is part of the cisco.catalystcenter collection (version 2.11.0).
To install it, use: ansible-galaxy collection install cisco.catalystcenter.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: cisco.catalystcenter.wireless_profile.
New in cisco.catalystcenter 1.0.0
Synopsis
Manage operations create, update and delete of the resource Wireless Profile.
Creates Wireless Network Profile on Cisco DNA Center and associates sites and SSIDs to it.
Delete the Wireless Profile whose name is provided. - > Updates the wireless Network Profile with updated details provided. All sites to be present in the network profile should be provided.
Note
This module has a corresponding action plugin.
Requirements
The below requirements are needed on the host that executes this module.
catalystcentersdk >= 3.2.3.0.0
python >= 3.12
Parameters
Parameter |
Comments |
|---|---|
These interfaces will be configured on the device as independent interfaces in addition to the interfaces mapped to SSIDs. |
|
List of apZones Attached to wireless Profile. |
|
Name of the apZone. |
|
Name of the RF profile attached to the AP Zone. |
|
Wireless Profile's ssids. |
|
Flag for Cisco Catalyst Center SDK to enable debugging. Choices: |
|
The Cisco Catalyst Center hostname. |
|
The Cisco Catalyst Center password to authenticate. |
|
The Cisco Catalyst Center port. Default: :ansible-option-default:`443` |
|
The Cisco Catalyst Center username to authenticate. Default: :ansible-option-default:`"admin"` |
|
Flag to enable or disable SSL certificate verification. Choices: |
|
Informs the SDK which version of Cisco Catalyst Center to use. Default: :ansible-option-default:`"3.1.6.0"` |
|
Feature Templates which needs to be associated to the wireless network profile. |
|
Feature Template UUID. |
|
Wireless Profile's ssids. |
|
Id. |
|
SSID Details. |
|
Anchor Group Name. Below are points to consider - If 'enableFabric' field is set to true,'anchorGroupName' must be null.If 'anchorGroupName' is null,'enableFabric' must be false. - If 'interfaceName' field is non-null,'anchorGroupName' must be null.If 'anchorGroupName' is non-null,'interfaceName' must be null. |
|
802.11be Profile Id. Applicable to IOS controllers with version 17.15.2 and higher. |
|
True if fabric is enabled, else false. Flex and fabric cannot be enabled simultaneously and a profile can only contain either flex SSIDs or fabric SSIDs and not both at the same time. Choices: |
|
FlexConnect. |
|
True if flex connect is enabled, else false. Flex and fabric cannot be enabled simultaneously and a profile can only contain either flex SSIDs or fabric SSIDs and not both at the same time. Choices: |
|
Local to VLAN ID. |
|
Interface Name. Default Value management. |
|
Policy Profile Name. If 'policyProfileName' is not provided, the value of 'wlanProfileName' will be assigned to it. If 'profileName' is also not provided, an autogenerated name will be used. Autogenerated name is generated by appending 'ssidName' field's value with '_profile' (Example If 'ssidName' = 'ExampleSsid', then autogenerated name will be 'ExampleSsid_profile'). |
|
SSID Name. |
|
VLAN Group Name.Below are points to consider - If 'interfaceName' is non-null in payload,'vlanGroupName' must be null.If 'vlanGroupName' is non-null,'interfaceName' must be null. |
|
WLAN Profile Name. |
|
Flag for Cisco Catalyst Center SDK to enable the validation of request bodies against a JSON schema. Choices: |
|
Wireless Profile Name. |
Notes
Note
SDK Method used are wireless.Wireless.create_wireless_profile_connectivity, wireless.Wireless.delete_wireless_profile_connectivity, wireless.Wireless.update_wireless_profile_connectivity,
Paths used are post /dna/intent/api/v1/wireless/profile, delete /dna/intent/api/v1/wireless-profile/{wirelessProfileName}, put /dna/intent/api/v1/wireless/profile,
Does not support
check_modeThe plugin runs on the control node and does not use any ansible connection plugins,
but instead uses the embedded connection manager from Cisco CATALYST SDK
Requires Python >= 3.10, matching the controller Python versions supported by the collection's minimum ansible-core version (see the collection README for the current ansible-core / Python compatibility range)
See Also
See also
- Cisco Catalyst Center documentation for Wireless CreateWirelessProfileConnectivity
Complete reference of the CreateWirelessProfileConnectivity API.
- Cisco Catalyst Center documentation for Wireless DeleteWirelessProfileConnectivity
Complete reference of the DeleteWirelessProfileConnectivity API.
- Cisco Catalyst Center documentation for Wireless UpdateWirelessProfileConnectivity
Complete reference of the UpdateWirelessProfileConnectivity API.
Examples
---
- name: Create
cisco.catalystcenter.wireless_profile:
catalystcenter_host: "{{catalystcenter_host}}"
catalystcenter_username: "{{catalystcenter_username}}"
catalystcenter_password: "{{catalystcenter_password}}"
catalystcenter_verify: "{{catalystcenter_verify}}"
catalystcenter_port: "{{catalystcenter_port}}"
catalystcenter_version: "{{catalystcenter_version}}"
catalystcenter_debug: "{{catalystcenter_debug}}"
state: present
additionalInterfaces:
- string
apZones:
- apZoneName: string
rfProfileName: string
ssids:
- string
featureTemplates:
- id: string
ssids:
- string
id: string
ssidDetails:
- anchorGroupName: string
dot11beProfileId: string
enableFabric: true
flexConnect:
enableFlexConnect: true
localToVlan: 0
interfaceName: string
policyProfileName: string
ssidName: string
vlanGroupName: string
wlanProfileName: string
wirelessProfileName: string
- name: Update all
cisco.catalystcenter.wireless_profile:
catalystcenter_host: "{{catalystcenter_host}}"
catalystcenter_username: "{{catalystcenter_username}}"
catalystcenter_password: "{{catalystcenter_password}}"
catalystcenter_verify: "{{catalystcenter_verify}}"
catalystcenter_port: "{{catalystcenter_port}}"
catalystcenter_version: "{{catalystcenter_version}}"
catalystcenter_debug: "{{catalystcenter_debug}}"
state: present
additionalInterfaces:
- string
apZones:
- apZoneName: string
rfProfileName: string
ssids:
- string
featureTemplates:
- id: string
ssids:
- string
id: string
ssidDetails:
- anchorGroupName: string
dot11beProfileId: string
enableFabric: true
flexConnect:
enableFlexConnect: true
localToVlan: 0
interfaceName: string
policyProfileName: string
ssidName: string
vlanGroupName: string
wlanProfileName: string
wirelessProfileName: string
- name: Delete by name
cisco.catalystcenter.wireless_profile:
catalystcenter_host: "{{catalystcenter_host}}"
catalystcenter_username: "{{catalystcenter_username}}"
catalystcenter_password: "{{catalystcenter_password}}"
catalystcenter_verify: "{{catalystcenter_verify}}"
catalystcenter_port: "{{catalystcenter_port}}"
catalystcenter_version: "{{catalystcenter_version}}"
catalystcenter_debug: "{{catalystcenter_debug}}"
state: absent
wirelessProfileName: application/json
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
A dictionary or list with the response returned by the Cisco Catalyst Center Python SDK Returned: always |