예제 #1
0
 def _connection_updated_cb(self, connection, result, connection_uuid):
     connection.update2_finish(result)
     log.debug("updated connection %s:\n%s", connection_uuid,
               connection.to_dbus(NM.ConnectionSerializationFlags.ALL))
     if self.apply_configuration:
         nm_client = network.get_nm_client()
         device = nm_client.get_device_by_iface(self._iface)
         log.debug("activating connection %s with device %s",
                   connection_uuid, self._iface)
         nm_client.activate_connection_async(connection, device, None, None)
예제 #2
0
    def __init__(self, data, storage, payload):
        NormalTUISpoke.__init__(self, data, storage, payload)
        self.title = N_("Network configuration")
        self._network_module = NETWORK.get_proxy()

        self.nm_client = network.get_nm_client()
        if not self.nm_client and conf.system.provides_system_bus:
            self.nm_client = NM.Client.new(None)

        self._container = None
        self.hostname = self._network_module.Hostname
        self.editable_configurations = []
        self.errors = []
        self._apply = False
예제 #3
0
    def __init__(self, data, storage, payload):
        NormalTUISpoke.__init__(self, data, storage, payload)
        self.title = N_("Network configuration")
        self._network_module = NETWORK.get_observer()
        self._network_module.connect()

        self.nm_client = network.get_nm_client()
        if not self.nm_client and conf.system.provides_system_bus:
            self.nm_client = NM.Client.new(None)

        self._container = None
        self.hostname = self._network_module.proxy.Hostname
        self.editable_configurations = []
        self.errors = []
        self._apply = False