Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/devices_cellular_gateway_lan.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_cellular_gateway_lan
9 short_description: Resource module for devices _cellulargateway _lan
10 description:
11 - Manage operation update of the resource devices _cellulargateway _lan.
12 - Update the LAN Settings for a single MG.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 fixedIpAssignments:
19 description: List of all fixed IP assignments for a single MG.
20 elements: dict
21 suboptions:
22 ip:
23 description: The IP address you want to assign to a specific server or device.
24 type: str
25 mac:
26 description: The MAC address of the server or device that hosts the internal
27 resource that you wish to receive the specified IP address.
28 type: str
29 name:
30 description: A descriptive name of the assignment.
31 type: str
32 type: list
33 reservedIpRanges:
34 description: List of all reserved IP ranges for a single MG.
35 elements: dict
36 suboptions:
37 comment:
38 description: Comment explaining the reserved IP range.
39 type: str
40 end:
41 description: Ending IP included in the reserved range of IPs.
42 type: str
43 start:
44 description: Starting IP included in the reserved range of IPs.
45 type: str
46 type: list
47 serial:
48 description: Serial path parameter.
49 type: str
50 requirements:
51 - meraki >= 2.4.9
52 - python >= 3.5
53 seealso:
54 - name: Cisco Meraki documentation for cellularGateway updateDeviceCellularGatewayLan
55 description: Complete reference of the updateDeviceCellularGatewayLan API.
56 link: https://developer.cisco.com/meraki/api-v1/#!update-device-cellular-gateway-lan
57 notes:
58 - SDK Method used are
59 cellular_gateway.CellularGateway.update_device_cellular_gateway_lan,
60 - Paths used are
61 put /devices/{serial}/cellularGateway/lan,
62 """
63
64 EXAMPLES = r"""
65 - name: Update all
66 cisco.meraki.devices_cellular_gateway_lan:
67 meraki_api_key: "{{ meraki_api_key }}"
68 meraki_base_url: "{{ meraki_base_url }}"
69 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
70 meraki_certificate_path: "{{ meraki_certificate_path }}"
71 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
72 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
73 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
74 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
75 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
76 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
77 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
78 meraki_output_log: "{{ meraki_output_log }}"
79 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
80 meraki_log_path: "{{ meraki_log_path }}"
81 meraki_print_console: "{{ meraki_print_console }}"
82 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
83 meraki_simulate: "{{ meraki_simulate }}"
84 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
85 meraki_caller: "{{ meraki_caller }}"
86 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
87 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
88 state: present
89 fixedIpAssignments:
90 - ip: 192.168.0.10
91 mac: 0b:00:00:00:00:ac
92 name: server 1
93 reservedIpRanges:
94 - comment: A reserved IP range
95 end: 192.168.1.1
96 start: 192.168.1.0
97 serial: string
98 """
99 RETURN = r"""
100 meraki_response:
101 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
102 returned: always
103 type: dict
104 sample: >
105 {
106 "deviceName": "string",
107 "deviceLanIp": "string",
108 "deviceSubnet": "string",
109 "fixedIpAssignments": [
110 {
111 "name": "string",
112 "ip": "string",
113 "mac": "string"
114 }
115 ],
116 "reservedIpRanges": [
117 {
118 "start": "string",
119 "end": "string",
120 "comment": "string"
121 }
122 ]
123 }
124 """