Skip to content

Commit 1c72307

Browse files
oleksandrkozlovmartinpitt
authored andcommitted
NetworkManager template: Add Active Connection ID (#56)
The ID property was added to an active connection. This fix adds the possibility to get an active connection by ID.
1 parent 5033ba3 commit 1c72307

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dbusmock/templates/networkmanager.py

+2
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ def AddActiveConnection(self, devices, connection_device, specific_object, name,
577577
settings = conn_obj.settings
578578
conn_uuid = settings['connection']['uuid']
579579
conn_type = settings['connection']['type']
580+
conn_id = settings['connection']['id']
580581

581582
device_objects = [dbus.ObjectPath(dev) for dev in devices]
582583

@@ -594,6 +595,7 @@ def AddActiveConnection(self, devices, connection_device, specific_object, name,
594595
'SpecificObject': dbus.ObjectPath(specific_object),
595596
'Uuid': conn_uuid,
596597
'State': dbus.UInt32(state),
598+
'Id': conn_id,
597599
},
598600
[])
599601

0 commit comments

Comments
 (0)