Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sonic-mgmt / IXIA : T2 test to verify ECN Counter operation pre and post port state toggle #15586

Merged
Merged
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
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
Loading