Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/devices_wireless_radio_settings.py

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