Skip to content

Commit 8620a51

Browse files
committed
[vstest]: disable ipv6 in test_crm.py::test_CrmFdbEntry
disable ipv6 on Ethernet8 neighbor as once ipv6 link-local address is configured, server 2 will send packet which can switch to learn another mac and fail the test. Signed-off-by: Guohan Lu <[email protected]>
1 parent f684d65 commit 8620a51

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_crm.py

+6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ def setReadOnlyAttr(dvs, obj, attr, val):
4141

4242
def test_CrmFdbEntry(dvs, testlog):
4343

44+
# disable ipv6 on Ethernet8 neighbor as once ipv6 link-local address is
45+
# configured, server 2 will send packet which can switch to learn another
46+
# mac and fail the test.
47+
dvs.servers[2].runcmd("sysctl -w net.ipv6.conf.eth0.disable_ipv6=1")
4448
dvs.runcmd("crm config polling interval 1")
4549

4650
setReadOnlyAttr(dvs, 'SAI_OBJECT_TYPE_SWITCH', 'SAI_SWITCH_ATTR_AVAILABLE_FDB_ENTRY', '1000')
@@ -91,6 +95,8 @@ def test_CrmFdbEntry(dvs, testlog):
9195

9296
assert new_avail_counter == avail_counter
9397

98+
# enable ipv6 on server 2
99+
dvs.servers[2].runcmd("sysctl -w net.ipv6.conf.eth0.disable_ipv6=0")
94100

95101
def test_CrmIpv4Route(dvs, testlog):
96102

0 commit comments

Comments
 (0)