blob: c9f2d333b9ec7f055d5d3a9275c54a630d58c86d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
---
- hosts: localhost
vars:
network_id: L_828099381482770866 # Site-2
serial_number: QBSB-D5ZD-9CXT
gather_facts: false
tasks:
- name: Update STP settings
cisco.meraki.networks_switch_stp:
networkId: "{{ network_id }}"
rstpEnabled: true
stpBridgePriority:
- stpPriority: 4096
switches:
- "{{ serial_number }}"
- name: Update switch settings
cisco.meraki.networks_switch_settings:
networkId: "{{ network_id }}"
useCombinedPower: true
vlan: 1
- name: Update storm-control settings
cisco.meraki.networks_switch_storm_control:
networkId: "{{ network_id }}"
broadcastThreshold: 30
multicastThreshold: 30
unknownUnicastThreshold: 30
- name: Update MTU settings
cisco.meraki.networks_switch_mtu:
networkId: "{{ network_id }}"
defaultMtuSize: 9578
- name: Createa a routing interface
cisco.meraki.devices_switch_routing_interfaces:
defaultGateway: 192.168.1.1
interfaceIp: 192.168.1.2
name: L3 interface
serial: "{{ serial_number }}"
subnet: 192.168.1.0/24
vlanId: 123
- name: Create a static route
cisco.meraki.devices_switch_routing_static_routes:
serial: "{{ serial_number }}"
name: My route
nextHopIp: 192.168.1.100
subnet: 1.2.3.0/24
- name: Create a static route
cisco.meraki.devices_switch_routing_static_routes:
serial: "{{ serial_number }}"
name: My route
nextHopIp: 192.168.1.100
subnet: 1.2.3.0/24
- name: Port cycle
cisco.meraki.devices_switch_ports_cycle:
serial: "{{ serial_number }}"
ports:
- 1
- "4-5"
- "25-48"
|