Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_wireless_radio_rrm.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: networks_wireless_radio_rrm
9 short_description: Resource module for networks _wireless _radio _rrm
10 description:
11 - Manage operation update of the resource networks _wireless _radio _rrm.
12 - Update the AutoRF settings for a wireless network.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 ai:
19 description: AI settings.
20 suboptions:
21 enabled:
22 description: Toggle for enabling or disabling AI in a network.
23 type: bool
24 type: dict
25 busyHour:
26 description: Busy Hour settings.
27 suboptions:
28 minimizeChanges:
29 description: Minimize Changes settings.
30 suboptions:
31 enabled:
32 description: Toggle for enabling or disabling Busy Hour in a network.
33 type: bool
34 type: dict
35 schedule:
36 description: Busy hour mode settings.
37 suboptions:
38 manual:
39 description: Manual Busy Hour settings.
40 suboptions:
41 end:
42 description: The hour that Manual Busy Hour ends each day, in the network
43 time zone.
44 type: str
45 start:
46 description: The hour that Manual Busy Hour starts each day, in the
47 network time zone.
48 type: str
49 type: dict
50 mode:
51 description: The Busy Hour mode applied to the network when minimizeChanges
52 is enabled. Must be one of 'automatic' or 'manual'. Automatic busy hour
53 is only available on firmware versions >= MR 27.0.
54 type: str
55 type: dict
56 type: dict
57 channel:
58 description: Channel settings.
59 suboptions:
60 avoidance:
61 description: Avoidance settings.
62 suboptions:
63 enabled:
64 description: Toggle for enabling or disabling channel avoidance in a network.
65 type: bool
66 type: dict
67 type: dict
68 fra:
69 description: FRA settings.
70 suboptions:
71 enabled:
72 description: Toggle to activate or deactivate FRA in a network, contingent on
73 AI-RRM being enabled.
74 type: bool
75 type: dict
76 networkId:
77 description: NetworkId path parameter. Network ID.
78 type: str
79 requirements:
80 - meraki >= 2.4.9
81 - python >= 3.5
82 seealso:
83 - name: Cisco Meraki documentation for wireless updateNetworkWirelessRadioRrm
84 description: Complete reference of the updateNetworkWirelessRadioRrm API.
85 link: https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-radio-rrm
86 notes:
87 - SDK Method used are
88 wireless.Wireless.update_network_wireless_radio_rrm,
89
90 - Paths used are
91 put /networks/{networkId}/wireless/radio/rrm,
92 """
93
94 EXAMPLES = r"""
95 - name: Update all
96 cisco.meraki.networks_wireless_radio_rrm:
97 meraki_api_key: "{{ meraki_api_key }}"
98 meraki_base_url: "{{ meraki_base_url }}"
99 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
100 meraki_certificate_path: "{{ meraki_certificate_path }}"
101 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
102 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
103 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
104 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
105 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
106 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
107 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
108 meraki_output_log: "{{ meraki_output_log }}"
109 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
110 meraki_log_path: "{{ meraki_log_path }}"
111 meraki_print_console: "{{ meraki_print_console }}"
112 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
113 meraki_simulate: "{{ meraki_simulate }}"
114 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
115 meraki_caller: "{{ meraki_caller }}"
116 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
117 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
118
119 ai:
120 enabled: true
121 busyHour:
122 minimizeChanges:
123 enabled: true
124 schedule:
125 manual:
126 end: '15:00'
127 start: '10:00'
128 mode: automatic
129 channel:
130 avoidance:
131 enabled: true
132 fra:
133 enabled: false
134 networkId: string
135 """
136 RETURN = r"""
137 meraki_response:
138 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
139 returned: always
140 type: dict
141 sample: >
142 {
143 "networkId": "string",
144 "name": "string",
145 "timeZone": "string",
146 "busyHour": {
147 "schedule": {
148 "mode": "string",
149 "automatic": {
150 "start": "string",
151 "end": "string"
152 },
153 "manual": {
154 "start": "string",
155 "end": "string"
156 }
157 },
158 "minimizeChanges": {
159 "enabled": true
160 }
161 },
162 "channel": {
163 "avoidance": {
164 "enabled": true
165 }
166 },
167 "fra": {
168 "enabled": true
169 },
170 "ai": {
171 "enabled": true,
172 "lastEnabledAt": "string"
173 }
174 }
175 """