Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_switch_routing_ospf_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: networks_switch_routing_ospf_info
9 short_description: Information module for networks _switch _routing _ospf
10 description:
11 - Information module for Networks Switch Routing Ospf Info.
12 - Get all networks _switch _routing _ospf.
13 - Return layer 3 OSPF routing configuration.
14 version_added: '1.0.0'
15 extends_documentation_fragment:
16 - cisco.meraki.module_info
17 author: Francisco Munoz (@fmunoz)
18 options:
19 headers:
20 description: Additional headers.
21 type: dict
22 networkId:
23 description:
24 - Information module for Networks Switch Routing Ospf Info.
25 - NetworkId path parameter. Network ID.
26 type: str
27 vrf:
28 description:
29 - Information module for Networks Switch Routing Ospf Info.
30 - >
31 Vrf query parameter. The VRF to return the OSPF routing configuration for.
32 When not provided, the default VRF is used. Included on networks with IOS
33 XE 17.18 or higher.
34 type: str
35 requirements:
36 - meraki >= 2.4.9
37 - python >= 3.5
38 seealso:
39 - name: Cisco Meraki documentation for switch getNetworkSwitchRoutingOspf
40 description: Complete reference of the getNetworkSwitchRoutingOspf API.
41 link: https://developer.cisco.com/meraki/api-v1/#!get-network-switch-routing-ospf
42 notes:
43 - SDK Method used are
44 switch.Switch.get_network_switch_routing_ospf,
45 - Paths used are
46 get /networks/{networkId}/switch/routing/ospf,
47 """
48
49 EXAMPLES = r"""
50 - name: Get all networks _switch _routing _ospf
51 cisco.meraki.networks_switch_routing_ospf_info:
52 meraki_api_key: "{{ meraki_api_key }}"
53 meraki_base_url: "{{ meraki_base_url }}"
54 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
55 meraki_certificate_path: "{{ meraki_certificate_path }}"
56 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
57 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
58 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
59 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
60 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
61 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
62 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
63 meraki_output_log: "{{ meraki_output_log }}"
64 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
65 meraki_log_path: "{{ meraki_log_path }}"
66 meraki_print_console: "{{ meraki_print_console }}"
67 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
68 meraki_simulate: "{{ meraki_simulate }}"
69 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
70 meraki_caller: "{{ meraki_caller }}"
71 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
72 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
73 vrf: string
74 networkId: string
75 register: result
76 """
77 RETURN = r"""
78 meraki_response:
79 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
80 returned: always
81 type: dict
82 sample: >
83 {
84 "enabled": true,
85 "helloTimerInSeconds": 0,
86 "deadTimerInSeconds": 0,
87 "areas": [
88 {
89 "areaId": "string",
90 "areaName": "string",
91 "areaType": "string"
92 }
93 ],
94 "v3": {
95 "enabled": true,
96 "helloTimerInSeconds": 0,
97 "deadTimerInSeconds": 0,
98 "areas": [
99 {
100 "areaId": "string",
101 "areaName": "string",
102 "areaType": "string"
103 }
104 ]
105 },
106 "md5AuthenticationEnabled": true,
107 "md5AuthenticationKey": {
108 "id": 0,
109 "passphrase": "string"
110 },
111 "vrf": {
112 "name": "string"
113 }
114 }
115 """