import pytest
import pyroute2
import time
-from flaky import flaky
def test_simple_bridge(lldpd1, lldpd, lldpcli, namespaces, links):
assert out['lldp.eth0.vlan.vlan-id'] == ['300', '400']
-@flaky
def test_new_interface(lldpd1, lldpd, lldpcli, namespaces, links):
with namespaces(2):
lldpd()
links(namespaces(1), namespaces(2))
- time.sleep(8)
+ time.sleep(10)
with namespaces(1):
out = lldpcli("-f", "keyvalue", "show", "neighbors", "details")
assert out['lldp.eth0.port.descr'] == 'eth1'
import platform
import json
import xml.etree.ElementTree as ET
-from flaky import flaky
@pytest.fixture(scope='session')
@pytest.mark.skipif('Dot3' not in pytest.config.lldpd.features,
reason="Dot3 not supported")
-@flaky
def test_new_port_take_default(lldpd1, lldpd, lldpcli, namespaces, links):
with namespaces(2):
lldpd()
assert out['lldp.eth0.port.descr'] == 'eth1'
assert out['lldp.eth0.port.power.device-type'] == 'PSE'
links(namespaces(1), namespaces(2))
- time.sleep(8)
+ time.sleep(10)
with namespaces(1):
out = lldpcli("-f", "keyvalue", "show", "neighbors", "details")
assert out['lldp.eth2.port.descr'] == 'eth3'