| 1 |
#!/usr/bin/python |
| 2 |
# -*- coding: utf-8 -*- |
| 3 |
|
| 4 |
# Copyright (c) 2021, Cisco Systems |
| 5 |
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) |
| 6 |
|
| 7 |
DOCUMENTATION = r""" |
| 8 |
module: networks_appliance_rf_profiles |
| 9 |
short_description: Resource module for networks _appliance _rfprofiles |
| 10 |
description: |
| 11 |
- Manage operations create, update and delete of the resource networks _appliance |
| 12 |
_rfprofiles. |
| 13 |
- Creates new RF profile for this network. |
| 14 |
version_added: '1.0.0' |
| 15 |
extends_documentation_fragment: |
| 16 |
- cisco.meraki.module |
| 17 |
author: Francisco Munoz (@fmunoz) |
| 18 |
options: |
| 19 |
fiveGhzSettings: |
| 20 |
description: Settings related to 5Ghz band. |
| 21 |
suboptions: |
| 22 |
axEnabled: |
| 23 |
description: Determines whether ax radio on 5Ghz band is on or off. Can be |
| 24 |
either true or false. If false, we highly recommend disabling band steering. |
| 25 |
Defaults to true. |
| 26 |
type: bool |
| 27 |
minBitrate: |
| 28 |
description: Sets min bitrate (Mbps) of 5Ghz band. Can be one of '6', '9', |
| 29 |
'12', '18', '24', '36', '48' or '54'. Defaults to 12. |
| 30 |
type: int |
| 31 |
type: dict |
| 32 |
name: |
| 33 |
description: The name of the new profile. Must be unique. This param is required |
| 34 |
on creation. |
| 35 |
type: str |
| 36 |
networkId: |
| 37 |
description: NetworkId path parameter. Network ID. |
| 38 |
type: str |
| 39 |
perSsidSettings: |
| 40 |
description: Per-SSID radio settings by number. |
| 41 |
suboptions: |
| 42 |
'1': |
| 43 |
description: Settings for SSID 1. |
| 44 |
suboptions: |
| 45 |
bandOperationMode: |
| 46 |
description: Choice between 'dual', '2.4ghz', '5ghz', '6ghz' or 'multi'. |
| 47 |
type: str |
| 48 |
bandSteeringEnabled: |
| 49 |
description: Steers client to most open band between 2.4 GHz and 5 GHz. |
| 50 |
Can be either true or false. |
| 51 |
type: bool |
| 52 |
type: dict |
| 53 |
'2': |
| 54 |
description: Settings for SSID 2. |
| 55 |
suboptions: |
| 56 |
bandOperationMode: |
| 57 |
description: Choice between 'dual', '2.4ghz', '5ghz', '6ghz' or 'multi'. |
| 58 |
type: str |
| 59 |
bandSteeringEnabled: |
| 60 |
description: Steers client to most open band between 2.4 GHz and 5 GHz. |
| 61 |
Can be either true or false. |
| 62 |
type: bool |
| 63 |
type: dict |
| 64 |
'3': |
| 65 |
description: Settings for SSID 3. |
| 66 |
suboptions: |
| 67 |
bandOperationMode: |
| 68 |
description: Choice between 'dual', '2.4ghz', '5ghz', '6ghz' or 'multi'. |
| 69 |
type: str |
| 70 |
bandSteeringEnabled: |
| 71 |
description: Steers client to most open band between 2.4 GHz and 5 GHz. |
| 72 |
Can be either true or false. |
| 73 |
type: bool |
| 74 |
type: dict |
| 75 |
'4': |
| 76 |
description: Settings for SSID 4. |
| 77 |
suboptions: |
| 78 |
bandOperationMode: |
| 79 |
description: Choice between 'dual', '2.4ghz', '5ghz', '6ghz' or 'multi'. |
| 80 |
type: str |
| 81 |
bandSteeringEnabled: |
| 82 |
description: Steers client to most open band between 2.4 GHz and 5 GHz. |
| 83 |
Can be either true or false. |
| 84 |
type: bool |
| 85 |
type: dict |
| 86 |
type: dict |
| 87 |
twoFourGhzSettings: |
| 88 |
description: Settings related to 2.4Ghz band. |
| 89 |
suboptions: |
| 90 |
axEnabled: |
| 91 |
description: Determines whether ax radio on 2.4Ghz band is on or off. Can |
| 92 |
be either true or false. If false, we highly recommend disabling band steering. |
| 93 |
Defaults to true. |
| 94 |
type: bool |
| 95 |
minBitrate: |
| 96 |
description: Sets min bitrate (Mbps) of 2.4Ghz band. Can be one of '1', '2', |
| 97 |
'5.5', '6', '9', '11', '12', '18', '24', '36', '48' or '54'. Defaults to |
| 98 |
11. |
| 99 |
type: float |
| 100 |
type: dict |
| 101 |
requirements: |
| 102 |
- meraki >= 2.4.9 |
| 103 |
- python >= 3.5 |
| 104 |
seealso: |
| 105 |
- name: Cisco Meraki documentation for appliance createNetworkApplianceRfProfile |
| 106 |
description: Complete reference of the createNetworkApplianceRfProfile API. |
| 107 |
link: https://developer.cisco.com/meraki/api-v1/#!create-network-appliance-rf-profile |
| 108 |
notes: |
| 109 |
- SDK Method used are |
| 110 |
appliance.Appliance.create_network_appliance_rf_profile, |
| 111 |
- Paths used are |
| 112 |
post /networks/{networkId}/appliance/rfProfiles, |
| 113 |
""" |
| 114 |
|
| 115 |
EXAMPLES = r""" |
| 116 |
- name: Create |
| 117 |
cisco.meraki.networks_appliance_rf_profiles: |
| 118 |
meraki_api_key: "{{ meraki_api_key }}" |
| 119 |
meraki_base_url: "{{ meraki_base_url }}" |
| 120 |
meraki_single_request_timeout: "{{ meraki_single_request_timeout }}" |
| 121 |
meraki_certificate_path: "{{ meraki_certificate_path }}" |
| 122 |
meraki_requests_proxy: "{{ meraki_requests_proxy }}" |
| 123 |
meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}" |
| 124 |
meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}" |
| 125 |
meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}" |
| 126 |
meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}" |
| 127 |
meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}" |
| 128 |
meraki_maximum_retries: "{{ meraki_maximum_retries }}" |
| 129 |
meraki_output_log: "{{ meraki_output_log }}" |
| 130 |
meraki_log_file_prefix: "{{ meraki_log_file_prefix }}" |
| 131 |
meraki_log_path: "{{ meraki_log_path }}" |
| 132 |
meraki_print_console: "{{ meraki_print_console }}" |
| 133 |
meraki_suppress_logging: "{{ meraki_suppress_logging }}" |
| 134 |
meraki_simulate: "{{ meraki_simulate }}" |
| 135 |
meraki_be_geo_id: "{{ meraki_be_geo_id }}" |
| 136 |
meraki_caller: "{{ meraki_caller }}" |
| 137 |
meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}" |
| 138 |
meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}" |
| 139 |
state: present |
| 140 |
fiveGhzSettings: |
| 141 |
axEnabled: true |
| 142 |
minBitrate: 48 |
| 143 |
name: MX RF Profile |
| 144 |
networkId: string |
| 145 |
perSsidSettings: |
| 146 |
'1': |
| 147 |
bandOperationMode: dual |
| 148 |
bandSteeringEnabled: true |
| 149 |
'2': |
| 150 |
bandOperationMode: dual |
| 151 |
bandSteeringEnabled: true |
| 152 |
'3': |
| 153 |
bandOperationMode: dual |
| 154 |
bandSteeringEnabled: true |
| 155 |
'4': |
| 156 |
bandOperationMode: dual |
| 157 |
bandSteeringEnabled: true |
| 158 |
twoFourGhzSettings: |
| 159 |
axEnabled: true |
| 160 |
minBitrate: 12.0 |
| 161 |
""" |
| 162 |
RETURN = r""" |
| 163 |
meraki_response: |
| 164 |
description: A dictionary or list with the response returned by the Cisco Meraki Python SDK |
| 165 |
returned: always |
| 166 |
type: dict |
| 167 |
sample: > |
| 168 |
{ |
| 169 |
"id": "string", |
| 170 |
"networkId": "string", |
| 171 |
"name": "string", |
| 172 |
"twoFourGhzSettings": { |
| 173 |
"minBitrate": 0, |
| 174 |
"axEnabled": true |
| 175 |
}, |
| 176 |
"fiveGhzSettings": { |
| 177 |
"minBitrate": 0, |
| 178 |
"axEnabled": true |
| 179 |
}, |
| 180 |
"perSsidSettings": { |
| 181 |
"1": { |
| 182 |
"bandOperationMode": "string", |
| 183 |
"bandSteeringEnabled": true |
| 184 |
}, |
| 185 |
"2": { |
| 186 |
"bandOperationMode": "string", |
| 187 |
"bandSteeringEnabled": true |
| 188 |
}, |
| 189 |
"3": { |
| 190 |
"bandOperationMode": "string", |
| 191 |
"bandSteeringEnabled": true |
| 192 |
}, |
| 193 |
"4": { |
| 194 |
"bandOperationMode": "string", |
| 195 |
"bandSteeringEnabled": true |
| 196 |
} |
| 197 |
} |
| 198 |
} |
| 199 |
""" |