Debian Codegraph @

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

raw symbols SCIP
1 ---
2 ansible_connection: httpapi
3
4 sonic_ars_tests:
5 - name: test_case_01
6 description: Initial configuration of ARS
7 state: merged
8 input:
9 ars_objects:
10 - name: obj1
11 idle_time: 100
12 max_flows: 1024
13 mode: flowlet-quality
14 port_profiles:
15 - name: pp1
16 enable: true
17 load_future_weight: 9
18 load_past_weight: 20
19 load_scaling_factor: 0
20 profiles:
21 - name: p1
22 algorithm: EWMA
23 load_current_max_val: 10000
24 load_current_min_val: 100
25 load_future_max_val: 20000
26 load_future_min_val: 200
27 load_past_max_val: 500
28 load_past_min_val: 50
29 port_load_current: true
30 port_load_exponent: 7
31 port_load_future: true
32 port_load_future_weight: 9
33 port_load_past: true
34 port_load_past_weight: 11
35 random_seed: 800000
36 sampling_interval: 140
37 port_bindings:
38 - name: '{{ interface1 }}'
39 profile: pp1
40 switch_binding:
41 profile: p1
42
43 - name: test_case_02
44 description: Modify ARS configuration
45 state: merged
46 input:
47 ars_objects:
48 - name: obj1
49 idle_time: 110
50 max_flows: 2048
51 - name: obj2
52 idle_time: 85
53 max_flows: 512
54 mode: flowlet-quality
55 port_profiles:
56 - name: pp1
57 enable: false
58 load_future_weight: 11
59 load_past_weight: 22
60 load_scaling_factor: 40
61 - name: pp2
62 enable: true
63 load_future_weight: 15
64 load_past_weight: 80
65 load_scaling_factor: 0
66 profiles:
67 - name: p1
68 load_current_max_val: 12000
69 load_current_min_val: 130
70 load_future_max_val: 24000
71 load_future_min_val: 250
72 load_past_max_val: 560
73 load_past_min_val: 57
74 port_load_current: false
75 port_load_exponent: 8
76 port_load_future: false
77 port_load_future_weight: 10
78 port_load_past: false
79 port_load_past_weight: 12
80 random_seed: 899000
81 sampling_interval: 146
82 - name: p2
83 load_current_max_val: 3000
84 load_current_min_val: 1000
85 load_future_max_val: 57000
86 load_future_min_val: 75
87 load_past_max_val: 800
88 load_past_min_val: 400
89 port_load_current: true
90 port_load_exponent: 4
91 port_load_future: true
92 port_load_future_weight: 3
93 port_load_past: true
94 port_load_past_weight: 6
95 random_seed: 12345
96 sampling_interval: 175
97 port_bindings:
98 - name: '{{ interface1 }}'
99 profile: pp2
100 - name: '{{ interface2 }}'
101 profile: pp1
102 switch_binding:
103 profile: p2
104
105 - name: test_case_03
106 description: Replace ARS configuration
107 state: replaced
108 input:
109 ars_objects:
110 - name: obj3
111 idle_time: 700
112 max_flows: 8192
113 mode: flowlet-quality
114 - name: obj4
115 port_profiles:
116 - name: pp3
117 enable: false
118 load_future_weight: 5
119 load_past_weight: 30
120 load_scaling_factor: 0
121 - name: pp4
122 profiles:
123 - name: p3
124 algorithm: EWMA
125 load_current_max_val: 333
126 load_current_min_val: 111
127 load_future_max_val: 678
128 load_future_min_val: 123
129 load_past_max_val: 300
130 load_past_min_val: 120
131 port_load_current: true
132 port_load_exponent: 4
133 port_load_future: true
134 port_load_future_weight: 10
135 port_load_past: true
136 port_load_past_weight: 14
137 random_seed: 37158
138 sampling_interval: 55
139 - name: p4
140 port_bindings:
141 - name: '{{ interface3 }}'
142 profile: pp3
143 - name: '{{ interface4 }}'
144 profile: pp4
145 switch_binding:
146 profile: p3
147
148 - name: test_case_04
149 description: Delete ARS configuration by individual attributes and by key
150 state: deleted
151 input:
152 ars_objects:
153 - name: obj3
154 idle_time: 700
155 max_flows: 8192
156 mode: flowlet-quality
157 - name: obj4
158 port_profiles:
159 - name: pp3
160 enable: false
161 load_future_weight: 5
162 load_past_weight: 30
163 load_scaling_factor: 0
164 - name: pp4
165 profiles:
166 - name: p3
167 algorithm: EWMA
168 load_current_max_val: 333
169 load_current_min_val: 111
170 load_future_max_val: 678
171 load_future_min_val: 123
172 load_past_max_val: 300
173 load_past_min_val: 120
174 port_load_current: true
175 port_load_exponent: 4
176 port_load_future: true
177 port_load_future_weight: 10
178 port_load_past: true
179 port_load_past_weight: 14
180 random_seed: 37158
181 sampling_interval: 55
182 - name: p4
183 port_bindings:
184 - name: '{{ interface3 }}'
185 profile: pp3
186 - name: '{{ interface4 }}'
187
188 - name: test_case_05
189 description: Delete dependecies in order to delete switch binding profile
190 state: deleted
191 input:
192 ars_objects:
193 - name: obj3
194 switch_binding:
195 profile: p3
196
197 - name: test_case_06
198 description: Override ARS configuration
199 state: overridden
200 input:
201 ars_objects:
202 - name: obj1
203 idle_time: 100
204 max_flows: 1024
205 mode: flowlet-quality
206 port_profiles:
207 - name: pp1
208 enable: true
209 load_future_weight: 9
210 load_past_weight: 20
211 load_scaling_factor: 0
212 profiles:
213 - name: p1
214 algorithm: EWMA
215 load_current_max_val: 10000
216 load_current_min_val: 100
217 load_future_max_val: 20000
218 load_future_min_val: 200
219 load_past_max_val: 500
220 load_past_min_val: 50
221 port_load_current: true
222 port_load_exponent: 7
223 port_load_future: true
224 port_load_future_weight: 9
225 port_load_past: true
226 port_load_past_weight: 11
227 random_seed: 800000
228 sampling_interval: 140
229 port_bindings:
230 - name: '{{ interface1 }}'
231 profile: pp1
232 switch_binding:
233 profile: p1
234
235 - name: test_case_7
236 description: Delete all ARS configuration
237 state: deleted
238 input: {}