-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
- "org.moblin.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 key in properties.keys():
- if key in ["IPv4", "IPv4.Configuration", "Proxy", "Ethernet"]:
+manager = dbus.Interface(bus.get_object("net.connman", "/"),
+ "net.connman.Manager")
+
+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 list(properties.keys()):
+ if key in ["IPv4", "IPv4.Configuration",
+ "IPv6", "IPv6.Configuration",
+ "Proxy", "Proxy.Configuration",
+ "Ethernet", "Provider",
+ "LastAddressConflict"]: