Re: problems with updating ipv4 settings over dbus

I executed manually update-ip4-method lines from python shell.
Executing update returned:
DBusException: org.freedesktop.NetworkManager.Settings.Connection.MissingProperty: ipv4.addresses: this property cannot be empty for 'method=manual'

On settings section/addresses property description claims:
"Deprecated in favor of the 'address-data' and 'gateway' properties, but this can be used for backward-compatibility with older daemons."

What should I now (try to) use with nm 1.0.10?

2016-12-19 12:29 GMT+02:00 matti kaasinen <matti kaasinen gmail com>:
NM version = 1.0.10

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

It seems that I can't set dbus types properly. I try to follow example setting static ipv4 addres:

'ipv4' dictionary before update printed below:
{u'address-data': dbus.Array([dbus.Dictionary({'prefix': dbus.UInt32(22L), 'address': ''}, 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/", line 641, in call_blocking
    message.append(signature=signature, *args)
ValueError: invalid literal for long() with base 10: ''


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