From 4b972b3f7a8adcb6849c25123af34cf65d974308 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 10 Mar 2011 22:07:21 -0600 Subject: [PATCH] test: Update list-contexts to the new API --- test/list-contexts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 += " }"