Debian Codegraph @

ansible_collections/cisco/meraki/plugins/modules/networks_switch_storm_control.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_storm_control
9 short_description: Resource module for networks _switch _stormcontrol
10 description:
11 - Manage operation update of the resource networks _switch _stormcontrol.
12 - Update the storm control configuration for a switch network.
13 version_added: '1.0.0'
14 extends_documentation_fragment:
15 - cisco.meraki.module
16 author: Francisco Munoz (@fmunoz)
17 options:
18 broadcastThreshold:
19 description: Percentage (1 to 99) of total available port bandwidth for broadcast
20 traffic type. Default value 100 percent rate is to clear the configuration.
21 type: int
22 multicastThreshold:
23 description: Percentage (1 to 99) of total available port bandwidth for multicast
24 traffic type. Default value 100 percent rate is to clear the configuration.
25 type: int
26 networkId:
27 description: NetworkId path parameter. Network ID.
28 type: str
29 treatTheseTrafficTypesAsOneThreshold:
30 description: Grouped traffic types.
31 elements: str
32 type: list
33 unknownUnicastThreshold:
34 description: Percentage (1 to 99) of total available port bandwidth for unknown
35 unicast (dlf-destination lookup failure) traffic type. Default value 100 percent
36 rate is to clear the configuration.
37 type: int
38 requirements:
39 - meraki >= 2.4.9
40 - python >= 3.5
41 seealso:
42 - name: Cisco Meraki documentation for switch updateNetworkSwitchStormControl
43 description: Complete reference of the updateNetworkSwitchStormControl API.
44 link: https://developer.cisco.com/meraki/api-v1/#!update-network-switch-storm-control
45 notes:
46 - SDK Method used are
47 switch.Switch.update_network_switch_storm_control,
48 - Paths used are
49 put /networks/{networkId}/switch/stormControl,
50 """
51
52 EXAMPLES = r"""
53 - name: Update all
54 cisco.meraki.networks_switch_storm_control:
55 meraki_api_key: "{{ meraki_api_key }}"
56 meraki_base_url: "{{ meraki_base_url }}"
57 meraki_single_request_timeout: "{{ meraki_single_request_timeout }}"
58 meraki_certificate_path: "{{ meraki_certificate_path }}"
59 meraki_requests_proxy: "{{ meraki_requests_proxy }}"
60 meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}"
61 meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}"
62 meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}"
63 meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}"
64 meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}"
65 meraki_maximum_retries: "{{ meraki_maximum_retries }}"
66 meraki_output_log: "{{ meraki_output_log }}"
67 meraki_log_file_prefix: "{{ meraki_log_file_prefix }}"
68 meraki_log_path: "{{ meraki_log_path }}"
69 meraki_print_console: "{{ meraki_print_console }}"
70 meraki_suppress_logging: "{{ meraki_suppress_logging }}"
71 meraki_simulate: "{{ meraki_simulate }}"
72 meraki_be_geo_id: "{{ meraki_be_geo_id }}"
73 meraki_caller: "{{ meraki_caller }}"
74 meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}"
75 meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}"
76 state: present
77 broadcastThreshold: 30
78 multicastThreshold: 30
79 networkId: string
80 treatTheseTrafficTypesAsOneThreshold:
81 - broadcast
82 - multicast
83 unknownUnicastThreshold: 30
84 """
85 RETURN = r"""
86 meraki_response:
87 description: A dictionary or list with the response returned by the Cisco Meraki Python SDK
88 returned: always
89 type: dict
90 sample: >
91 {
92 "broadcastThreshold": 0,
93 "multicastThreshold": 0,
94 "unknownUnicastThreshold": 0,
95 "treatTheseTrafficTypesAsOneThreshold": [
96 "string"
97 ]
98 }
99 """