blob: bf8f890c6f1664bd52a916b99166847068d2ed54 [file] [log] [blame]
#!/usr/bin/python
import dbus
bus = dbus.SystemBus()
object = dbus.Interface(bus.get_object("org.chromium.flimflam", '/'),
"org.freedesktop.DBus.Introspectable")
print object.Introspect()
manager = dbus.Interface(bus.get_object("org.chromium.flimflam", "/"),
"org.chromium.flimflam.Manager")
properties = manager.GetProperties(utf8_strings = True)
for path in properties["Devices"]:
object = dbus.Interface(bus.get_object("org.chromium.flimflam", path),
"org.freedesktop.DBus.Introspectable")
print object.Introspect()
device = dbus.Interface(bus.get_object("org.chromium.flimflam", path),
"org.chromium.flimflam.Device")
devprops = device.GetProperties(utf8_strings = True)
for ipconfig_path in devprops["IPConfigs"]:
ipconfig = dbus.Interface(
bus.get_object("org.chromium.flimflam", ipconfig_path),
"org.freedesktop.DBus.Introspectable")
print ipconfig.Introspect()