Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_wireless_ssids_vpn.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_ssids_vpn
9 short_description: Resource module for networks _wireless _ssids _vpn
10 description:
11 - Manage operation update of the resource networks _wireless _ssids _vpn.
12 - Update the VPN settings for the SSID.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 concentrator:
19 description: The VPN concentrator settings for this SSID.
20 suboptions:
21 networkId:
22 description: The NAT ID of the concentrator that should be set.
23 type: str
24 vlanId:
25 description: The VLAN that should be tagged for the concentrator.
26 type: int
27 type: dict
28 failover:
29 description: Secondary VPN concentrator settings. This is only used when two VPN
30 concentrators are configured on the SSID.
31 suboptions:
32 heartbeatInterval:
33 description: Idle timer interval in seconds.
34 type: int
35 idleTimeout:
36 description: Idle timer timeout in seconds.
37 type: int
38 requestIp:
39 description: IP addressed reserved on DHCP server where SSID will terminate.
40 type: str
41 type: dict
42 networkId:
43 description: NetworkId path parameter. Network ID.
44 type: str
45 number:
46 description: Number path parameter.
47 type: str
48 splitTunnel:
49 description: The VPN split tunnel settings for this SSID.
50 suboptions:
51 enabled:
52 description: If true, VPN split tunnel is enabled.
53 type: bool
54 rules:
55 description: List of VPN split tunnel rules.
56 elements: dict
57 suboptions:
58 comment:
59 description: Description for this split tunnel rule (optional).
60 type: str
61 destCidr:
62 description: Destination for this split tunnel rule. IP address, fully-qualified
63 domain names (FQDN) or 'any'.
64 type: str
65 destPort:
66 description: Destination port for this split tunnel rule, (integer in
67 the range 1-65535), or 'any'.
68 type: str
69 policy:
70 description: Traffic policy specified for this split tunnel rule, 'allow'
71 or 'deny'.
72 type: str
73 protocol:
74 description: Protocol for this split tunnel rule.
75 type: str
76 type: list
77 type: dict
78 requirements:
79 - meraki >= 2.4.9
80 - python >= 3.5
81 seealso:
82 - name: Cisco Meraki documentation for wireless updateNetworkWirelessSsidVpn
83 description: Complete reference of the updateNetworkWirelessSsidVpn API.
84 link: https://developer.cisco.com/meraki/api-v1/#!update-network-wireless-ssid-vpn
85 notes:
86 - SDK Method used are
87 wireless.Wireless.update_network_wireless_ssid_vpn,
88 - Paths used are
89 put /networks/{networkId}/wireless/ssids/{number}/vpn,
90 """
91
92 EXAMPLES = r"""
93 - name: Update all
94 cisco.meraki.networks_wireless_ssids_vpn:
95 meraki_api_key: "{{ meraki_api_key }}"
96 meraki_base_url: "{{ meraki_base_url }}"
97 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
98 meraki_certificate_path: "{{ meraki_certificate_path }}"
99 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
100 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
101 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
102 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
103 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
104 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
105 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
106 meraki_output_log: "{{ meraki_output_log }}"
107 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
108 meraki_log_path: "{{ meraki_log_path }}"
109 meraki_print_console: "{{ meraki_print_console }}"
110 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
111 meraki_simulate: "{{ meraki_simulate }}"
112 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
113 meraki_caller: "{{ meraki_caller }}"
114 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
115 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
116 state: present
117 concentrator:
118 name: some concentrator name
119 networkId: N_123
120 vlanId: 44
121 failover:
122 heartbeatInterval: 10
123 idleTimeout: 30
124 requestIp: 1.1.1.1
125 networkId: string
126 number: string
127 splitTunnel:
128 enabled: true
129 rules:
130 - comment: split tunnel rule 1
131 destCidr: 1.1.1.1/32
132 destPort: any
133 policy: allow
134 protocol: Any
135 - comment: split tunnel rule 2
136 destCidr: foo.com
137 destPort: any
138 policy: deny
139 """
140 RETURN = r"""
141 meraki_response:
142 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
143 returned: always
144 type: dict
145 sample: >
146 {}
147 """