Re: [PATCH 2/5 newui] Network spoke: wait for config objects after device activation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +    def _refresh_device_cfg(self, dev_tries):
> +        device, num_of_tries = dev_tries
> +        ipv4cfg = None
> +        ipv6cfg = None
> +
> +        if num_of_tries > 0:
> +            ipv4cfg = device.get_ip4_config()
> +            ipv6cfg = device.get_ip6_config()
> +            if not ipv4cfg and not ipv6cfg:
> +                GLib.timeout_add(300, self._refresh_device_cfg, (device,
> +                                                                 num_of_tries-1))
> +                return False
> +
> +        # We might need to wait for config objects to become available
> +        if device.get_state() == NetworkManager.DeviceState.ACTIVATED:
> +            # Activating device with neither ipv4 nor ipv6 configured shouldn't
> +            # loop endlessly so set timeout
> +            timeout = 1
> +            while timeout > 0 and not ipv4cfg and not ipv6cfg:
> +                while GLib.main_context_default().iteration(False):
> +                    pass

I am caught in an infinite loop right here, leading to never being able
to load the network spoke off the hub.  Any ideas?

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux