mirror of git://git.sysmocom.de/ofono
test: Fix up process-context-settings
This commit is contained in:
parent
3b7cbabd94
commit
2f112eaa9b
|
@ -26,17 +26,17 @@ for path, properties in modems:
|
||||||
print("Configuring %s" % (path))
|
print("Configuring %s" % (path))
|
||||||
|
|
||||||
settings = properties["Settings"]
|
settings = properties["Settings"]
|
||||||
|
|
||||||
interface = settings["Interface"]
|
interface = settings["Interface"]
|
||||||
|
|
||||||
|
if settings["Method"] == "dhcp":
|
||||||
|
print(" Run DHCP on interface %s" % (interface))
|
||||||
|
else:
|
||||||
address = settings["Address"]
|
address = settings["Address"]
|
||||||
try:
|
try:
|
||||||
gateway = settings["Gateway"]
|
gateway = settings["Gateway"]
|
||||||
except:
|
except:
|
||||||
gateway = "0.0.0.0";
|
gateway = "0.0.0.0";
|
||||||
|
|
||||||
if settings["Method"] == "dhcp":
|
|
||||||
print(" Run DHCP on interface %s" % (interface))
|
|
||||||
else:
|
|
||||||
print(" Interface is %s" % (interface))
|
print(" Interface is %s" % (interface))
|
||||||
print(" IP address is %s" % (address))
|
print(" IP address is %s" % (address))
|
||||||
print(" Gateway is %s" % (gateway))
|
print(" Gateway is %s" % (gateway))
|
||||||
|
|
Loading…
Reference in New Issue