examples: also print type of active connections

This commit is contained in:
Jiří Klimeš
2014-03-03 14:28:51 +01:00
parent 296d7f6ec7
commit f24eee5ee3

View File

@@ -49,7 +49,7 @@ for a in active:
c_proxy = bus.get_object("org.freedesktop.NetworkManager", connection_path)
connection = dbus.Interface(c_proxy, "org.freedesktop.NetworkManager.Settings.Connection")
settings = connection.GetSettings()
print "%s (%s)" % (settings['connection']['id'], uuid)
print "%s (%s) - %s" % (settings['connection']['id'], uuid, settings['connection']['type'])
if len(active) == 0:
print "No active connections"