lldp: support multiple PPVIDs

As done for VLANs, add a new 'ppvids' attribute that reports all 'port
and protocol VLAN ID' TLVs for the neighbor.
This commit is contained in:
Beniamino Galvani
2019-02-01 11:15:46 +01:00
parent c4be4ea298
commit 452851cc35
4 changed files with 54 additions and 15 deletions

View File

@@ -752,6 +752,16 @@ class Device(ExportedObj):
'name': dbus.String('My VLAN'),
}, signature = 'sv'),
]),
'ieee-802-1-ppvids': dbus.Array([
dbus.Dictionary({
'ppvid': dbus.UInt32(4),
'flags': dbus.UInt32(0x12),
}, signature = 'sv'),
dbus.Dictionary({
'ppvid': dbus.UInt32(10),
'flags': dbus.UInt32(0x31),
}, signature = 'sv'),
]),
}),
dbus.Dictionary({
'chassis-id-type': dbus.UInt32(6),