Skip to content

Commit e850194

Browse files
deepak-singhal0408nnelluri-cisco
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 2280955 commit e850194

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
@@ -20,7 +20,7 @@
2020
snappi_portchannel_ipv4_list, snappi_portchannel_ipv6_list, AS_PATHS, \
2121
BGP_TYPE, t1_side_interconnected_port, t2_side_interconnected_port, router_ids, \
2222
snappi_community_for_t1, snappi_community_for_t1_drop, snappi_community_for_t2, num_regionalhubs, \
23-
SNAPPI_TRIGGER, DUT_TRIGGER, fanout_presence, t2_uplink_fanout_info # noqa: F401
23+
SNAPPI_TRIGGER, DUT_TRIGGER, DUT_TRIGGER_SHORT, fanout_presence, t2_uplink_fanout_info # noqa: F401
2424
from tests.common.snappi_tests.variables import v6_prefix_length
2525

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

tests/snappi_tests/variables.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ def get_host_addresses(subnet, count):
149149
T2_DUT_AS_NUM = 65100
150150
BGP_TYPE = 'ebgp'
151151
SNAPPI_TRIGGER = 60 # timeout value for snappi operation
152-
DUT_TRIGGER = 180 # timeout value for dut operation
152+
DUT_TRIGGER = 180 # longer timeout value for dut operation
153+
DUT_TRIGGER_SHORT = 60 # shorter timeout value for dut operation
153154

154155
ipv4_subnet = '20.0.1.1/31'
155156
ipv6_subnet = '2000:1:1:1::1/126'

0 commit comments

Comments
 (0)