6 if (len(sys.argv) < 4):
7 print "Usage: %s <name> <host> <cookie> [cafile]" % (sys.argv[0])
10 bus = dbus.SystemBus()
12 manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
13 "org.moblin.connman.Manager")
15 print "Attempting to connect service %s" % (sys.argv[1])
17 if (len(sys.argv) > 4):
18 path = manager.ConnectProvider(({ "Type": "openconnect", "Name": sys.argv[1],
19 "OpenConnect.Host": sys.argv[2],
20 "OpenConnect.Cookie": sys.argv[3],
21 "OpenConnect.CACert": sys.argv[4],
22 "VPN.Domain": "intel.com"}))
24 path = manager.ConnectProvider(({ "Type": "openconnect", "Name": sys.argv[1],
25 "OpenConnect.Host": sys.argv[2],
26 "OpenConnect.Cookie": sys.argv[3],
27 "VPN.Domain": "intel.com"}))
29 print "Provider path is %s" %(path)