| 1 |
--- |
| 2 |
ansible_connection: httpapi |
| 3 |
|
| 4 |
sonic_lst_tests: |
| 5 |
- name: test_case_01 |
| 6 |
description: Initial configuration of LST |
| 7 |
state: merged |
| 8 |
input: |
| 9 |
lst_groups: |
| 10 |
- name: lst |
| 11 |
all_evpn_es_downstream: true |
| 12 |
group_description: abc |
| 13 |
group_type: l3 |
| 14 |
threshold_down: 20 |
| 15 |
threshold_type: percentage |
| 16 |
threshold_up: 40 |
| 17 |
timeout: 120 |
| 18 |
interfaces: |
| 19 |
- name: '{{ interface1 }}' |
| 20 |
downstream_group: lst |
| 21 |
- name: '{{ interface2 }}' |
| 22 |
upstream_groups: |
| 23 |
- group_name: lst |
| 24 |
|
| 25 |
- name: test_case_02 |
| 26 |
description: Modify LST configuration |
| 27 |
state: merged |
| 28 |
input: |
| 29 |
lst_groups: |
| 30 |
- name: lst |
| 31 |
all_evpn_es_downstream: false |
| 32 |
group_description: xyz |
| 33 |
threshold_down: 30 |
| 34 |
threshold_up: 50 |
| 35 |
timeout: 130 |
| 36 |
|
| 37 |
- name: test_case_03 |
| 38 |
description: Replace LST configuration |
| 39 |
state: replaced |
| 40 |
input: |
| 41 |
lst_groups: |
| 42 |
- name: lst |
| 43 |
all_mclags_downstream: true |
| 44 |
timeout: 75 |
| 45 |
interfaces: |
| 46 |
- name: '{{ interface1 }}' |
| 47 |
upstream_groups: |
| 48 |
- group_name: lst |
| 49 |
- name: '{{ interface2 }}' |
| 50 |
downstream_group: lst |
| 51 |
|
| 52 |
- name: test_case_04 |
| 53 |
description: Override LST configuration |
| 54 |
state: overridden |
| 55 |
input: |
| 56 |
lst_groups: |
| 57 |
- name: lst |
| 58 |
all_evpn_es_downstream: true |
| 59 |
group_description: abc |
| 60 |
group_type: l3 |
| 61 |
threshold_down: 20 |
| 62 |
threshold_type: percentage |
| 63 |
threshold_up: 40 |
| 64 |
timeout: 120 |
| 65 |
interfaces: |
| 66 |
- name: '{{ interface1 }}' |
| 67 |
downstream_group: lst |
| 68 |
- name: '{{ interface2 }}' |
| 69 |
upstream_groups: |
| 70 |
- group_name: lst |
| 71 |
- name: '{{ interface3 }}' |
| 72 |
downstream_group: lst |
| 73 |
|
| 74 |
- name: test_case_05 |
| 75 |
description: Delete specified LST attributes |
| 76 |
state: deleted |
| 77 |
input: |
| 78 |
lst_groups: |
| 79 |
- name: lst |
| 80 |
all_evpn_es_downstream: true |
| 81 |
group_description: abc |
| 82 |
group_type: l3 |
| 83 |
threshold_down: 20 |
| 84 |
threshold_type: percentage |
| 85 |
threshold_up: 40 |
| 86 |
timeout: 120 |
| 87 |
interfaces: |
| 88 |
- name: '{{ interface1 }}' |
| 89 |
downstream_group: lst |
| 90 |
- name: '{{ interface2 }}' |
| 91 |
upstream_groups: |
| 92 |
- group_name: lst |
| 93 |
- name: '{{ interface3 }}' |
| 94 |
|
| 95 |
- name: test_case_06 |
| 96 |
description: Merge all_mclags_downstream for deletion |
| 97 |
state: merged |
| 98 |
input: |
| 99 |
lst_groups: |
| 100 |
- name: lst |
| 101 |
all_mclags_downstream: true |
| 102 |
|
| 103 |
- name: test_case_07 |
| 104 |
description: Delete all_mclags_downstream |
| 105 |
state: deleted |
| 106 |
input: |
| 107 |
lst_groups: |
| 108 |
- name: lst |
| 109 |
all_mclags_downstream: true |
| 110 |
|
| 111 |
- name: test_case_08 |
| 112 |
description: Delete specified LST group |
| 113 |
state: deleted |
| 114 |
input: |
| 115 |
lst_groups: |
| 116 |
- name: lst |
| 117 |
|
| 118 |
- name: test_case_09 |
| 119 |
description: Merge LST configuration for deletion |
| 120 |
state: merged |
| 121 |
input: |
| 122 |
lst_groups: |
| 123 |
- name: lst |
| 124 |
all_evpn_es_downstream: true |
| 125 |
group_description: abc |
| 126 |
group_type: l3 |
| 127 |
threshold_down: 20 |
| 128 |
threshold_type: percentage |
| 129 |
threshold_up: 40 |
| 130 |
timeout: 120 |
| 131 |
interfaces: |
| 132 |
- name: '{{ interface1 }}' |
| 133 |
downstream_group: lst |
| 134 |
- name: '{{ interface2 }}' |
| 135 |
upstream_groups: |
| 136 |
- group_name: lst |
| 137 |
|
| 138 |
- name: test_case_10 |
| 139 |
description: Delete all LST configuration |
| 140 |
state: deleted |
| 141 |
input: {} |