Currently, the handle_port_desc function, it's not considering whichever the port state of the event is, it's assuming it's active, so if you have an interface that's admin disabled it'll end up as active even though it's not in practice, so this will lead to issues since NApps might will incorrectly try to use an active interface that's in practice is down.
How to reproduce the issue
If you start a switch with a disabled interface in the real switch you should see the issue, here's an example of s1 with interface s1-eth2 disabled on OvS:
Currently, the
handle_port_desc
function, it's not considering whichever the port state of the event is, it's assuming it's active, so if you have an interface that's admin disabled it'll end up as active even though it's not in practice, so this will lead to issues since NApps might will incorrectly try to use an active interface that's in practice is down.How to reproduce the issue
If you start a switch with a disabled interface in the real switch you should see the issue, here's an example of
s1
with interfaces1-eth2
disabled on OvS:Here's an EVC that got provisioned over
s1-eth2
since the topology has an incorrect state for it:Workaround
As an workaround, since port status are being upated correctly, if you perform a shut/no-shut it should update the state of the interface accordingly