summaryrefslogtreecommitdiffstats
path: root/test/list-contexts
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-03-10 22:07:21 -0600
committerDenis Kenzior <denkenz@gmail.com>2011-03-15 17:11:59 -0500
commit4b972b3f7a8adcb6849c25123af34cf65d974308 (patch)
treedc451ddb4b564d25fdb07562472e774c510371a6 /test/list-contexts
parentbc0cc47608e514cca8d623f4619c1e395e21063b (diff)
downloadofono-4b972b3f7a8adcb6849c25123af34cf65d974308.tar.bz2
test: Update list-contexts to the new API
Diffstat (limited to 'test/list-contexts')
-rwxr-xr-xtest/list-contexts5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/list-contexts b/test/list-contexts
index 68dae6a7..ed4af882 100755
--- a/test/list-contexts
+++ b/test/list-contexts
@@ -24,13 +24,16 @@ for path, properties in modems:
print " [ %s ]" % (path)
for key in properties.keys():
- if key in ["Settings"]:
+ if key in ["Settings"] or key in ["IPv6.Settings"]:
val = "{"
for i in properties[key].keys():
val += " " + i + "="
if i in ["DomainNameServers"]:
for n in properties[key][i]:
val += n + ","
+ elif i in ["PrefixLength"]:
+ p = int(properties[key][i])
+ val += str(p)
else:
val += properties[key][i]
val += " }"