Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: "Configure a SONiC device"
3 hosts: datacenter
4 connection: network_cli
5 gather_facts: false
6 collections:
7 - dellemc.enterprise_sonic
8 tasks:
9 - name: "Configure SNMP community for SONiC device along with 'save'"
10 sonic_config:
11 commands: ['snmp-server community public group ro']
12 save: true
13
14 - name: "Configure interface description using 'parents' option on SONiC device"
15 sonic_config:
16 lines:
17 - description hi
18 parents: ['interface Eth1/3']
19
20 - name: "Configure bgp using multiple level 'parents' on SONiC device"
21 sonic_config:
22 lines:
23 - maximum-paths 4
24 parents: ['router bgp 4', 'address-family ipv4 unicast']
25
26 - name: "Configure ip access-list using 'before' and 'after' option on SONiC device"
27 sonic_config:
28 lines:
29 - seq 1 permit tcp any any ack
30 parents: ['ip access-list test']
31 before: ['no ip access-list test']
32 after: ['no ip access-list test']
33
34 - name: "Configure cli using source file"
35 sonic_config:
36 src: src.txt
37
38 - name: "Configure cli with prompts on SONiC device"
39 sonic_config:
40 commands:
41 - command: 'do image remove all'
42 prompt: '\[y/N\]:$'
43 answer: 'N'