Fixed deadlock which appeared at delvif

Before a netdevice  is deleted, I verify if it exists in the switch.

Signed-off-by: Mihaela Martinas <martinas.mihaela21@gmail.com>