diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-11-23 15:08:37 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-11-23 15:08:37 +0100 |
commit | 1fed4a5ebc54427591c7f7eadee8d5b900c1d8fc (patch) | |
tree | b056134c1a88243ffacc68f8fc926fe1cc7bc974 | |
parent | 3b665a3511198458b350528d800c5a8e875e586b (diff) | |
download | connman-1fed4a5ebc54427591c7f7eadee8d5b900c1d8fc.tar.gz connman-1fed4a5ebc54427591c7f7eadee8d5b900c1d8fc.tar.bz2 connman-1fed4a5ebc54427591c7f7eadee8d5b900c1d8fc.zip |
Add test script for showing connection details
-rwxr-xr-x | test/list-connections | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/list-connections b/test/list-connections new file mode 100755 index 00000000..806490db --- /dev/null +++ b/test/list-connections @@ -0,0 +1,23 @@ +#!/usr/bin/python + +import dbus + +bus = dbus.SystemBus() + +manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"), + "org.moblin.connman.Manager") + +properties = manager.GetProperties() + +for path in properties["Connections"]: + connection = dbus.Interface(bus.get_object("org.moblin.connman", path), + "org.moblin.connman.Connection") + + properties = connection.GetProperties() + + print "[ %s ]" % (path) + + for key in properties.keys(): + print " %s = %s" % (key, properties[key]) + + print |