Skip to content

Commit

Permalink
sonic-mgmt / IXIA : [cisco] T2 test to verify ECN Counter operation p…
Browse files Browse the repository at this point in the history
…re and post port state toggle (sonic-net#15586)

[cisco] sonic-mgmt / IXIA : T2 test to verify ECN Counter operation pre and post port state toggle
  • Loading branch information
sreejithsreekumaran authored and mssonicbld committed Nov 27, 2024
1 parent 157880c commit b1efd86
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions tests/snappi_tests/multidut/ecn/files/multidut_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
snappi_api # noqa: F401
from tests.common.snappi_tests.snappi_helpers import get_dut_port_id
from tests.common.snappi_tests.common_helpers import pfc_class_enable_vector, config_wred, \
enable_ecn, config_ingress_lossless_buffer_alpha, stop_pfcwd, disable_packet_aging, \
enable_ecn, config_ingress_lossless_buffer_alpha, stop_pfcwd, disable_packet_aging,\
config_capture_pkt, traffic_flow_mode, calc_pfc_pause_flow_rate # noqa: F401
from tests.common.snappi_tests.read_pcap import get_ipv4_pkts
from tests.common.snappi_tests.snappi_test_params import SnappiTestParams
Expand Down Expand Up @@ -375,18 +375,6 @@ def run_ecn_marking_port_toggle_test(
rx_port = snappi_extra_params.multi_dut_params.multi_dut_ports[0]
egress_duthost = rx_port['duthost']

tx_port = snappi_extra_params.multi_dut_params.multi_dut_ports[1]
ingress_duthost = tx_port['duthost']

pytest_assert(testbed_config is not None, 'Failed to get L2/3 testbed config')

logger.info("Stopping PFC watchdog")
stop_pfcwd(egress_duthost, rx_port['asic_value'])
stop_pfcwd(ingress_duthost, tx_port['asic_value'])
logger.info("Disabling packet aging if necessary")
disable_packet_aging(egress_duthost)
disable_packet_aging(ingress_duthost)

duthost = egress_duthost

init_ctr_3 = get_npu_voq_queue_counters(duthost, dut_port, test_prio_list[0])
Expand Down

0 comments on commit b1efd86

Please sign in to comment.