]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
tests: enable test for team device
authorVincent Bernat <vincent@bernat.im>
Mon, 14 Aug 2017 11:37:40 +0000 (13:37 +0200)
committerVincent Bernat <vincent@bernat.im>
Mon, 14 Aug 2017 11:37:40 +0000 (13:37 +0200)
tests/integration/fixtures/network.py
tests/integration/test_interfaces.py

index 8aa8cf92dd4593b88ca19fa4acce1535d85592dd..e5f45f2dbcaffa3707a5914f8fe254891c185467 100644 (file)
@@ -79,7 +79,7 @@ class LinksFactory(object):
 
     def _bond_or_team(self, kind, name, *ifaces):
         """Create a bond or a team."""
-        ipr = pyroute2.IPRoute()
+        ipr = pyroute2.RawIPRoute()
         # Create the bond
         ipr.link_create(ifname=name,
                         kind=kind)
index 292bf7fbd40419a40da04d43c4f6781ee64fa6ba..4adbc0ea3f63d1a4276e062942e404fc44583ecf 100644 (file)
@@ -66,7 +66,6 @@ def test_bond(lldpd1, lldpd, lldpcli, namespaces, links, when):
 
 @pytest.mark.skipif('Dot3' not in pytest.config.lldpd.features,
                     reason="Dot3 not supported")
-@pytest.mark.skip(reason="Cannot create a simple team interface without teamd")
 @pytest.mark.parametrize('when', ['before', 'after'])
 def test_team(lldpd1, lldpd, lldpcli, namespaces, links, when):
     links(namespaces(3), namespaces(2))  # Another link to setup a bond
@@ -83,7 +82,7 @@ def test_team(lldpd1, lldpd, lldpcli, namespaces, links, when):
         assert out['lldp.eth0.port.descr'] == 'eth1'
         assert out['lldp.eth0.port.aggregation'] == str(idx)
         # Unfortunately, we cannot get the right MAC currently... So,
-        # this bit will fail.
+        # this bit will succeed by chance.
         assert out['lldp.eth0.port.mac'] == '00:00:00:00:00:02'