Open bmmarugg opened 4 years ago
Note: I'm not overly familiar with python, but I think I found the issue.
Interfaces now have a field called UnPluggable
which controls if it should be 'down' or 'unplugged.' If you leave Unpluggable
as 'false' then at the next polling, the correctly interpreted status (Down) is assigned.
What you need to do is flip the UnPluggable
to 'true' (meaning: this interface should be shown as unplugged). Then you can flip the status if you like or just wait for the next polling to do it for you.
You might also be able to run a faster query:
"SELECT InterfaceID, UnPluggable, Caption, Status, InterfaceAlias FROM Orion.NPM.Interfaces WHERE Status = 2 AND UnPluggable = 'false' AND NodeID = {node_choice}"
Ever since upgrading to 2019.4, my Python script that sets interfaces on a node that are in the "Down" state to the "Unplugged" state isn't working. The script will run and the Down interfaces will be transitioned to the Unplugged state, but will immediately transition back to the Down state after only a few seconds. sw_unplugged_script.txt