| 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: devices_appliance_radio_settings |
| 9 |
short_description: Resource module for devices _appliance _radio _settings |
| 10 |
description: |
| 11 |
- Manage operation update of the resource devices _appliance _radio _settings. |
| 12 |
- Update the radio settings of an appliance. |
| 13 |
version_added: '1.0.0' |
| 14 |
extends_documentation_fragment: |
| 15 |
- cisco.meraki.module |
| 16 |
author: Francisco Munoz (@fmunoz) |
| 17 |
options: |
| 18 |
fiveGhzSettings: |
| 19 |
description: Manual radio settings for 5 GHz. |
| 20 |
suboptions: |
| 21 |
channel: |
| 22 |
description: Sets a manual channel for 5 GHz. Can be '36', '40', '44', '48', |
| 23 |
'52', '56', '60', '64', '100', '104', '108', '112', '116', '120', '124', |
| 24 |
'128', '132', '136', '140', '144', '149', '153', '157', '161', '165', '169', |
| 25 |
'173' or '177' or null for using auto channel. |
| 26 |
type: int |
| 27 |
channelWidth: |
| 28 |
description: Sets a manual channel width for 5 GHz. Can be '0', '20', '40', |
| 29 |
'80' or '160' or null for using auto channel width. |
| 30 |
type: int |
| 31 |
targetPower: |
| 32 |
description: Set a manual target power for 5 GHz (dBm). Enter null for using |
| 33 |
auto power range. |
| 34 |
type: int |
| 35 |
type: dict |
| 36 |
rfProfileId: |
| 37 |
description: The ID of an RF profile to assign to the device. If the value of |
| 38 |
this parameter is null, the appropriate basic RF profile (indoor or outdoor) |
| 39 |
will be assigned to the device. Assigning an RF profile will clear ALL manually |
| 40 |
configured overrides on the device (channel width, channel, power). |
| 41 |
type: str |
| 42 |
serial: |
| 43 |
description: Serial path parameter. |
| 44 |
type: str |
| 45 |
twoFourGhzSettings: |
| 46 |
description: Manual radio settings for 2.4 GHz. |
| 47 |
suboptions: |
| 48 |
channel: |
| 49 |
description: Sets a manual channel for 2.4 GHz. Can be '1', '2', '3', '4', |
| 50 |
'5', '6', '7', '8', '9', '10', '11', '12', '13' or '14' or null for using |
| 51 |
auto channel. |
| 52 |
type: int |
| 53 |
targetPower: |
| 54 |
description: Set a manual target power for 2.4 GHz (dBm). Enter null for using |
| 55 |
auto power range. |
| 56 |
type: int |
| 57 |
type: dict |
| 58 |
requirements: |
| 59 |
- meraki >= 2.4.9 |
| 60 |
- python >= 3.5 |
| 61 |
seealso: |
| 62 |
- name: Cisco Meraki documentation for appliance updateDeviceApplianceRadioSettings |
| 63 |
description: Complete reference of the updateDeviceApplianceRadioSettings API. |
| 64 |
link: https://developer.cisco.com/meraki/api-v1/#!update-device-appliance-radio-settings |
| 65 |
notes: |
| 66 |
- SDK Method used are |
| 67 |
appliance.Appliance.update_device_appliance_radio_settings, |
| 68 |
- Paths used are |
| 69 |
put /devices/{serial}/appliance/radio/settings, |
| 70 |
""" |
| 71 |
|
| 72 |
EXAMPLES = r""" |
| 73 |
- name: Update all |
| 74 |
cisco.meraki.devices_appliance_radio_settings: |
| 75 |
meraki_api_key: "{{ meraki_api_key }}" |
| 76 |
meraki_base_url: "{{ meraki_base_url }}" |
| 77 |
meraki_single_request_timeout: "{{ meraki_single_request_timeout }}" |
| 78 |
meraki_certificate_path: "{{ meraki_certificate_path }}" |
| 79 |
meraki_requests_proxy: "{{ meraki_requests_proxy }}" |
| 80 |
meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}" |
| 81 |
meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}" |
| 82 |
meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}" |
| 83 |
meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}" |
| 84 |
meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}" |
| 85 |
meraki_maximum_retries: "{{ meraki_maximum_retries }}" |
| 86 |
meraki_output_log: "{{ meraki_output_log }}" |
| 87 |
meraki_log_file_prefix: "{{ meraki_log_file_prefix }}" |
| 88 |
meraki_log_path: "{{ meraki_log_path }}" |
| 89 |
meraki_print_console: "{{ meraki_print_console }}" |
| 90 |
meraki_suppress_logging: "{{ meraki_suppress_logging }}" |
| 91 |
meraki_simulate: "{{ meraki_simulate }}" |
| 92 |
meraki_be_geo_id: "{{ meraki_be_geo_id }}" |
| 93 |
meraki_caller: "{{ meraki_caller }}" |
| 94 |
meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}" |
| 95 |
meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}" |
| 96 |
state: present |
| 97 |
fiveGhzSettings: |
| 98 |
channel: 149 |
| 99 |
channelWidth: 20 |
| 100 |
targetPower: 15 |
| 101 |
rfProfileId: '1234' |
| 102 |
serial: string |
| 103 |
twoFourGhzSettings: |
| 104 |
channel: 11 |
| 105 |
targetPower: 21 |
| 106 |
""" |
| 107 |
RETURN = r""" |
| 108 |
meraki_response: |
| 109 |
description: A dictionary or list with the response returned by the Cisco Meraki Python SDK |
| 110 |
returned: always |
| 111 |
type: dict |
| 112 |
sample: > |
| 113 |
{ |
| 114 |
"serial": "string", |
| 115 |
"rfProfileId": "string", |
| 116 |
"twoFourGhzSettings": { |
| 117 |
"channel": 0, |
| 118 |
"targetPower": 0 |
| 119 |
}, |
| 120 |
"fiveGhzSettings": { |
| 121 |
"channel": 0, |
| 122 |
"channelWidth": 0, |
| 123 |
"targetPower": 0 |
| 124 |
} |
| 125 |
} |
| 126 |
""" |