From 94cea803b00157a8546e02bd39efae1d81a06695 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Mon, 15 Nov 2010 07:30:00 -0200 Subject: [PATCH] test: Allow setting gateway for a static ip address. --- test/set-ip-method | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/set-ip-method b/test/set-ip-method index 0d08e4d..9f202f7 100755 --- a/test/set-ip-method +++ b/test/set-ip-method @@ -25,7 +25,8 @@ if (len(sys.argv) > 3): ipv4_configuration["Address"] = sys.argv[3] if (len(sys.argv) > 4): ipv4_configuration["Netmask"] = sys.argv[4] - +if (len(sys.argv) > 5): + ipv4_configuration["Gateway"] = sys.argv[5] service.SetProperty("IPv4.Configuration", ipv4_configuration) print "New IPv4.Configuration: ", ipv4_configuration -- 2.7.4