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

[action] [PR:16754] T2-Snappi-Route-Conv: Update process crash Testcase #16908

Merged
merged 1 commit into from
Feb 11, 2025
Merged
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
7 changes: 6 additions & 1 deletion tests/snappi_tests/multidut/bgp/files/bgp_outbound_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
snappi_portchannel_ipv4_list, snappi_portchannel_ipv6_list, AS_PATHS, \
BGP_TYPE, t1_side_interconnected_port, t2_side_interconnected_port, router_ids, \
snappi_community_for_t1, snappi_community_for_t1_drop, snappi_community_for_t2, num_regionalhubs, \
SNAPPI_TRIGGER, DUT_TRIGGER, fanout_presence, t2_uplink_fanout_info # noqa: F401
SNAPPI_TRIGGER, DUT_TRIGGER, DUT_TRIGGER_SHORT, fanout_presence, t2_uplink_fanout_info # noqa: F401
from tests.common.snappi_tests.variables import v6_prefix_length

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -1481,6 +1481,11 @@ def get_convergence_for_process_flap(duthosts,
check_container_status_down(duthost, container, timeout=60)
check_container_status_up(duthost, container, timeout=DUT_TRIGGER)
wait(DUT_TRIGGER, "For Flows to be evenly distributed")

# execute TSB command, to bring the traffic back
duthost.command("sudo TSB")
wait(DUT_TRIGGER_SHORT, "For TSB")

port_stats = get_port_stats(api)
for port_stat in port_stats:
if 'Snappi_Tx_Port' not in port_stat.name:
Expand Down
3 changes: 2 additions & 1 deletion tests/snappi_tests/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ def get_host_addresses(subnet, count):
T2_DUT_AS_NUM = 65100
BGP_TYPE = 'ebgp'
SNAPPI_TRIGGER = 60 # timeout value for snappi operation
DUT_TRIGGER = 180 # timeout value for dut operation
DUT_TRIGGER = 180 # longer timeout value for dut operation
DUT_TRIGGER_SHORT = 60 # shorter timeout value for dut operation

ipv4_subnet = '20.0.1.1/31'
ipv6_subnet = '2000:1:1:1::1/126'
Expand Down
Loading