Skip to content

Commit a23bc50

Browse files
Disable all bmp table after test to avoid potential impact to other test cases. (sonic-net#17910)
Disable all bmp table after test to avoid potential impact to other test cases Description of PR Work item tracking Microsoft ADO (number only):32206168 Approach What is the motivation for this PR? Disable all bmp table after test to avoid potential impact to other test cases How did you do it? Disable all relevant bmp table via config cli after each test. How did you verify/test it? kvm test verified. Any platform specific information? Signed-off-by: opcoder0 <110003254+opcoder0@users.noreply.github.com>
1 parent 6e494bd commit a23bc50

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

tests/bmp/test_bmp_configdb.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,8 @@ def test_bmp_configdb(duthosts, rand_one_dut_hostname, localhost):
8989
table_name = 'bgp_rib_out_table'
9090
status = check_table_status(output, table_name)
9191
assert (status == 'true')
92+
93+
# disable all table to avoid further impact to other test cases
94+
disable_bmp_neighbor_table(duthost)
95+
disable_bmp_rib_in_table(duthost)
96+
disable_bmp_rib_out_table(duthost)

tests/bmp/test_bmp_statedb.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import time
44
import re
55
from bmp.helper import enable_bmp_neighbor_table, enable_bmp_rib_in_table, enable_bmp_rib_out_table
6+
from bmp.helper import disable_bmp_neighbor_table, disable_bmp_rib_in_table, disable_bmp_rib_out_table
67

78
logger = logging.getLogger(__name__)
89

@@ -125,3 +126,8 @@ def test_bmp_population(duthosts, rand_one_dut_hostname, localhost):
125126
enable_bmp_rib_out_table(duthost)
126127
for idx, neighbor_v6addr in enumerate(neighbor_v6addrs):
127128
check_dut_bmp_rib_out_status(duthost, neighbor_v6addr)
129+
130+
# disable all table to avoid further impact to other test cases
131+
disable_bmp_neighbor_table(duthost)
132+
disable_bmp_rib_in_table(duthost)
133+
disable_bmp_rib_out_table(duthost)

0 commit comments

Comments
 (0)