mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 18:40:05 +01:00
"examples/python/gi/checkpoint.py" is not only an example. It's also a useful script for testing checkpoints. Support a "--last" argument to specify the last checkpoint created. Otherwise, when you are using this example from a test script, it can be cumbersome to find the right checkpoint point. Also, rename "client" and "nm_client" variables to "nmc". The purpose of using the same variable name for the same thing is readability, but also it works better when copy+paste snippets into the Python REPL. |
||
|---|---|---|
| .. | ||
| add_connection.py | ||
| checkpoint.py | ||
| deactivate-all.py | ||
| device-state-ip4config.py | ||
| dns.py | ||
| firewall-zone.py | ||
| get-active-connections.py | ||
| get-devices.py | ||
| get-interface-flags.py | ||
| get-lldp-neighbors.py | ||
| get_ips.py | ||
| list-connections.py | ||
| nm-add-connection2.py | ||
| nm-connection-update-stable-id.py | ||
| nm-keyfile.py | ||
| nm-up-many.py | ||
| nm-update2.py | ||
| nm-wg-set | ||
| ovs-external-ids.py | ||
| README | ||
| setting-user-data.py | ||
| show-wifi-networks.py | ||
| update-ip4-method.py | ||
| vpn-import.py | ||
| wifi-p2p.py | ||
These examples show how to call libnm from Python using GObject introspection.