Re: Creating NetworkManager connections via DBus API

2014-07-05 Thread Stuart Longland
Hi Thomas,
On 05/07/14 00:40, Thomas Haller wrote:
 On Fri, 2014-07-04 at 11:51 +1000, Stuart Longland wrote:
 Hi Dan,
 On 04/07/14 10:51, Dan Williams wrote:
 On Fri, 2014-07-04 at 09:18 +1000, Stuart Longland wrote:
 What I'm curious about is what sorts of keys and values are expected in
 that dict of dicts?  At a basic level I need to be able to set IP
 addresses, static routes, DNS servers, domain and DNS search order.
 
 Did you see https://wiki.gnome.org/Projects/NetworkManager/Developers ?
 especially
 https://developer.gnome.org/NetworkManager/0.9/ref-settings.html
 (or try `man nm-settings` if you have the manual pages installed)

Ahh no, I didn't see that, and it seems I wasn't asking Google the right
question. :-)

Is there any reason why those aren't mentioned under the Development
Resources on

https://wiki.gnome.org/action/show/Projects/NetworkManager?action=showredirect=NetworkManager
?

 Probably host name too (not sure if that's doable in NetworkManager).
 
 SaveHostname , see
 https://developer.gnome.org/NetworkManager/0.9/spec.html

Brilliant.  Thanks. :-)
Regards,
-- 
Stuart Longland
Systems Engineer
 _ ___
\  /|_) |   T: +61 7 3535 9619
 \/ | \ | 38b Douglas StreetF: +61 7 3535 9699
   SYSTEMSMilton QLD 4064   http://www.vrt.com.au


___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list


RE: [PATCH 1/1] service: only attempt to load the 'tun' modules if necessary

2014-07-05 Thread John Frankish
 -Original Message-
 From: Thomas Haller [mailto:thal...@redhat.com]
 Sent: Friday, 04 July, 2014 18:28
 To: networkmanager-list@gnome.org; Bastien Nocera
 Cc: John Frankish; Thomas Haller
 Subject: [PATCH 1/1] service: only attempt to load the 'tun' modules if
 necessary
 
 'tun' support might be compiled into the kernel, thus modprobe will always
 fail.
 
 https://mail.gnome.org/archives/networkmanager-list/2014-
 July/msg00014.html
 
 Signed-off-by: Thomas Haller thal...@redhat.com
 ---
  src/nm-openvpn-service.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
 
 diff --git a/src/nm-openvpn-service.c b/src/nm-openvpn-service.c index
 84968e8..b45eb28 100644
 --- a/src/nm-openvpn-service.c
 +++ b/src/nm-openvpn-service.c
 @@ -1623,7 +1623,8 @@ main (int argc, char *argv[])
   if (debug)
   g_message (nm-openvpn-service (version  DIST_VERSION
 ) starting...);
 
 - if (system (/sbin/modprobe tun) == -1)
 + if (   !g_file_test (/sys/class/misc/tun, G_FILE_TEST_EXISTS)
 +  (system (/sbin/modprobe tun) == -1))
   exit (EXIT_FAILURE);
 
   plugin = nm_openvpn_plugin_new ();
 --
 1.9.3
 
Everything works fine now :)

Thanks

___
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list