summaryrefslogtreecommitdiff
path: root/test/process-context-settings
diff options
context:
space:
mode:
Diffstat (limited to 'test/process-context-settings')
-rwxr-xr-xtest/process-context-settings12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/process-context-settings b/test/process-context-settings
index 8a3ecfa7..1d30b30d 100755
--- a/test/process-context-settings
+++ b/test/process-context-settings
@@ -26,17 +26,17 @@ for path, properties in modems:
print("Configuring %s" % (path))
settings = properties["Settings"]
-
interface = settings["Interface"]
- address = settings["Address"]
- try:
- gateway = settings["Gateway"]
- except:
- gateway = "0.0.0.0";
if settings["Method"] == "dhcp":
print(" Run DHCP on interface %s" % (interface))
else:
+ address = settings["Address"]
+ try:
+ gateway = settings["Gateway"]
+ except:
+ gateway = "0.0.0.0";
+
print(" Interface is %s" % (interface))
print(" IP address is %s" % (address))
print(" Gateway is %s" % (gateway))