Re: Update NetworkManager Settings using D-Bus



On Mon, 2014-07-21 at 15:06 +0200, Pascal Garber wrote:
Hi, I'm working on a D-Bus wrapper for Node.js [1], but I can't update
my NetworkManager Settings.
This is the d-bus interface I use:
org.freedesktop.NetworkManager.Settings.Connection
When I try to call the Update method I get this error: "[Error:
org.freedesktop.NetworkManager.Settings.Connection.MissingProperty]"
but I give the function the same properties I was getting with
GetSettings, e.g. [2]


What are the required properties? 
Is it possible to Debug the NetworkManager D-Bus interface on
Server/NetworkManager site?

Hei,

Which NM version are you using? In general backward compatibility should
be provided for the DBUS API, anything else would be a bug. Still good
to know...


NM server-side calls nm_connection_verify() [1], which delegates to the
virtual function nm_setting_verify() [2] -- implemented as verify()
functions in libnm-util/nm-setting-*.c (e.g. [3])

[1] 
http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/libnm-util/nm-connection.c?id=faa6c34db1a24e268982c8309f885f9c6a76c638#n704
[2] 
http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/libnm-util/nm-setting.c?id=faa6c34db1a24e268982c8309f885f9c6a76c638#n516
[3] 
http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/libnm-util/nm-setting-connection.c?id=faa6c34db1a24e268982c8309f885f9c6a76c638#n757


Looks like verify() for the provided setting is failing. Don't you get
an more detailed error message?

For me, the setting looks valid.


Thomas

Attachment: signature.asc
Description: This is a digitally signed message part



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