mirror of git://git.sysmocom.de/ofono
test: Update list-contexts to the new API
This commit is contained in:
parent
bc0cc47608
commit
4b972b3f7a
|
@ -24,13 +24,16 @@ for path, properties in modems:
|
||||||
print " [ %s ]" % (path)
|
print " [ %s ]" % (path)
|
||||||
|
|
||||||
for key in properties.keys():
|
for key in properties.keys():
|
||||||
if key in ["Settings"]:
|
if key in ["Settings"] or key in ["IPv6.Settings"]:
|
||||||
val = "{"
|
val = "{"
|
||||||
for i in properties[key].keys():
|
for i in properties[key].keys():
|
||||||
val += " " + i + "="
|
val += " " + i + "="
|
||||||
if i in ["DomainNameServers"]:
|
if i in ["DomainNameServers"]:
|
||||||
for n in properties[key][i]:
|
for n in properties[key][i]:
|
||||||
val += n + ","
|
val += n + ","
|
||||||
|
elif i in ["PrefixLength"]:
|
||||||
|
p = int(properties[key][i])
|
||||||
|
val += str(p)
|
||||||
else:
|
else:
|
||||||
val += properties[key][i]
|
val += properties[key][i]
|
||||||
val += " }"
|
val += " }"
|
||||||
|
|
Loading…
Reference in New Issue