diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2018-12-20 17:03:16 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2019-03-27 10:47:24 +0100 |
commit | 6c52d946fc8cbe148cbf6d95e35e8b89084b8fe1 (patch) | |
tree | c05db04b5b96758c4aeec869d461c54da32b4f70 /tools | |
parent | 937796f6ea78c320e90e909330799a56df56b911 (diff) | |
download | NetworkManager-6c52d946fc8cbe148cbf6d95e35e8b89084b8fe1.tar.gz |
lldp: add support for management address TLV
Support the management address TLV (IEEE 802.1AB-2009 clause
8.5.9). The TLV can appear multiple times and so it is exported on
D-Bus as an array of dictionaries.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/test-networkmanager-service.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/test-networkmanager-service.py b/tools/test-networkmanager-service.py index 323e052688..fe680fa215 100755 --- a/tools/test-networkmanager-service.py +++ b/tools/test-networkmanager-service.py @@ -753,6 +753,21 @@ class Device(ExportedObj): 'system-description': dbus.String('Test system #3'), 'system-capabilities': dbus.UInt32(40), 'destination': dbus.String('nearest-customer-bridge'), + 'management-addresses': dbus.Array([ + dbus.Dictionary({ + 'address-subtype': dbus.UInt32(1), + 'address': dbus.ByteArray(b'\xc0\xa8\x01\x01'), + 'interface-number': dbus.UInt32(4), + 'interface-number-subtype': dbus.UInt32(3), + 'object-id': dbus.ByteArray(b'\x01\x02\x03\x04') + }, signature = 'sv'), + dbus.Dictionary({ + 'address-subtype': dbus.UInt32(2), + 'address': dbus.ByteArray(b'\xfd\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x12\x34\x56\x78'), + 'interface-number': dbus.UInt32(1), + 'interface-number-subtype': dbus.UInt32(2), + }, signature = 'sv'), + ]) }) ], 'a{sv}') } |