mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-21 12:10:09 +01:00
It's an example for how to use libnm and asynchronous API.
But it's also a script I will use to test activating many
profiles in parallel.
Also add a test script that creates many veth interfaces and connection
profiles. So now you can do:
sudo NUM_DEVS=100 contrib/scripts/test-create-many-device-setup.sh setup
./examples/python/gi/nm-up-many.py c-a{1..100}
and cleanup with
nmcli connection down c-a{1..100}
sudo contrib/scripts/test-create-many-device-setup.sh cleanup
Of course, be careful to do this on your production machine.
|
||
|---|---|---|
| .. | ||
| 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.