[PATCH] Network spoke: fix refresh of device IP configuration

Vratislav Podzimek vpodzime at redhat.com
Fri Apr 5 08:59:05 UTC 2013


On Fri, 2013-04-05 at 09:55 +0200, Radek Vykydal wrote:
>          # TODO NM_GI_BUGS - segfaults on get_addres(), get_prefix()
>          ipv6_addr = None
> -        if (ipv6cfg
> -            and state == NetworkManager.DeviceState.ACTIVATED):
> +        if ipv6cfg:
>              config = dbus.SystemBus().get_object(NM_SERVICE, ipv6cfg.get_path())
>              addr, prefix, gw = getNMObjProperty(config, ".IP6Config",
>                                                  "Addresses")[0]
This looks good to me. Just the 'config = dbus.SystemBus()...' line is a
bit confusing to me. Isn't there a function for something like that in
nm.py?


-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list