[PATCH 3/3 v3] Add VPNC test script support

Mohamed Abbas mabbas at linux.intel.com
Tue Jan 18 03:28:52 PST 2011


initial
---
 test/connect-vpn |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/test/connect-vpn b/test/connect-vpn
index a43c4cd..3cc0b34 100755
--- a/test/connect-vpn
+++ b/test/connect-vpn
@@ -40,6 +40,15 @@ elif sys.argv[1] == "openvpn":
 					"OpenVPN.CACert": sys.argv[5],
 					"OpenVPN.Cert": sys.argv[6],
 					"OpenVPN.Key": sys.argv[7]}))
+elif sys.argv[1] == "vpnc":
+	path = manager.ConnectProvider(({ "Type": "vpnc",
+					"Name": sys.argv[2],
+					"Host": sys.argv[3],
+					"VPN.Domain": sys.argv[4],
+					"VPNC.IPSec.ID": sys.argv[5],
+					"VPNC.IPSec.Secret": sys.argv[6],
+					"VPNC.Xauth.Username": sys.argv[7],
+					"VPNC.Xauth.Password": sys.argv[8]}))
 else:
 	print "Unknown VPN type"
 	sys.exit(1)
-- 
1.7.3.4




More information about the connman mailing list