assert out == expected
-@pytest.mark.skipif("'Dot3' not in config.lldpd.features", readon="Dot3 not supported")
-def test_8023bt(lldpd1, lldpcli, namespaces):
- with namespaces(2):
- pytest.helpers.send_pcap("data/8023bt.pcap", "eth1")
- with namespaces(1):
- out = lldpcli("-f", "keyvalue", "show", "neighbors", "details")
- for k in list(out.keys()):
- if not k.startswith("lldp.eth0.port.power."):
- del out[k]
- assert out == {
- "lldp.eth0.port.power.supported": "yes",
- "lldp.eth0.port.power.enabled": "yes",
- "lldp.eth0.port.power.paircontrol": "yes",
- "lldp.eth0.port.power.device-type": "PSE",
- "lldp.eth0.port.power.pairs": "signal",
- "lldp.eth0.port.power.class": "class 4",
- "lldp.eth0.port.power.power-type": "2",
- "lldp.eth0.port.power.source": "PSE",
- "lldp.eth0.port.power.priority": "low",
- "lldp.eth0.port.power.requested": "71000",
- "lldp.eth0.port.power.allocated": "51000",
- "lldp.eth0.port.power.requested-a": "35500",
- "lldp.eth0.port.power.requested-b": "35500",
- "lldp.eth0.port.power.allocated-a": "25500",
- "lldp.eth0.port.power.allocated-b": "25500",
- "lldp.eth0.port.power.pse-powering-status": "4-pair powering single-signature PD",
- "lldp.eth0.port.power.pd-powering-status": "Unknown",
- "lldp.eth0.port.power.power-pairs-ext": "Both alternatives",
- "lldp.eth0.port.power.power-class-ext-a": "Class 4",
- "lldp.eth0.port.power.power-class-ext-b": "Class 4",
- "lldp.eth0.port.power.power-class-ext": "Dual-signature PD",
- "lldp.eth0.port.power.power-type-ext": "Type 3 PSE",
- "lldp.eth0.port.power.pd-load": (
- "PD is single- or dual-signature and power "
- "is not electrically isolated"
- ),
- "lldp.eth0.port.power.max-power": "51000",
- }
-
-
@pytest.mark.skipif(
"'LLDP-MED' not in config.lldpd.features", readon="LLDP-MED not supported"
)