How to do equivalent of nmcli connection up 'Wired connection 2'? #70
Answered
by
ict-rhys-williams
ict-rhys-williams
asked this question in
Q&A
|
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 |
Answered by
ict-rhys-williams
Mar 2, 2025
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. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: