Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/devices_switch_routing_interfaces_info.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_switch_routing_interfaces_info
9 short_description: Information module for devices _switch _routing _interfaces
10 description:
11 - Information module for Devices Switch Routing Interfaces Info.
12 - Get all devices _switch _routing _interfaces.
13 - Get devices _switch _routing _interfaces by id.
14 - List layer 3 interfaces for a switch. Those for a stack may be found under switch
15 stack routing.
16 - Return a layer 3 interface for a switch.
17 version_added: '1.0.0'
18 extends_documentation_fragment:
19 - cisco.meraki.module_info
20 author: Francisco Munoz (@fmunoz)
21 options:
22 headers:
23 description: Additional headers.
24 type: dict
25 serial:
26 description:
27 - Information module for Devices Switch Routing Interfaces Info.
28 - Serial path parameter.
29 type: str
30 mode:
31 description:
32 - Information module for Devices Switch Routing Interfaces Info.
33 - Mode query parameter. Optional parameter to filter L3 interfaces by mode.
34 type: str
35 protocol:
36 description:
37 - Information module for Devices Switch Routing Interfaces Info.
38 - Protocol query parameter. Optional parameter to filter L3 interfaces by protocol.
39 type: str
40 interfaceId:
41 description:
42 - Information module for Devices Switch Routing Interfaces Info.
43 - InterfaceId path parameter. Interface ID.
44 type: str
45 requirements:
46 - meraki >= 2.4.9
47 - python >= 3.5
48 seealso:
49 - name: Cisco Meraki documentation for switch getDeviceSwitchRoutingInterface
50 description: Complete reference of the getDeviceSwitchRoutingInterface API.
51 link: https://developer.cisco.com/meraki/api-v1/#!get-device-switch-routing-interface
52 - name: Cisco Meraki documentation for switch getDeviceSwitchRoutingInterfaces
53 description: Complete reference of the getDeviceSwitchRoutingInterfaces API.
54 link: https://developer.cisco.com/meraki/api-v1/#!get-device-switch-routing-interfaces
55 notes:
56 - SDK Method used are
57 switch.Switch.get_device_switch_routing_interface,
58 switch.Switch.get_device_switch_routing_interfaces,
59 - Paths used are
60 get /devices/{serial}/switch/routing/interfaces,
61 get /devices/{serial}/switch/routing/interfaces/{interfaceId},
62 """
63
64 EXAMPLES = r"""
65 - name: Get all devices _switch _routing _interfaces
66 cisco.meraki.devices_switch_routing_interfaces_info:
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 mode: string
89 protocol: string
90 serial: string
91 register: result
92 - name: Get devices _switch _routing _interfaces by id
93 cisco.meraki.devices_switch_routing_interfaces_info:
94 meraki_api_key: "{{ meraki_api_key }}"
95 meraki_base_url: "{{ meraki_base_url }}"
96 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
97 meraki_certificate_path: "{{ meraki_certificate_path }}"
98 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
99 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
100 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
101 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
102 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
103 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
104 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
105 meraki_output_log: "{{ meraki_output_log }}"
106 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
107 meraki_log_path: "{{ meraki_log_path }}"
108 meraki_print_console: "{{ meraki_print_console }}"
109 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
110 meraki_simulate: "{{ meraki_simulate }}"
111 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
112 meraki_caller: "{{ meraki_caller }}"
113 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
114 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
115 serial: string
116 interfaceId: string
117 register: result
118 """
119 RETURN = r"""
120 meraki_response:
121 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
122 returned: always
123 type: dict
124 sample: >
125 {
126 "interfaceId": "string",
127 "name": "string",
128 "mode": "string",
129 "subnet": "string",
130 "interfaceIp": "string",
131 "serial": "string",
132 "switchPortId": "string",
133 "multicastRouting": "string",
134 "vlanId": 0,
135 "uplinkV4": true,
136 "uplinkV6": true,
137 "ospfSettings": {
138 "area": "string",
139 "cost": 0,
140 "isPassiveEnabled": true,
141 "networkType": "string"
142 },
143 "ospfV3": {
144 "area": "string",
145 "cost": 0,
146 "isPassiveEnabled": true,
147 "networkType": "string"
148 },
149 "ipv6": {
150 "assignmentMode": "string",
151 "address": "string",
152 "prefix": "string",
153 "gateway": "string"
154 },
155 "vrf": {
156 "name": "string"
157 },
158 "loopback": {},
159 "defaultGateway": "string"
160 }
161 """