Debian Codegraph @

ansible_collections/dellemc/enterprise_sonic/tests/regression/roles/sonic_config/defaults/main.yml

raw symbols SCIP
1 ---
2 ansible_connection: network_cli
3 idempotent_condition: >-
4 "{{ 'Passed' if (idempotent_task_output.failed == false and
5 idempotent_task_output.commands is not defined and
6 idempotent_task_output.changed == false) else 'Failed' }}"
7 action_condition: >-
8 "{{ 'Passed' if (action_task_output.failed == false and
9 action_task_output.commands is defined and
10 action_task_output.changed == true) else 'Failed' }}"
11
12 prompt_tc_condition: "{{ 'Passed' if (prompt_tc.commands is defined) else 'Failed' }}"
13
14 backup_condition: "{{ 'Passed' if (backup_tc.stat.exists == true) else 'Failed' }}"
15
16 replace_or_exact_condition: "{{ 'Passed' if (replace_tc.commands is defined and replace_tc.commands | length > 2) else 'Failed' }}"
17
18 empty: []
19
20 bgp_as_1: 51
21 bgp_as_2: 52
22
23 vrf_1: VrfReg1
24 vrf_2: VrfReg2
25
26 snmp_location: snmp_chennai
27 snmp_contact: snmp_devops
28
29 preparations_tests:
30 clean_cfg_lines:
31 - no interface PortChannel 11
32 - no interface PortChannel 1
33 - no interface PortChannel 2
34 - no snmp-server community abcd
35 - no snmp-server community efgh
36 - no snmp-server community ijkl
37 - no snmp-server community mnop
38 - no snmp-server community qrst
39 - no snmp-server community uvwx
40 - no snmp-server location
41 - no snmp-server contact
42 - interface Vlan 11
43 clean_interfaces:
44 - parent: interface Ethernet8
45 lines:
46 - no description
47
48 sonic_config_tests:
49 # Ethernet testcases started...
50 - name: test_case_01
51 description: Configure IP access-list using 'before' and 'after' option on SONiC device
52 input:
53 lines:
54 - mtu 4444
55 parents: ['interface PortChannel 11']
56 before: ['snmp-server community abcd']
57 after: ['snmp-server community efgh']
58
59 - name: test_case_02
60 description: Test SONiC config module with single CLI
61 input:
62 before: 'snmp-server community ijkl'
63 commands: 'snmp-server community mnop'
64
65 - name: test_case_03
66 description: Test SONiC config module with multiple CLI
67 input:
68 commands: ['snmp-server community qrst', 'snmp-server community uvwx']
69
70 - name: test_case_04
71 description: Configure interface description using parents option on SONiC device
72 input:
73 lines:
74 - description 'hi'
75 parents: ['interface Ethernet8']
76
77 - name: test_case_05
78 description: Configure CLI using source file
79 input:
80 src: snmp.j2