Skip to content

Commit f40b254

Browse files
BYGX-wcrgshemesh2
authored andcommitted
add condition to skip test cases where packets have SRH for broadcom platform (sonic-net#18315)
Summary: Broadcom hardware cannot process SRv6 packets with SRH properly at this time. We need to skip testing those packets on Broadcom hardware. Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
1 parent d080ff8 commit f40b254

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/srv6/test_srv6_dataplane.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ def _validate_srv6_function(self, duthost, ptfadapter, dscp_mode):
163163

164164
ptf_src_mac = ptfadapter.dataplane.get_mac(0, self.params['ptf_downlink_port']).decode('utf-8')
165165
for srv6_packet in self.params['srv6_packets']:
166+
if duthost.facts["asic_type"] == "broadcom" and \
167+
(srv6_packet['srh_seg_left'] or srv6_packet['srh_seg_list']):
168+
logger.info("Skip the test for Broadcom ASIC with SRH")
169+
continue
170+
166171
logger.info('-------------------------------------------------------------------------')
167172
logger.info(f'SRv6 tunnel decapsulation mode: {dscp_mode}')
168173
logger.info(f'Send {self.params["packet_num"]} SRv6 packets with action: {srv6_packet["action"]}')

0 commit comments

Comments
 (0)