Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_wireless_alternate_management_interface.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_alternate_management_interface
9 short_description: Resource module for networks _wireless _alternatemanagementinterface
10 description:
11 - Manage operation update of the resource networks _wireless _alternatemanagementinterface.
12 - Update alternate management interface and device static IP.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 accessPoints:
19 description: Array of access point serial number and IP assignment. Note accessPoints
20 IP assignment is not applicable for template networks, in other words, do not
21 put 'accessPoints' in the body when updating template networks. Also, an empty
22 'accessPoints' array will remove all previous static IP assignments.
23 elements: dict
24 suboptions:
25 alternateManagementIp:
26 description: Wireless alternate management interface device IP. Provide an
27 empty string to remove alternate management IP assignment.
28 type: str
29 dns1:
30 description: Primary DNS must be in IP format.
31 type: str
32 dns2:
33 description: Optional secondary DNS must be in IP format.
34 type: str
35 gateway:
36 description: Gateway must be in IP format.
37 type: str
38 serial:
39 description: Serial number of access point to be configured with alternate
40 management IP.
41 type: str
42 subnetMask:
43 description: Subnet mask must be in IP format.
44 type: str
45 type: list
46 enabled:
47 description: Boolean value to enable or disable alternate management interface.
48 type: bool
49 networkId:
50 description: NetworkId path parameter. Network ID.
51 type: str
52 protocols:
53 description: Can be one or more of the following values 'radius', 'snmp', 'syslog'
54 or 'ldap'.
55 elements: str
56 type: list
57 vlanId:
58 description: Alternate management interface VLAN, must be between 1 and 4094.
59 type: int
60 requirements:
61 - meraki >= 2.4.9
62 - python >= 3.5
63 seealso:
64 - name: Cisco Meraki documentation for wireless updateNetworkWirelessAlternateManagementInterface
65 description: Complete reference of the updateNetworkWirelessAlternateManagementInterface
66 API.
67 link: https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-alternate-management-interface
68 notes:
69 - SDK Method used are
70 wireless.Wireless.update_network_wireless_alternate_management_interface,
71 - Paths used are
72 put /networks/{networkId}/wireless/alternateManagementInterface,
73 """
74
75 EXAMPLES = r"""
76 - name: Update all
77 cisco.meraki.networks_wireless_alternate_management_interface:
78 meraki_api_key: "{{ meraki_api_key }}"
79 meraki_base_url: "{{ meraki_base_url }}"
80 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
81 meraki_certificate_path: "{{ meraki_certificate_path }}"
82 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
83 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
84 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
85 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
86 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
87 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
88 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
89 meraki_output_log: "{{ meraki_output_log }}"
90 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
91 meraki_log_path: "{{ meraki_log_path }}"
92 meraki_print_console: "{{ meraki_print_console }}"
93 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
94 meraki_simulate: "{{ meraki_simulate }}"
95 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
96 meraki_caller: "{{ meraki_caller }}"
97 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
98 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
99 state: present
100 accessPoints:
101 - alternateManagementIp: 1.2.3.4
102 dns1: 8.8.8.8
103 dns2: 8.8.4.4
104 gateway: 1.2.3.5
105 serial: Q234-ABCD-5678
106 subnetMask: 255.255.255.0
107 enabled: true
108 networkId: string
109 protocols:
110 - radius
111 - snmp
112 - syslog
113 - ldap
114 vlanId: 100
115 """
116 RETURN = r"""
117 meraki_response:
118 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
119 returned: always
120 type: dict
121 sample: >
122 {}
123 """