Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_wireless_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: networks_wireless_settings
9 short_description: Resource module for networks _wireless _settings
10 description:
11 - Manage operation update of the resource networks _wireless _settings.
12 - Update the wireless settings for a network.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 ipv6BridgeEnabled:
19 description: Toggle for enabling or disabling IPv6 bridging in a network (Note if
20 enabled, SSIDs must also be configured to use bridge mode).
21 type: bool
22 ledLightsOn:
23 description: Toggle for enabling or disabling LED lights on all APs in the network
24 (making them run dark).
25 type: bool
26 locationAnalyticsEnabled:
27 description: Toggle for enabling or disabling location analytics for your network.
28 type: bool
29 meshingEnabled:
30 description: Toggle for enabling or disabling meshing in a network.
31 type: bool
32 multicastToUnicastConversion:
33 description: Multicast-to-unicast conversion settings across the network.
34 suboptions:
35 enabled:
36 description: Toggle for enabling or disabling multicast-to-unicast conversion
37 across the network.
38 type: bool
39 type: dict
40 namedVlans:
41 description: Named VLAN settings for wireless networks.
42 suboptions:
43 poolDhcpMonitoring:
44 description: Named VLAN Pool DHCP Monitoring settings.
45 suboptions:
46 duration:
47 description: The duration in minutes that devices will refrain from using
48 dirty VLANs before adding them back to the pool.
49 type: int
50 enabled:
51 description: Whether or not devices using named VLAN pools should remove
52 dirty VLANs from the pool, thereby preventing clients from being assigned
53 to VLANs where they would be unable to obtain an IP address via DHCP.
54 type: bool
55 type: dict
56 type: dict
57 networkId:
58 description: NetworkId path parameter. Network ID.
59 type: str
60 upgradeStrategy:
61 description: The default strategy that network devices will use to perform an upgrade.
62 Requires firmware version MR 26.8 or higher.
63 type: str
64 requirements:
65 - meraki >= 2.4.9
66 - python >= 3.5
67 seealso:
68 - name: Cisco Meraki documentation for wireless updateNetworkWirelessSettings
69 description: Complete reference of the updateNetworkWirelessSettings API.
70 link: https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-settings
71 notes:
72 - SDK Method used are
73 wireless.Wireless.update_network_wireless_settings,
74
75 - Paths used are
76 put /networks/{networkId}/wireless/settings,
77 """
78
79 EXAMPLES = r"""
80 - name: Update all
81 cisco.meraki.networks_wireless_settings:
82 meraki_api_key: "{{ meraki_api_key }}"
83 meraki_base_url: "{{ meraki_base_url }}"
84 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
85 meraki_certificate_path: "{{ meraki_certificate_path }}"
86 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
87 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
88 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
89 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
90 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
91 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
92 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
93 meraki_output_log: "{{ meraki_output_log }}"
94 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
95 meraki_log_path: "{{ meraki_log_path }}"
96 meraki_print_console: "{{ meraki_print_console }}"
97 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
98 meraki_simulate: "{{ meraki_simulate }}"
99 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
100 meraki_caller: "{{ meraki_caller }}"
101 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
102 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
103 state: present
104
105 ipv6BridgeEnabled: false
106 ledLightsOn: false
107 locationAnalyticsEnabled: false
108 meshingEnabled: true
109 multicastToUnicastConversion:
110 enabled: true
111 namedVlans:
112 poolDhcpMonitoring:
113 duration: 5
114 enabled: true
115 networkId: string
116 upgradeStrategy: minimizeUpgradeTime
117 """
118 RETURN = r"""
119 meraki_response:
120 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
121 returned: always
122 type: dict
123 sample: >
124 {
125 "meshingEnabled": true,
126 "ipv6BridgeEnabled": true,
127 "locationAnalyticsEnabled": true,
128 "upgradeStrategy": "string",
129 "ledLightsOn": true,
130 "multicastToUnicastConversion": {
131 "enabled": true
132 },
133 "namedVlans": {
134 "poolDhcpMonitoring": {
135 "enabled": true,
136 "duration": 0
137 }
138 },
139 "regulatoryDomain": {
140 "name": "string",
141 "countryCode": "string",
142 "permits6e": true
143 }
144 }
145 """