[V2] Moving interface in up state to new namespace raise a 404
Created by: edvgui
When moving an interface to another namespace while the interface is up, the server will bring it down, move it, then put it back up again. The latest action will raise a 404 because the server still tries to find the interface where it used to be, not where it has been found.
The interface is actually moved as expected, but will stay in a down state.
There is already a mechanism to handle those kind of situation in the code: we attach the host the interface is on to each interface object we generate, that way we know on which host to run the next action for this interface. This mechanism has some week points and should be reviewed/improved.
To reproduce it:
- Create an interface
- Bring it up
- Create a namespace
- Update the interface to go into the newly created namespace