diff options
| author | Beniamino Galvani <bgalvani@redhat.com> | 2018-12-20 18:31:45 +0100 |
|---|---|---|
| committer | Beniamino Galvani <bgalvani@redhat.com> | 2019-03-27 10:47:24 +0100 |
| commit | c4be4ea298bcb94bdf77144f9ee64b3fbbff8a4d (patch) | |
| tree | b0b984db3f1b461d9a1840101bbb8c7121f9b7a9 /tools | |
| parent | 6c52d946fc8cbe148cbf6d95e35e8b89084b8fe1 (diff) | |
| download | NetworkManager-c4be4ea298bcb94bdf77144f9ee64b3fbbff8a4d.tar.gz | |
lldp: support multiple vlans
Previously we exported the contents of VLAN Name TLV in the 'vid'
(uint32) and 'vlan-name' (string) attributes. This is not entirely
correct as the TLV can appear multiple times.
We need a way to export all the VLAN IDs and names for the
neighbor. Add a new 'vlans' attribute which obsoletes the other two
and is an array of dictionaries, where each dictionary contains the
'vid' and 'name' keys.
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/test-networkmanager-service.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/test-networkmanager-service.py b/tools/test-networkmanager-service.py index fe680fa215..ddf92c0a27 100755 --- a/tools/test-networkmanager-service.py +++ b/tools/test-networkmanager-service.py @@ -741,7 +741,17 @@ class Device(ExportedObj): 'system-name': dbus.String('test2.example.com'), 'system-description': dbus.String('Test system #2'), 'system-capabilities': dbus.UInt32(2047), - 'destination': dbus.String('nearest-non-tpmr-bridge') + 'destination': dbus.String('nearest-non-tpmr-bridge'), + 'ieee-802-1-vlans': dbus.Array([ + dbus.Dictionary({ + 'vid': dbus.UInt32(80), + 'name': dbus.String('vlan80'), + }, signature = 'sv'), + dbus.Dictionary({ + 'vid': dbus.UInt32(4000), + 'name': dbus.String('My VLAN'), + }, signature = 'sv'), + ]), }), dbus.Dictionary({ 'chassis-id-type': dbus.UInt32(6), |
