Skip to content

Commit

Permalink
[vstest]: disable ipv6 in test_crm.py::test_CrmFdbEntry
Browse files Browse the repository at this point in the history
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 <gulv@microsoft.com>
  • Loading branch information
lguohan committed Oct 22, 2018
1 parent f684d65 commit 8620a51
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_crm.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ def setReadOnlyAttr(dvs, obj, attr, val):

def test_CrmFdbEntry(dvs, testlog):

# 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.
dvs.servers[2].runcmd("sysctl -w net.ipv6.conf.eth0.disable_ipv6=1")
dvs.runcmd("crm config polling interval 1")

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

assert new_avail_counter == avail_counter

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

def test_CrmIpv4Route(dvs, testlog):

Expand Down

0 comments on commit 8620a51

Please sign in to comment.