Commit 80c9c1d4 authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Useful tool

parent a9b42cf5
#!/usr/bin/python3
import NetworkManager
from pprint import pprint
if __name__ == '__main__':
for d in NetworkManager.NetworkManager.AllDevices:
print(d)
for c in NetworkManager.Settings.ListConnections():
s = c.GetSettings()
print(s['connection']['id'])
pprint(s)
print()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment