I have been trying to connect to my company vpn using python (basically so that I can then connect to the database for analysis using pyodbc and pandas) with the following code I found on SO:
import os
os.system('nmcli c up <VPN_NAME>')
where VPN_NAME is a string. A "1" gets printed and nothing happens. Same when I use "down" to try and close the network. Is there something I am missing here? Thanks.