Skip to content

Commit 5e7f7a8

Browse files
author
Stepan Blyschak
committed
Squashed commit of the following:
commit d79d500 Author: Xin Wang <xiwang5@microsoft.com> Date: Sat May 23 11:31:48 2020 +0800 Fix acl testing for new t1 routes (sonic-net#1688) The t1 and t1-lag routes have been changed after replacing static routes on VM with exabgp announced routes. This caused the acl testing failed. This PR is to fix this issue reported in sonic-net#1603. Changes: 1. Update the acl rules template to use new IP addresses 2. Update the acl script to use new IP addresses Signed-off-by: Xin Wang <xiwang5@microsoft.com> commit c84e699 Author: yvolynets-mlnx <50697593+yvolynets-mlnx@users.noreply.github.com> Date: Sat May 23 04:41:19 2020 +0300 [pytest/ntp] Minor fix for NTP test case. (sonic-net#1698) Added verification of 'wait_until' result, to easier understand test case failure reason. Signed-off-by: Yuriy Volynets <yuriyv@mellanox.com> commit 441ddfa Author: Vitaliy Senchyshyn <43479243+vsenchyshyn@users.noreply.github.com> Date: Sat May 23 00:40:02 2020 +0300 [wr_arp][pytest] Fixed wr_arp test (sonic-net#1695) * [wr_arp] Fixed wr_arp test Signed-off-by: Vitaliy Senchyshyn <vsenchyshyn@barefootnetworks.com> * Make show ip protocol command working for different sonic images * Fixed review comments * Made records variable a class memeber * Fixed DIP taking from ip route show for sonic master commit abdb746 Author: Xin Wang <xiwang5@microsoft.com> Date: Fri May 22 18:45:56 2020 +0800 [pytest/fib]: Fix the issue of using wrong port announcing IPv6 routes (sonic-net#1697) I used wrong port for announcing IPv6 routes in PR sonic-net#1692. This PR is to fix that issue. Signed-off-by: Xin Wang <xiwang5@microsoft.com> commit 9e52bba Author: lguohan <lguohan@gmail.com> Date: Fri May 22 03:45:14 2020 -0700 [pytest/snmp_cpu]: query nproc when ansible facts does not have vcpu info (sonic-net#1693) sometimes, ansible facts does not gather vcpu information. in this case, use nproc to query the cpu number directly. Signed-off-by: Guohan Lu <gulv@microsoft.com> commit b175f8f Author: yvolynets-mlnx <50697593+yvolynets-mlnx@users.noreply.github.com> Date: Fri May 22 02:49:30 2020 +0300 [pytest/test_drop_counters.py] Fixed IGMP test case (sonic-net#1624) Signed-off-by: Yuriy Volynets <yuriyv@mellanox.com> commit 208d02a Author: Xin Wang <xiwang5@microsoft.com> Date: Fri May 22 00:23:19 2020 +0800 Announce vips routes for bgp_multipath_relax testing (sonic-net#1692) Previously the vips routes were statically configured in the VMs for bgp_multipath_relax testing. After the change of announcing routes from exabgp in PTF to VMs, the vips routes were missing. The bgp_multipath_relax testing depends on the vips routes failed. This change is to announce the vips routes to VMs that have the vips routes configuration. The functions in the fib fixture definition file were refactored a little bit. Signed-off-by: Xin Wang <xiwang5@microsoft.com> commit 6d7498f Author: yvolynets-mlnx <50697593+yvolynets-mlnx@users.noreply.github.com> Date: Thu May 21 11:38:08 2020 +0300 Fixed fib tests: test_hash_ipv4/test_hash_ipv6 (sonic-net#1683) Fixes sonic-net#1679 Signed-off-by: Yuriy Volynets <yuriyv@mellanox.com> commit f17471c Author: Neetha John <nejo@microsoft.com> Date: Wed May 20 15:53:44 2020 -0700 Qos SAI test restructure (sonic-net#1682) * Qos SAI test restructure Signed-off-by: Neetha John <nejo@microsoft.com> commit 87f3a23 Author: Joe LeVeque <jleveque@users.noreply.github.com> Date: Wed May 20 10:42:22 2020 -0700 [pytest][cacl] Remove unused 'testbed_devices' from parameters (sonic-net#1689) commit bd6e135 Author: Ying Xie <yxieca@users.noreply.github.com> Date: Wed May 20 08:11:55 2020 -0700 [reload config] redirect reload config output to /dev/null (sonic-net#1687) config reload command will restart interface-config service, which will reset eth0. Which will reset the connection issues config reload if the output is coming to stdio/stderr. It in turn could cause the pytest to stuck for long time. Signed-off-by: Ying Xie <ying.xie@microsoft.com> Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
1 parent 22cdcca commit 5e7f7a8

18 files changed

Lines changed: 716 additions & 1209 deletions

File tree

ansible/group_vars/sonic/vars

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ sonic_version: "v2"
44

55
broadcom_hwskus: [ "Force10-S6000", "Accton-AS7712-32X", "Celestica-DX010-C32", "Seastone-DX010", "Celestica-E1031-T48S4"]
66

7+
broadcom_td2_hwskus: ['Force10-S6000', 'Force10-S6000-Q24S32', 'Arista-7050-QX32', 'Arista-7050-QX-32S']
8+
broadcom_th_hwskus: ['Force10-S6100', 'Arista-7060CX-32S-C32', 'Arista-7060CX-32S-C32-T1', 'Arista-7060CX-32S-D48C8', 'Celestica-DX010-C32', "Seastone-DX010" ]
9+
broadcom_th2_hwskus: ['Arista-7260CX3-D108C8', 'Arista-7260CX3-C64', 'Arista-7260CX3-Q64']
10+
711
mellanox_spc1_hwskus: [ 'ACS-MSN2700', 'ACS-MSN2740', 'ACS-MSN2100', 'ACS-MSN2410', 'ACS-MSN2010', 'Mellanox-SN2700', 'Mellanox-SN2700-D48C8' ]
812
mellanox_spc2_hwskus: [ 'ACS-MSN3700', 'ACS-MSN3700C', 'ACS-MSN3800', 'Mellanox-SN3800-D112C8' , 'ACS-MSN3420']
913
mellanox_spc3_hwskus: [ 'ACS-MSN4700', 'ACS-MSN4600C' ]

ansible/roles/test/files/ptftests/wr_arp.py

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ArpTest(BaseTest):
2828
def __init__(self):
2929
BaseTest.__init__(self)
3030

31-
log_file_name = '/root/wr_arp_test.log'
31+
log_file_name = '/tmp/wr_arp_test.log'
3232
self.log_fp = open(log_file_name, 'a')
3333
self.log_fp.write("\nNew test:\n")
3434

@@ -46,6 +46,7 @@ def log(self, message):
4646
current_time = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
4747
print "%s : %s" % (current_time, message)
4848
self.log_fp.write("%s : %s\n" % (current_time, message))
49+
self.log_fp.flush()
4950

5051
return
5152

@@ -102,6 +103,16 @@ def dut_thr(self, q_from, q_to):
102103
self.log("Quiting from dut_thr")
103104
return
104105

106+
def test_port_thr(self):
107+
self.log("test_port_thr started")
108+
while time.time() < self.stop_at:
109+
for test in self.tests:
110+
for port in test['acc_ports']:
111+
nr_rcvd = self.testPort(port)
112+
self.records[port][time.time()] = nr_rcvd
113+
self.log("Quiting from test_port_thr")
114+
return
115+
105116
def readMacs(self):
106117
addrs = {}
107118
for intf in os.listdir('/sys/class/net'):
@@ -241,22 +252,25 @@ def runTest(self):
241252
self.req_dut('quit')
242253
self.assertTrue(False, "DUT returned error for first uptime request")
243254

244-
records = defaultdict(dict)
245-
stop_at = time.time() + self.how_long
246-
rebooted = False
247-
while time.time() < stop_at:
248-
for test in self.tests:
249-
for port in test['acc_ports']:
250-
nr_rcvd = self.testPort(port)
251-
records[port][time.time()] = nr_rcvd
252-
if not rebooted:
253-
result = self.req_dut('WR')
254-
if result.startswith('ok'):
255-
rebooted = True
256-
else:
257-
self.log("Error in WR")
258-
self.req_dut('quit')
259-
self.assertTrue(False, "Error in WR")
255+
self.records = defaultdict(dict)
256+
self.stop_at = time.time() + self.how_long
257+
258+
test_port_thr = threading.Thread(target=self.test_port_thr)
259+
test_port_thr.setDaemon(True)
260+
test_port_thr.start()
261+
262+
self.log("Issuing WR command")
263+
result = self.req_dut('WR')
264+
if result.startswith('ok'):
265+
self.log("WR OK!")
266+
else:
267+
self.log("Error in WR")
268+
self.req_dut('quit')
269+
self.assertTrue(False, "Error in WR")
270+
271+
self.assertTrue(time.time() < self.stop_at, "warm-reboot took to long")
272+
273+
test_port_thr.join()
260274

261275
uptime_after = self.req_dut('uptime')
262276
if uptime_after.startswith('error'):
@@ -272,7 +286,7 @@ def runTest(self):
272286

273287
# check that every port didn't have pauses more than 25 seconds
274288
pauses = defaultdict(list)
275-
for port, data in records.items():
289+
for port, data in self.records.items():
276290
was_active = True
277291
last_inactive = None
278292
for t in sorted(data.keys()):

ansible/roles/test/tasks/qos_get_ports.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@
143143
target_pg: '3-4'
144144
target_buffer_profile_type: 'ingress lossless'
145145

146+
- name: Set lossless buffer profile
147+
set_fact:
148+
lossless_buffer_profile: "{{ buffer_profile }}"
149+
146150
- name: Set lossless MAX buffer size
147151
set_fact:
148152
lossless_buffer_max_size: "{{buffer_headroom.stdout|int}}"

ansible/roles/test/tasks/qos_sai.yml

Lines changed: 83 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,36 @@
2222
minigraph_facts: host={{inventory_hostname}}
2323
become: no
2424

25+
- name: Get ports info.
26+
include_tasks: roles/test/tasks/qos_get_ports.yml
27+
28+
- name: Check if lossless buffer profile is derived
29+
fail: msg="Lossless Buffer profile could not be retreived"
30+
when: lossless_buffer_profile is not defined or minigraph_hwsku is not defined
31+
32+
- set_fact:
33+
defined_asic_list: ['td2', 'th', 'th2', 'spc1', 'spc2', 'spc3']
34+
speed_cablelen: "{{ lossless_buffer_profile }}"
35+
36+
- set_fact: speed_cablelen="{{speed_cablelen | regex_replace('BUFFER_PROFILE\|pg_lossless_(.*)_profile', '\\1')}}"
37+
38+
- name: Get asic type
39+
set_fact: asic_type="{{ item }}"
40+
when:
41+
- hostvars[inventory_hostname][sonic_asic_type + '_' + item + '_hwskus'] is defined
42+
- minigraph_hwsku in hostvars[inventory_hostname][sonic_asic_type + '_' + item + '_hwskus']
43+
with_items: "{{ defined_asic_list }}"
44+
45+
- debug: msg="asic type is {{ asic_type }}, portspeed_cablelen is {{ speed_cablelen }}"
46+
2547
- name: check if the device has configured qos parameters
2648
fail: msg="device doesn't have configured qos parameters"
27-
when: minigraph_hwsku is not defined or qos_params[minigraph_hwsku] is not defined
49+
when: qos_params[asic_type] is not defined or qos_params[asic_type][speed_cablelen] is not defined
2850

2951
- name: set qos parameters for the device
30-
set_fact: qp={{qos_params[minigraph_hwsku]}}
52+
set_fact:
53+
qp: "{{qos_params[asic_type]}}"
54+
qp_sc: "{{qos_params[asic_type][speed_cablelen]}}"
3155

3256
- name: Ensure LLDP Daemon stopped
3357
become: yes
@@ -52,14 +76,15 @@
5276

5377
- meta: flush_handlers
5478

55-
- block:
56-
- name: Deploy script to DUT/syncd
57-
copy: src=roles/test/files/mlnx/packets_aging.py dest=/root/packets_aging.py
79+
- name: Deploy script to DUT/syncd
80+
copy: src=roles/test/files/mlnx/packets_aging.py dest=/root/packets_aging.py
81+
delegate_to: "{{ ansible_host }}_syncd"
82+
when: minigraph_hwsku is defined and minigraph_hwsku in mellanox_hwskus
5883

59-
- name: Disable Mellanox packet aging
60-
shell: python /root/packets_aging.py disable
61-
register: result
62-
failed_when: result.stderr != ''
84+
- name: Disable Mellanox packet aging
85+
shell: python /root/packets_aging.py disable
86+
register: result
87+
failed_when: result.stderr != ''
6388
delegate_to: "{{ ansible_host }}_syncd"
6489
when: minigraph_hwsku is defined and minigraph_hwsku in mellanox_hwskus
6590

@@ -83,9 +108,6 @@
83108
- port_map_file='/root/{{ptf_portmap | basename}}'
84109
- sonic_asic_type='{{sonic_asic_type}}'
85110

86-
- name: Get ports info.
87-
include_tasks: roles/test/tasks/qos_get_ports.yml
88-
89111
# Unpause all paused port
90112
- include_tasks: qos_sai_ptf.yml
91113
vars:
@@ -135,39 +157,39 @@
135157
# XOFF limit
136158
- include_tasks: qos_sai_ptf.yml
137159
vars:
138-
test_name: xoff limit ptf test dscp = {{qp.xoff_1.dscp}}, ecn = {{qp.xoff_1.ecn}}
160+
test_name: xoff limit ptf test dscp = {{qp_sc.xoff_1.dscp}}, ecn = {{qp_sc.xoff_1.ecn}}
139161
test_path: sai_qos_tests.PFCtest
140162
test_params:
141-
- dscp='{{qp.xoff_1.dscp}}'
142-
- ecn='{{qp.xoff_1.ecn}}'
143-
- pg='{{qp.xoff_1.pg}}'
163+
- dscp='{{qp_sc.xoff_1.dscp}}'
164+
- ecn='{{qp_sc.xoff_1.ecn}}'
165+
- pg='{{qp_sc.xoff_1.pg}}'
144166
- buffer_max_size='{{lossless_buffer_max_size|int}}'
145167
- queue_max_size='{{lossless_queue_max_size|int}}'
146168
- dst_port_id='{{dst_port_id}}'
147169
- dst_port_ip='{{dst_port_ip}}'
148170
- src_port_id='{{src_port_id}}'
149171
- src_port_ip='{{src_port_ip}}'
150-
- pkts_num_leak_out='{{qp.xoff_1.pkts_num_leak_out}}'
151-
- pkts_num_trig_pfc='{{qp.xoff_1.pkts_num_trig_pfc}}'
152-
- pkts_num_trig_ingr_drp='{{qp.xoff_1.pkts_num_trig_ingr_drp}}'
172+
- pkts_num_leak_out='{{qp_sc.pkts_num_leak_out}}'
173+
- pkts_num_trig_pfc='{{qp_sc.xoff_1.pkts_num_trig_pfc}}'
174+
- pkts_num_trig_ingr_drp='{{qp_sc.xoff_1.pkts_num_trig_ingr_drp}}'
153175

154176
- include_tasks: qos_sai_ptf.yml
155177
vars:
156-
test_name: xoff limit ptf test dscp = {{qp.xoff_2.dscp}}, ecn = {{qp.xoff_2.ecn}}
178+
test_name: xoff limit ptf test dscp = {{qp_sc.xoff_2.dscp}}, ecn = {{qp_sc.xoff_2.ecn}}
157179
test_path: sai_qos_tests.PFCtest
158180
test_params:
159-
- dscp='{{qp.xoff_2.dscp}}'
160-
- ecn='{{qp.xoff_2.ecn}}'
161-
- pg='{{qp.xoff_2.pg}}'
181+
- dscp='{{qp_sc.xoff_2.dscp}}'
182+
- ecn='{{qp_sc.xoff_2.ecn}}'
183+
- pg='{{qp_sc.xoff_2.pg}}'
162184
- buffer_max_size='{{lossless_buffer_max_size|int}}'
163185
- queue_max_size='{{lossless_queue_max_size|int}}'
164186
- dst_port_id='{{dst_port_id}}'
165187
- dst_port_ip='{{dst_port_ip}}'
166188
- src_port_id='{{src_port_id}}'
167189
- src_port_ip='{{src_port_ip}}'
168-
- pkts_num_leak_out='{{qp.xoff_2.pkts_num_leak_out}}'
169-
- pkts_num_trig_pfc='{{qp.xoff_2.pkts_num_trig_pfc}}'
170-
- pkts_num_trig_ingr_drp='{{qp.xoff_2.pkts_num_trig_ingr_drp}}'
190+
- pkts_num_leak_out='{{qp_sc.pkts_num_leak_out}}'
191+
- pkts_num_trig_pfc='{{qp_sc.xoff_2.pkts_num_trig_pfc}}'
192+
- pkts_num_trig_ingr_drp='{{qp_sc.xoff_2.pkts_num_trig_ingr_drp}}'
171193

172194
# XON limit
173195
- include_tasks: qos_sai_ptf.yml
@@ -187,7 +209,7 @@
187209
- dst_port_3_ip='{{dst_port_3_ip}}'
188210
- src_port_id='{{src_port_id}}'
189211
- src_port_ip='{{src_port_ip}}'
190-
- pkts_num_leak_out='{{qp.xon_1.pkts_num_leak_out}}'
212+
- pkts_num_leak_out='{{qp_sc.pkts_num_leak_out}}'
191213
- pkts_num_trig_pfc='{{qp.xon_1.pkts_num_trig_pfc}}'
192214
- pkts_num_dismiss_pfc='{{qp.xon_1.pkts_num_dismiss_pfc}}'
193215

@@ -208,29 +230,29 @@
208230
- dst_port_3_ip='{{dst_port_3_ip}}'
209231
- src_port_id='{{src_port_id}}'
210232
- src_port_ip='{{src_port_ip}}'
211-
- pkts_num_leak_out='{{qp.xon_2.pkts_num_leak_out}}'
233+
- pkts_num_leak_out='{{qp_sc.pkts_num_leak_out}}'
212234
- pkts_num_trig_pfc='{{qp.xon_2.pkts_num_trig_pfc}}'
213235
- pkts_num_dismiss_pfc='{{qp.xon_2.pkts_num_dismiss_pfc}}'
214236

215237
# Headroom pool size
216238
- include_tasks: qos_sai_ptf.yml
217239
vars:
218-
test_name: headroom pool size ptf test ecn = {{qp.hdrm_pool_size.ecn}}
240+
test_name: headroom pool size ptf test ecn = {{qp_sc.hdrm_pool_size.ecn}}
219241
test_path: sai_qos_tests.HdrmPoolSizeTest
220242
test_params:
221243
- testbed_type='{{testbed_type}}'
222-
- dscps={{qp.hdrm_pool_size.dscps}}
223-
- ecn={{qp.hdrm_pool_size.ecn}}
224-
- pgs={{qp.hdrm_pool_size.pgs}}
225-
- src_port_ids={{qp.hdrm_pool_size.src_port_ids}}
226-
- src_port_ips=[{% for pid in qp.hdrm_pool_size.src_port_ids %}{% if not loop.last %}'{{testing_ports_ip[pid|string]}}', {% else %}'{{testing_ports_ip[pid|string]}}'{% endif %}{% endfor %}]
227-
- dst_port_id={{qp.hdrm_pool_size.dst_port_id}}
228-
- dst_port_ip='{{testing_ports_ip[qp.hdrm_pool_size.dst_port_id|string]}}'
229-
- pgs_num={{qp.hdrm_pool_size.pgs_num }}
230-
- pkts_num_leak_out={{qp.hdrm_pool_size.pkts_num_leak_out}}
231-
- pkts_num_trig_pfc={{qp.hdrm_pool_size.pkts_num_trig_pfc}}
232-
- pkts_num_hdrm_full={{qp.hdrm_pool_size.pkts_num_hdrm_full}}
233-
- pkts_num_hdrm_partial={{qp.hdrm_pool_size.pkts_num_hdrm_partial}}
244+
- dscps={{qp_sc.hdrm_pool_size.dscps}}
245+
- ecn={{qp_sc.hdrm_pool_size.ecn}}
246+
- pgs={{qp_sc.hdrm_pool_size.pgs}}
247+
- src_port_ids={{qp_sc.hdrm_pool_size.src_port_ids}}
248+
- src_port_ips=[{% for pid in qp_sc.hdrm_pool_size.src_port_ids %}{% if not loop.last %}'{{testing_ports_ip[pid|string]}}', {% else %}'{{testing_ports_ip[pid|string]}}'{% endif %}{% endfor %}]
249+
- dst_port_id={{qp_sc.hdrm_pool_size.dst_port_id}}
250+
- dst_port_ip='{{testing_ports_ip[qp_sc.hdrm_pool_size.dst_port_id|string]}}'
251+
- pgs_num={{qp_sc.hdrm_pool_size.pgs_num }}
252+
- pkts_num_leak_out={{qp_sc.pkts_num_leak_out}}
253+
- pkts_num_trig_pfc={{qp_sc.hdrm_pool_size.pkts_num_trig_pfc}}
254+
- pkts_num_hdrm_full={{qp_sc.hdrm_pool_size.pkts_num_hdrm_full}}
255+
- pkts_num_hdrm_partial={{qp_sc.hdrm_pool_size.pkts_num_hdrm_partial}}
234256
when: minigraph_hwsku is defined and
235257
(minigraph_hwsku == 'Arista-7060CX-32S-C32' or minigraph_hwsku == 'Celestica-DX010-C32' or minigraph_hwsku == 'Arista-7260CX3-D108C8'
236258
or minigraph_hwsku == 'Force10-S6100')
@@ -252,7 +274,7 @@
252274
- dst_port_2_ip='{{dst_port_2_ip}}'
253275
- src_port_id='{{src_port_id}}'
254276
- src_port_ip='{{src_port_ip}}'
255-
- pkts_num_leak_out='{{qp.lossy_queue_1.pkts_num_leak_out}}'
277+
- pkts_num_leak_out='{{qp_sc.pkts_num_leak_out}}'
256278
- pkts_num_trig_egr_drp='{{qp.lossy_queue_1.pkts_num_trig_egr_drp}}'
257279

258280
# DSCP to queue mapping
@@ -285,7 +307,7 @@
285307
- q5_num_of_pkts='{{qp.wrr.q5_num_of_pkts}}'
286308
- q6_num_of_pkts='{{qp.wrr.q6_num_of_pkts}}'
287309
- limit='{{qp.wrr.limit}}'
288-
- pkts_num_leak_out='{{qp.wrr.pkts_num_leak_out}}'
310+
- pkts_num_leak_out='{{qp_sc.pkts_num_leak_out}}'
289311
- debug:
290312
var: out.stdout_lines
291313

@@ -307,7 +329,7 @@
307329
- dst_port_ip='{{dst_port_ip}}'
308330
- src_port_id='{{src_port_id}}'
309331
- src_port_ip='{{src_port_ip}}'
310-
- pkts_num_leak_out='{{qp.wm_pg_shared_lossless.pkts_num_leak_out}}'
332+
- pkts_num_leak_out='{{qp_sc.pkts_num_leak_out}}'
311333
- pkts_num_fill_min='{{qp.wm_pg_shared_lossless.pkts_num_fill_min}}'
312334
- pkts_num_fill_shared='{{qp.wm_pg_shared_lossless.pkts_num_trig_pfc}}'
313335
- cell_size='{{qp.wm_pg_shared_lossless.cell_size}}'
@@ -332,7 +354,7 @@
332354
- dst_port_ip='{{dst_port_ip}}'
333355
- src_port_id='{{src_port_id}}'
334356
- src_port_ip='{{src_port_ip}}'
335-
- pkts_num_leak_out='{{qp.wm_pg_shared_lossy.pkts_num_leak_out}}'
357+
- pkts_num_leak_out='{{qp_sc.pkts_num_leak_out}}'
336358
- pkts_num_fill_min='{{qp.wm_pg_shared_lossy.pkts_num_fill_min}}'
337359
- pkts_num_fill_shared='{{qp.wm_pg_shared_lossy.pkts_num_trig_egr_drp|int - 1}}'
338360
- cell_size='{{qp.wm_pg_shared_lossy.cell_size}}'
@@ -350,17 +372,17 @@
350372
test_name: PG headroom watermark test
351373
test_path: sai_qos_tests.PGHeadroomWatermarkTest
352374
test_params:
353-
- dscp='{{qp.wm_pg_headroom.dscp}}'
354-
- ecn='{{qp.wm_pg_headroom.ecn}}'
355-
- pg='{{qp.wm_pg_headroom.pg}}'
375+
- dscp='{{qp_sc.wm_pg_headroom.dscp}}'
376+
- ecn='{{qp_sc.wm_pg_headroom.ecn}}'
377+
- pg='{{qp_sc.wm_pg_headroom.pg}}'
356378
- dst_port_id='{{dst_port_id}}'
357379
- dst_port_ip='{{dst_port_ip}}'
358380
- src_port_id='{{src_port_id}}'
359381
- src_port_ip='{{src_port_ip}}'
360-
- pkts_num_leak_out='{{qp.wm_pg_headroom.pkts_num_leak_out}}'
361-
- pkts_num_trig_pfc='{{qp.wm_pg_headroom.pkts_num_trig_pfc}}'
362-
- pkts_num_trig_ingr_drp='{{qp.wm_pg_headroom.pkts_num_trig_ingr_drp}}'
363-
- cell_size='{{qp.wm_pg_headroom.cell_size}}'
382+
- pkts_num_leak_out='{{qp_sc.pkts_num_leak_out}}'
383+
- pkts_num_trig_pfc='{{qp_sc.wm_pg_headroom.pkts_num_trig_pfc}}'
384+
- pkts_num_trig_ingr_drp='{{qp_sc.wm_pg_headroom.pkts_num_trig_ingr_drp}}'
385+
- cell_size='{{qp_sc.wm_pg_headroom.cell_size}}'
364386
- debug:
365387
var: out.stdout_lines
366388

@@ -375,17 +397,17 @@
375397
test_name: Queue shared watermark test, lossless traffic
376398
test_path: sai_qos_tests.QSharedWatermarkTest
377399
test_params:
378-
- dscp='{{qp.wm_q_shared_lossless.dscp}}'
379-
- ecn='{{qp.wm_q_shared_lossless.ecn}}'
380-
- queue='{{qp.wm_q_shared_lossless.queue}}'
400+
- dscp='{{qp_sc.wm_q_shared_lossless.dscp}}'
401+
- ecn='{{qp_sc.wm_q_shared_lossless.ecn}}'
402+
- queue='{{qp_sc.wm_q_shared_lossless.queue}}'
381403
- dst_port_id='{{dst_port_id}}'
382404
- dst_port_ip='{{dst_port_ip}}'
383405
- src_port_id='{{src_port_id}}'
384406
- src_port_ip='{{src_port_ip}}'
385-
- pkts_num_leak_out='{{qp.wm_q_shared_lossless.pkts_num_leak_out}}'
386-
- pkts_num_fill_min='{{qp.wm_q_shared_lossless.pkts_num_fill_min}}'
387-
- pkts_num_trig_drp='{{qp.wm_q_shared_lossless.pkts_num_trig_ingr_drp}}'
388-
- cell_size='{{qp.wm_q_shared_lossless.cell_size}}'
407+
- pkts_num_leak_out='{{qp_sc.pkts_num_leak_out}}'
408+
- pkts_num_fill_min='{{qp_sc.wm_q_shared_lossless.pkts_num_fill_min}}'
409+
- pkts_num_trig_drp='{{qp_sc.wm_q_shared_lossless.pkts_num_trig_ingr_drp}}'
410+
- cell_size='{{qp_sc.wm_q_shared_lossless.cell_size}}'
389411
- debug:
390412
var: out.stdout_lines
391413

@@ -407,7 +429,7 @@
407429
- dst_port_ip='{{dst_port_ip}}'
408430
- src_port_id='{{src_port_id}}'
409431
- src_port_ip='{{src_port_ip}}'
410-
- pkts_num_leak_out='{{qp.wm_q_shared_lossy.pkts_num_leak_out}}'
432+
- pkts_num_leak_out='{{qp_sc.pkts_num_leak_out}}'
411433
- pkts_num_fill_min='{{qp.wm_q_shared_lossy.pkts_num_fill_min}}'
412434
- pkts_num_trig_drp='{{qp.wm_q_shared_lossy.pkts_num_trig_egr_drp}}'
413435
- cell_size='{{qp.wm_q_shared_lossy.cell_size}}'
@@ -459,7 +481,7 @@
459481
- q5_num_of_pkts='{{qp.wrr_chg.q5_num_of_pkts}}'
460482
- q6_num_of_pkts='{{qp.wrr_chg.q6_num_of_pkts}}'
461483
- limit='{{qp.wrr_chg.limit}}'
462-
- pkts_num_leak_out='{{qp.wrr_chg.pkts_num_leak_out}}'
484+
- pkts_num_leak_out='{{qp_sc.pkts_num_leak_out}}'
463485
- debug:
464486
var: out.stdout_lines
465487

0 commit comments

Comments
 (0)