Re: problems with updating ipv4 settings over dbus



NM version = 1.0.10

2016-12-19 11:15 GMT+02:00 matti kaasinen <matti kaasinen gmail com>:
Hi!

It seems that I can't set dbus types properly. I try to follow example setting static ipv4 addres:
freedesktop/NetworkManager/NetworkManager/examples/python/dbus/update-ip4-method.py

'ipv4' dictionary before update printed below:
{u'address-data': dbus.Array([dbus.Dictionary({'prefix': dbus.UInt32(22L), 'address': '192.168.3.25'}, signature=None)], signature=dbus.Signature('a{sv}')), u'method': 'manual'}

I get following error message from connection.Update():
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 641, in call_blocking
    message.append(signature=signature, *args)
ValueError: invalid literal for long() with base 10: '192.168.3.25'

Thanks,
Matti



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