test: Allow setting gateway for a static ip address.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 15 Nov 2010 09:30:00 +0000 (07:30 -0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 16 Nov 2010 13:45:22 +0000 (14:45 +0100)
test/set-ip-method

index 0d08e4d..9f202f7 100755 (executable)
@@ -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