Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/playbooks/common_examples/sonic_interfaces_config.yaml

raw symbols SCIP
1 ---
2 - name: Ansible resource module example
3 hosts: datacenter
4 gather_facts: false
5 connection: httpapi
6 collections:
7 - dellemc.enterprise_sonic
8 tasks:
9 - name: Sonic_interfaces configuration
10 sonic_interfaces:
11 config:
12 - name: Loopback91
13 - name: Eth1/12
14 description: "hi test"
15 enabled: false
16 - name: Eth1/13
17 description: "hi ans"
18 enabled: false
19 - name: Add VLANs
20 sonic_vlans:
21 config:
22 - vlan_id: 11
23 - vlan_id: 12
24 - vlan_id: 13
25 state: merged
26 - name: Sonic_l2_interfaces configuration
27 sonic_l2_interfaces:
28 config:
29 - name: Eth1/12
30 access:
31 vlan: 12
32 - name: Eth1/13
33 access:
34 vlan: 11
35 trunk:
36 allowed_vlans:
37 - vlan: 12
38 - vlan: 13
39 state: merged
40 - name: Sonic_lag_interfaces configuration
41 sonic_lag_interfaces:
42 config:
43 - name: PortChannel12
44 members:
45 interfaces:
46 - member: Eth1/20
47 - member: Eth1/21
48 - name: PortChannel1
49 members:
50 interfaces:
51 - member: Eth1/22
52 - name: PortChannel2
53 state: merged
54 - name: Sonic_l3_interfaces configuration
55 sonic_l3_interfaces:
56 config:
57 - name: Loopback100
58 ipv4:
59 addresses:
60 - address: 101.1.1.1/32
61 - name: vlan 11
62 ipv6:
63 addresses:
64 - address: 150::1/16
65 - name: po 12
66 ipv4:
67 addresses:
68 - address: 180.1.1.1/16
69 - name: Eth1/24
70 ipv6:
71 enabled: true
72 - name: Merge port breakout configurations
73 sonic_port_breakout:
74 config:
75 - name: 1/11
76 mode: 1x100G
77 state: merged