NetworkManager/examples/python/gi
Thomas Haller be4b997e4f
examples: add "examples/python/gi/nm-up-many.py"
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.
2021-06-11 22:48:41 +02:00
..
add_connection.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
checkpoint.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
deactivate-all.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
device-state-ip4config.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
dns.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
firewall-zone.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
get-active-connections.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
get-devices.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
get-interface-flags.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
get-lldp-neighbors.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
get_ips.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
list-connections.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nm-add-connection2.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nm-connection-update-stable-id.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nm-keyfile.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nm-up-many.py examples: add "examples/python/gi/nm-up-many.py" 2021-06-11 22:48:41 +02:00
nm-update2.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nm-wg-set all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
ovs-external-ids.py examples/trivial: fix black formatting of python code 2021-05-27 14:08:47 +02:00
README examples: add README for examples/python/gi 2015-12-07 15:59:20 +01:00
setting-user-data.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
show-wifi-networks.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
update-ip4-method.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
vpn-import.py examples: use python3 compatible exception syntax 2021-03-16 07:55:12 +01:00
wifi-p2p.py all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00

These examples show how to call libnm from Python using
GObject introspection.