mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-02 22:38:01 +00:00
tools/tests: set available-connections for vlan device in NM test stub
This commit is contained in:
parent
ee3e2e0bb6
commit
1f9de38a7b
|
@ -1077,6 +1077,9 @@ class Device(ExportedObj):
|
|||
elif isinstance(self, WifiDevice):
|
||||
if con_inst.get_type() == NM.SETTING_WIRELESS_SETTING_NAME:
|
||||
return True
|
||||
elif isinstance(self, VlanDevice):
|
||||
if con_inst.get_type() == NM.SETTING_VLAN_SETTING_NAME:
|
||||
return True
|
||||
return False
|
||||
|
||||
def available_connections_get(self):
|
||||
|
@ -1630,6 +1633,9 @@ class NetworkManager(ExportedObj):
|
|||
|
||||
ac = ActiveConnection(device, con_inst, None)
|
||||
self.active_connection_add(ac)
|
||||
|
||||
gl.manager.devices_available_connections_update()
|
||||
|
||||
return ExportedObj.to_path(ac)
|
||||
|
||||
def active_connection_add(self, ac):
|
||||
|
|
Loading…
Reference in a new issue