- for key in properties.keys():
- if key in ["IPv4", "IPv4.Configuration", "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"]: