mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 13:00:31 +01:00
examples: also print type of active connections
This commit is contained in:
parent
296d7f6ec7
commit
f24eee5ee3
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue