From a3bea2f670ca27ffa74ca29bcb9cd54c1817a997 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 14 Aug 2017 13:37:40 +0200 Subject: [PATCH] tests: enable test for team device --- tests/integration/fixtures/network.py | 2 +- tests/integration/test_interfaces.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/integration/fixtures/network.py b/tests/integration/fixtures/network.py index 8aa8cf92..e5f45f2d 100644 --- a/tests/integration/fixtures/network.py +++ b/tests/integration/fixtures/network.py @@ -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) diff --git a/tests/integration/test_interfaces.py b/tests/integration/test_interfaces.py index 292bf7fb..4adbc0ea 100644 --- a/tests/integration/test_interfaces.py +++ b/tests/integration/test_interfaces.py @@ -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' -- 2.39.5