Skip to content

Commit

Permalink
Adding extra check before pinging sub-interfaces
Browse files Browse the repository at this point in the history
Adding extra check to verify whether vlan sub-interfaces are
created properly or not before pinging vlan sub interfaces.

Also, enabling single isid test as sanity instead of vlan
sub interfaces isid test

Change-Id: Id6cc49b07dfa418ec72f8af58fc029ddd23dd8cc
Closes-Bug: #1768729
  • Loading branch information
cmallam committed May 3, 2018
1 parent ef1f5d4 commit 6feb4a0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion serial_scripts/pbb_evpn/test_pbb_evpn.py
Expand Up @@ -25,6 +25,7 @@ def tearDownClass(cls):
super(TestPbbEvpnMacLearning, cls).tearDownClass()
# end tearDownClass

@test.attr(type=['cb_sanity', 'sanity'])
@preposttest_wrapper
def test_mac_learning_single_isid(self):
'''
Expand Down Expand Up @@ -90,7 +91,6 @@ def test_mac_learning_single_isid(self):
# end test_mac_learning_single_isid


@test.attr(type=['cb_sanity', 'sanity'])
@preposttest_wrapper
def test_mac_learning_subIntf_single_isid(self):
'''
Expand All @@ -115,6 +115,11 @@ def test_mac_learning_subIntf_single_isid(self):
vm_fixtures = ret_dict['vm_fixtures']
pbb_compute_node_ips = ret_dict['pbb_compute_node_ips']

# Before pinging, wait till interface is found on VM
interface = 'eth0.%s' %(VLAN_ID1)
for src_vm_fixture in vm_fixtures.values():
assert src_vm_fixture.wait_till_interface_created(interface)

# Pinging all the VMIs
for src_vm_fixture in vm_fixtures.values():
for vmi_fixture in vmi_fixtures.values():
Expand Down

0 comments on commit 6feb4a0

Please sign in to comment.