Skip to content

Commit

Permalink
Undo skipping Vnet tests, Vrf check before enslaving (sonic-net#857)
Browse files Browse the repository at this point in the history
* Undo skipping Vnet tests, VxlanMgrd merged to master

* Check VRF name before setting as master
  • Loading branch information
prsunny committed May 8, 2019
1 parent ff9b93b commit 015fc62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 4 additions & 1 deletion cfgmgr/intfmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ bool IntfMgr::doIntfGeneralTask(const vector<string>& keys,
// Set Interface VRF except for lo
if (!is_lo)
{
setIntfVrf(alias, vrf_name);
if (!vrf_name.empty())
{
setIntfVrf(alias, vrf_name);
}
m_appIntfTableProducer.set(alias, data);
}
else
Expand Down
6 changes: 0 additions & 6 deletions tests/test_vnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,6 @@ def get_vnet_obj(self):
'''
Test 1 - Create Vlan Interface, Tunnel and Vnet
'''
# TODO: Please fix this test case.
@pytest.mark.skip(reason="Starting Vxlanmgr to be merged")
def test_vnet_orch_1(self, dvs, testlog):
vnet_obj = self.get_vnet_obj()

Expand Down Expand Up @@ -850,8 +848,6 @@ def test_vnet_orch_1(self, dvs, testlog):
'''
Test 2 - Two VNets, One HSMs per VNet
'''
# TODO: Please fix this test case.
@pytest.mark.skip(reason="Starting Vxlanmgr to be merged")
def test_vnet_orch_2(self, dvs, testlog):
vnet_obj = self.get_vnet_obj()

Expand Down Expand Up @@ -905,8 +901,6 @@ def test_vnet_orch_2(self, dvs, testlog):
'''
Test 3 - Two VNets, One HSMs per VNet, Peering
'''
# TODO: Please fix this test case.
@pytest.mark.skip(reason="Starting Vxlanmgr to be merged")
def test_vnet_orch_3(self, dvs, testlog):
vnet_obj = self.get_vnet_obj()

Expand Down

0 comments on commit 015fc62

Please sign in to comment.