summaryrefslogtreecommitdiff
path: root/test/list-interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'test/list-interfaces')
-rwxr-xr-xtest/list-interfaces10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/list-interfaces b/test/list-interfaces
index 2cd0424d..5a1d28fa 100755
--- a/test/list-interfaces
+++ b/test/list-interfaces
@@ -23,4 +23,14 @@ for path in interfaces:
for key in ipv4.keys():
print " IPv4.%s = %s" % (key, ipv4[key])
+ networks = interface.ListNetworks()
+ for i in networks:
+ print " Network.Path = %s" % (i)
+
+ network = dbus.Interface(bus.get_object('org.freedesktop.connman', i),
+ 'org.freedesktop.connman.Network')
+
+ print " Network.Identifier = %s" % (network.GetIdentifier())
+ print " Network.Passphrase = %s" % (network.GetPassphrase())
+
print