Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .azure-pipelines/pr_test_scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ t1-lag-vpp:
- bgp/test_bgp_session.py
- bgp/test_bgp_operation_in_ro.py
- bgp/test_bgp_queue.py
- copp/test_copp.py
- bgp/test_bgp_session_flap.py
- bgp/test_ipv6_nlri_over_ipv4.py
- bgp/test_bgp_allow_list.py
Expand Down
9 changes: 6 additions & 3 deletions ansible/roles/test/files/ptftests/py3/copp_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def check_constraints(self, send_count, recv_count, time_delta_ms, rx_pps):
)
assert self.PPS_LIMIT_MIN <= rx_pps <= self.PPS_LIMIT_MAX, "Copp policer constraint check failed, " \
"Actual PPS: {} Expected PPS range: {} - {}".format(rx_pps, self.PPS_LIMIT_MIN, self.PPS_LIMIT_MAX)
elif self.asic_type not in ['broadcom', 'marvell-teralynx']:
elif self.asic_type not in ['broadcom', 'marvell-teralynx', 'vpp']:
self.log("Checking constraints (NoPolicyApplied):")
self.log(
"rx_pps (%d) <= PPS_LIMIT_MIN (%d): %s" %
Expand Down Expand Up @@ -689,19 +689,20 @@ def runTest(self):
def construct_packet(self, port_number):
src_mac = self.my_mac[port_number]
dst_mac = self.peer_mac[port_number]
src_ip = self.myip
dst_ip = self.peerip

packet = testutils.simple_udp_packet(
eth_dst=dst_mac,
ip_dst=dst_ip,
eth_src=src_mac,
ip_src=src_ip,
ip_dst=dst_ip,
udp_dport=161
)

return packet


# SONIC config contains policer CIR=600 for SSH
class SSHTest(PolicyTest):
def __init__(self):
PolicyTest.__init__(self)
Expand Down Expand Up @@ -754,12 +755,14 @@ def one_port_test(self, port_number):
def construct_packet(self, port_number):
src_mac = self.my_mac[port_number]
dst_mac = self.peer_mac[port_number]
src_ip = self.myip
dst_ip = self.peerip

packet = testutils.simple_tcp_packet(
pktlen=self.packet_size,
eth_src=src_mac,
eth_dst=dst_mac,
ip_src=src_ip,
ip_dst=dst_ip
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,17 +116,6 @@ container_checker/test_container_checker.py::test_container_checker_telemetry:
conditions:
- "asic_type in ['vpp']"

#######################################
##### COPP #####
#######################################
copp:
skip:
reason: >
Unsupported
conditions_logical_operator: or
conditions:
- "asic_type in ['vpp']"

#######################################
##### Decap #####
#######################################
Expand Down
Loading