Skip to content

Commit

Permalink
[vs]: Fix bitmap VNET virtual switch test (#936)
Browse files Browse the repository at this point in the history
Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
  • Loading branch information
Volodymyr Samotiy authored and prsunny committed Jun 15, 2019
1 parent 4577b40 commit 825c0cb
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions tests/test_vnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,6 @@ def get_vnet_obj(self):
'''
Test 1 - Create Vlan Interface, Tunnel and Vnet
'''
@pytest.mark.skip(reason="Failing. Under investigation")
def test_vnet_orch_1(self, dvs, testlog):
vnet_obj = self.get_vnet_obj()

Expand All @@ -944,6 +943,7 @@ def test_vnet_orch_1(self, dvs, testlog):
vid = create_vlan_interface(dvs, "Vlan101", "Ethernet28", "Vnet_2000", "100.100.4.1/24")
vnet_obj.check_router_interface(dvs, 'Vnet_2000', vid)

vnet_obj.fetch_exist_entries(dvs)
create_vnet_routes(dvs, "100.100.1.1/32", 'Vnet_2000', '10.10.10.1')
vnet_obj.check_vnet_routes(dvs, 'Vnet_2000', '10.10.10.1', tunnel_name)

Expand All @@ -963,6 +963,7 @@ def test_vnet_orch_1(self, dvs, testlog):
create_phy_interface(dvs, "Ethernet4", "Vnet_2001", "100.102.1.1/24")
vnet_obj.check_router_interface(dvs, 'Vnet_2001')

vnet_obj.fetch_exist_entries(dvs)
create_vnet_routes(dvs, "100.100.2.1/32", 'Vnet_2001', '10.10.10.2', "00:12:34:56:78:9A")
vnet_obj.check_vnet_routes(dvs, 'Vnet_2001', '10.10.10.2', tunnel_name, "00:12:34:56:78:9A")

Expand Down Expand Up @@ -1004,7 +1005,6 @@ def test_vnet_orch_1(self, dvs, testlog):
'''
Test 2 - Two VNets, One HSMs per VNet
'''
@pytest.mark.skip(reason="Failing. Under investigation")
def test_vnet_orch_2(self, dvs, testlog):
vnet_obj = self.get_vnet_obj()

Expand All @@ -1023,15 +1023,19 @@ def test_vnet_orch_2(self, dvs, testlog):
vid = create_vlan_interface(dvs, "Vlan1001", "Ethernet0", "Vnet_1", "1.1.10.1/24")
vnet_obj.check_router_interface(dvs, 'Vnet_1', vid)

vnet_obj.fetch_exist_entries(dvs)
create_vnet_routes(dvs, "1.1.1.10/32", 'Vnet_1', '100.1.1.10')
vnet_obj.check_vnet_routes(dvs, 'Vnet_1', '100.1.1.10', tunnel_name)

vnet_obj.fetch_exist_entries(dvs)
create_vnet_routes(dvs, "1.1.1.11/32", 'Vnet_1', '100.1.1.10')
vnet_obj.check_vnet_routes(dvs, 'Vnet_1', '100.1.1.10', tunnel_name)

vnet_obj.fetch_exist_entries(dvs)
create_vnet_routes(dvs, "1.1.1.12/32", 'Vnet_1', '200.200.1.200')
vnet_obj.check_vnet_routes(dvs, 'Vnet_1', '200.200.1.200', tunnel_name)

vnet_obj.fetch_exist_entries(dvs)
create_vnet_routes(dvs, "1.1.1.14/32", 'Vnet_1', '200.200.1.201')
vnet_obj.check_vnet_routes(dvs, 'Vnet_1', '200.200.1.201', tunnel_name)

Expand All @@ -1046,9 +1050,11 @@ def test_vnet_orch_2(self, dvs, testlog):
vid = create_vlan_interface(dvs, "Vlan1002", "Ethernet4", "Vnet_2", "2.2.10.1/24")
vnet_obj.check_router_interface(dvs, 'Vnet_2', vid)

vnet_obj.fetch_exist_entries(dvs)
create_vnet_routes(dvs, "2.2.2.10/32", 'Vnet_2', '100.1.1.20')
vnet_obj.check_vnet_routes(dvs, 'Vnet_2', '100.1.1.20', tunnel_name)

vnet_obj.fetch_exist_entries(dvs)
create_vnet_routes(dvs, "2.2.2.11/32", 'Vnet_2', '100.1.1.20')
vnet_obj.check_vnet_routes(dvs, 'Vnet_2', '100.1.1.20', tunnel_name)

Expand Down Expand Up @@ -1096,7 +1102,6 @@ def test_vnet_orch_2(self, dvs, testlog):
'''
Test 3 - Two VNets, One HSMs per VNet, Peering
'''
@pytest.mark.skip(reason="Failing. Under investigation")
def test_vnet_orch_3(self, dvs, testlog):
vnet_obj = self.get_vnet_obj()

Expand Down Expand Up @@ -1124,9 +1129,11 @@ def test_vnet_orch_3(self, dvs, testlog):
vid = create_vlan_interface(dvs, "Vlan2002", "Ethernet12", "Vnet_20", "8.8.10.1/24")
vnet_obj.check_router_interface(dvs, 'Vnet_20', vid)

vnet_obj.fetch_exist_entries(dvs)
create_vnet_routes(dvs, "5.5.5.10/32", 'Vnet_10', '50.1.1.10')
vnet_obj.check_vnet_routes(dvs, 'Vnet_10', '50.1.1.10', tunnel_name)

vnet_obj.fetch_exist_entries(dvs)
create_vnet_routes(dvs, "8.8.8.10/32", 'Vnet_20', '80.1.1.20')
vnet_obj.check_vnet_routes(dvs, 'Vnet_10', '80.1.1.20', tunnel_name)

Expand Down

0 comments on commit 825c0cb

Please sign in to comment.