summaryrefslogtreecommitdiff
path: root/test/monitor-services
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-05-12 20:13:31 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-05-12 20:13:31 +0200
commit8ef138ed47359f81dd6143a20d39ef249bf75dcd (patch)
treee67efbb918e334a5671cfb2613198a3a5a968fb5 /test/monitor-services
parent1eae10743f813bf0cb7aaef12fb5e6cdc489f6de (diff)
downloadconnman-8ef138ed47359f81dd6143a20d39ef249bf75dcd.tar.gz
connman-8ef138ed47359f81dd6143a20d39ef249bf75dcd.tar.bz2
connman-8ef138ed47359f81dd6143a20d39ef249bf75dcd.zip
Add support for setting manual DNS server configuration
Diffstat (limited to 'test/monitor-services')
-rwxr-xr-xtest/monitor-services9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/monitor-services b/test/monitor-services
index f1d7cf1c..5657444c 100755
--- a/test/monitor-services
+++ b/test/monitor-services
@@ -13,6 +13,13 @@ def extract_values(values):
val += " }"
return val
+def extract_list(list):
+ val = "["
+ for i in list:
+ val += " " + str(i)
+ val += " ]"
+ return val
+
def property_changed(name, value, path):
service = path[path.rfind("/") + 1:]
if name in ["Profiles", "Services", "Providers", "Technologies",
@@ -23,6 +30,8 @@ def property_changed(name, value, path):
val = val + " ]"
elif name in ["IPv4", "IPv4.Configuration", "Proxy", "Ethernet"]:
val = extract_values(value)
+ elif name in ["Nameservers", "Nameservers.Configuration"]:
+ val = extract_list(value)
elif name in ["Strength", "Priority"]:
val = int(value)
else: