Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_switch_routing_multicast.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_multicast
9 short_description: Resource module for networks _switch _routing _multicast
10 description:
11 - Manage operation update of the resource networks _switch _routing _multicast.
12 - Update multicast settings for a network.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 defaultSettings:
19 description: Default multicast setting for entire network. IGMP snooping and Flood
20 unknown multicast traffic settings are enabled by default.
21 suboptions:
22 floodUnknownMulticastTrafficEnabled:
23 description: Flood unknown multicast traffic setting for entire network.
24 type: bool
25 igmpSnoopingEnabled:
26 description: IGMP snooping setting for entire network.
27 type: bool
28 type: dict
29 networkId:
30 description: NetworkId path parameter. Network ID.
31 type: str
32 overrides:
33 description: Array of paired switches/stacks/profiles and corresponding multicast
34 settings. An empty array will clear the multicast settings.
35 elements: dict
36 suboptions:
37 floodUnknownMulticastTrafficEnabled:
38 description: Flood unknown multicast traffic setting for switches, switch
39 stacks or switch templates.
40 type: bool
41 igmpSnoopingEnabled:
42 description: IGMP snooping setting for switches, switch stacks or switch templates.
43 type: bool
44 stacks:
45 description: List of switch stack ids for non-template network.
46 elements: str
47 type: list
48 switchProfiles:
49 description: List of switch templates ids for template network.
50 elements: str
51 type: list
52 switches:
53 description: List of switch serials for non-template network.
54 elements: str
55 type: list
56 type: list
57 requirements:
58 - meraki >= 2.4.9
59 - python >= 3.5
60 seealso:
61 - name: Cisco Meraki documentation for switch updateNetworkSwitchRoutingMulticast
62 description: Complete reference of the updateNetworkSwitchRoutingMulticast API.
63 link: https://developer.cisco.com/meraki/api-v1/#!update-network-switch-routing-multicast
64 notes:
65 - SDK Method used are
66 switch.Switch.update_network_switch_routing_multicast,
67 - Paths used are
68 put /networks/{networkId}/switch/routing/multicast,
69 """
70
71 EXAMPLES = r"""
72 - name: Update all
73 cisco.meraki.networks_switch_routing_multicast:
74 meraki_api_key: "{{ meraki_api_key }}"
75 meraki_base_url: "{{ meraki_base_url }}"
76 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
77 meraki_certificate_path: "{{ meraki_certificate_path }}"
78 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
79 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
80 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
81 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
82 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
83 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
84 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
85 meraki_output_log: "{{ meraki_output_log }}"
86 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
87 meraki_log_path: "{{ meraki_log_path }}"
88 meraki_print_console: "{{ meraki_print_console }}"
89 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
90 meraki_simulate: "{{ meraki_simulate }}"
91 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
92 meraki_caller: "{{ meraki_caller }}"
93 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
94 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
95 state: present
96 defaultSettings:
97 floodUnknownMulticastTrafficEnabled: true
98 igmpSnoopingEnabled: true
99 networkId: string
100 overrides:
101 - floodUnknownMulticastTrafficEnabled: true
102 igmpSnoopingEnabled: true
103 stacks:
104 - '789102'
105 - '123456'
106 - '129102'
107 switchProfiles:
108 - '1234'
109 - '4567'
110 switches:
111 - Q234-ABCD-0001
112 - Q234-ABCD-0002
113 - Q234-ABCD-0003
114 """
115 RETURN = r"""
116 meraki_response:
117 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
118 returned: always
119 type: dict
120 sample: >
121 {
122 "defaultSettings": {
123 "igmpSnoopingEnabled": true,
124 "floodUnknownMulticastTrafficEnabled": true
125 },
126 "overrides": [
127 {
128 "switches": [
129 "string"
130 ],
131 "stacks": [
132 "string"
133 ],
134 "switchProfiles": [
135 "string"
136 ],
137 "igmpSnoopingEnabled": true,
138 "floodUnknownMulticastTrafficEnabled": true
139 }
140 ]
141 }
142 """