dnsproxy: Only one copy of the relevant buffers will be made to a TCP request
[framework/connectivity/connman.git] / test / list-services
index c4ae5d7..6be4945 100755 (executable)
@@ -25,18 +25,14 @@ def extract_list(list):
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                       "org.moblin.connman.Manager")
+manager = dbus.Interface(bus.get_object("net.connman", "/"),
+                                       "net.connman.Manager")
 
-properties = manager.GetProperties()
-
-for path in properties["Services"]:
-       service = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Service")
-
-       properties = service.GetProperties()
-
-       print "[ %s ]" % (path)
+for path, properties in manager.GetServices():
+       service = dbus.Interface(bus.get_object("net.connman", path),
+                                               "net.connman.Service")
+       identifier = path[path.rfind("/") + 1:]
+       print "[ %s ]" % (identifier)
 
        for key in properties.keys():
                if key in ["IPv4", "IPv4.Configuration",
@@ -45,11 +41,12 @@ for path in properties["Services"]:
                                                "Ethernet", "Provider"]:
                        val = extract_values(properties[key])
                elif key in ["Nameservers", "Nameservers.Configuration",
-                                       "Domains", "Domains.Configuration"]:
+                            "Domains", "Domains.Configuration",
+                            "Timeservers", "Timeservers.Configuration",
+                            "Security"]:
                        val = extract_list(properties[key])
                elif key in ["Favorite", "Immutable", "AutoConnect",
-                                       "LoginRequired", "SetupRequired",
-                                                       "PassphraseRequired"]:
+                                       "LoginRequired", "PassphraseRequired"]:
                        if properties[key] == dbus.Boolean(1):
                                val = "true"
                        else: