Re: Add new conntion with DBus API
- From: Jirka Klimes <jklimes redhat com>
- To: networkmanager-list gnome org
- Subject: Re: Add new conntion with DBus API
- Date: Wed, 5 May 2010 10:53:28 +0200
On Thursday 06 of May 2010 07:39:07 Nguyen Canh Toan wrote:
> Hi all,
>
>
>
> Currently, I have a purpose of programmatically add & remove connection
> configuration through DBus interface
> org.freedesktop.NetworkManagerSettings.Connection.
>
> I found an API Delete() on
> org.freedesktop.NetworkManagerSettings.Connection but I can't find what
> function stuff to create new connection.
>
>
>
> Did anyone experience with this issue? Could you please to share it to me?
>
>
>
> Thanks,
>
> Toan Nguyen
You search for AddConnection() method of
org.freedesktop.NetworkManagerSettings interface.
For a simple python example see:
http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/examples/python/add-
system-connection.py
More complex example can be found here:
http://markmail.org/message/2xfwvjqjovu4fk2j
For specification of settings parameters
see:http://projects.gnome.org/NetworkManager/developers/settings-spec-08.html
Jirka
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]