Skip to content

Commit b45355c

Browse files
deepak-singhal0408mssonicbld
authored andcommitted
T2-Snappi-Route-Conv: Update process crash Testcase (sonic-net#16754)
T2-Route Conv: Process Crash TC: Updated the test to accomodate new changes in the process crash scenario
1 parent 259e587 commit b45355c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tests/snappi_tests/multidut/bgp/files/bgp_outbound_helper.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
snappi_portchannel_ipv4_list, snappi_portchannel_ipv6_list, AS_PATHS, \
2222
BGP_TYPE, t1_side_interconnected_port, t2_side_interconnected_port, router_ids, \
2323
snappi_community_for_t1, snappi_community_for_t1_drop, snappi_community_for_t2, num_regionalhubs, \
24-
SNAPPI_TRIGGER, DUT_TRIGGER, fanout_presence, t2_uplink_fanout_info # noqa: F401
24+
SNAPPI_TRIGGER, DUT_TRIGGER, DUT_TRIGGER_SHORT, fanout_presence, t2_uplink_fanout_info # noqa: F401
2525
from tests.common.snappi_tests.variables import v6_prefix_length
2626

2727
logger = logging.getLogger(__name__)
@@ -1481,6 +1481,11 @@ def get_convergence_for_process_flap(duthosts,
14811481
check_container_status_down(duthost, container, timeout=60)
14821482
check_container_status_up(duthost, container, timeout=DUT_TRIGGER)
14831483
wait(DUT_TRIGGER, "For Flows to be evenly distributed")
1484+
1485+
# execute TSB command, to bring the traffic back
1486+
duthost.command("sudo TSB")
1487+
wait(DUT_TRIGGER_SHORT, "For TSB")
1488+
14841489
port_stats = get_port_stats(api)
14851490
for port_stat in port_stats:
14861491
if 'Snappi_Tx_Port' not in port_stat.name:

tests/snappi_tests/variables.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ def get_host_addresses(subnet, count):
136136
T2_DUT_AS_NUM = 65100
137137
BGP_TYPE = 'ebgp'
138138
SNAPPI_TRIGGER = 60 # timeout value for snappi operation
139-
DUT_TRIGGER = 180 # timeout value for dut operation
139+
DUT_TRIGGER = 180 # longer timeout value for dut operation
140+
DUT_TRIGGER_SHORT = 60 # shorter timeout value for dut operation
140141

141142
ipv4_subnet = '20.0.1.1/31'
142143
ipv6_subnet = '2000:1:1:1::1/126'

0 commit comments

Comments
 (0)