[PATCH] Network spoke: fix refresh of device IP configuration
Radek Vykydal
rvykydal at redhat.com
Fri Apr 5 11:59:06 UTC 2013
On 04/05/2013 10:59 AM, Vratislav Podzimek wrote:
> 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?
>
>
I am using dbus-python in places where we can't use libnm-glib with GI
due to some (yet unresolved) bugs/issues at lower level.
I may send a separate patch replacing all dbus-python calls in
spokes/network.py
with GDBUS calls, perhaps adding nm_object_property() to nm.py.
More information about the anaconda-patches
mailing list