examples: also print type of active connections
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user