How to do equivalent of nmcli connection up 'Wired connection 2'? #70
-
Hi, I can set the IP etc on my interface and apply to the bus:
However to get the device to use the new IP, I have to issue How can this command by sent via the python AP? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @ict-rhys-williams I believe you will need to activate the connection from the main NetworkManager object. So it should be something like this If the connection is already running you will need to deactivate it first and then activate. |
Beta Was this translation helpful? Give feedback.
Thanks so much .. that did the job! You don't need to deactivate on the linux I'm using.
Here is the update code should anyone else need it: