tools/tests: set available-connections for vlan device in NM test stub
This commit is contained in:
@@ -1077,6 +1077,9 @@ class Device(ExportedObj):
|
|||||||
elif isinstance(self, WifiDevice):
|
elif isinstance(self, WifiDevice):
|
||||||
if con_inst.get_type() == NM.SETTING_WIRELESS_SETTING_NAME:
|
if con_inst.get_type() == NM.SETTING_WIRELESS_SETTING_NAME:
|
||||||
return True
|
return True
|
||||||
|
elif isinstance(self, VlanDevice):
|
||||||
|
if con_inst.get_type() == NM.SETTING_VLAN_SETTING_NAME:
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def available_connections_get(self):
|
def available_connections_get(self):
|
||||||
@@ -1630,6 +1633,9 @@ class NetworkManager(ExportedObj):
|
|||||||
|
|
||||||
ac = ActiveConnection(device, con_inst, None)
|
ac = ActiveConnection(device, con_inst, None)
|
||||||
self.active_connection_add(ac)
|
self.active_connection_add(ac)
|
||||||
|
|
||||||
|
gl.manager.devices_available_connections_update()
|
||||||
|
|
||||||
return ExportedObj.to_path(ac)
|
return ExportedObj.to_path(ac)
|
||||||
|
|
||||||
def active_connection_add(self, ac):
|
def active_connection_add(self, ac):
|
||||||
|
Reference in New Issue
Block a user