Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - name: "Configuring interface-naming on 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 description for interface in native name"
10 sonic_config:
11 commands:
12 - description Ethernet0
13 parents:
14 - interface Ethernet0
15
16 # Same prompt and answer for cli "no interface-naming standard"
17 - name: "Configure cli with prompts on SONiC device"
18 sonic_config:
19 commands:
20 - command: "interface-naming standard"
21 prompt: "Broadcast message: Interface naming mode has changed. Users running 'sonic-cli' are required to restart your session."
22 answer: "\n"
23
24 - name: "Reset ssh connection"
25 ansible.builtin.meta: reset_connection
26
27 - name: "Configure description for interface in standard naming mode"
28 sonic_config:
29 commands:
30 - description Eth1/1
31 parents:
32 - interface Eth1/1