Do not allow router port to be deleted until reference from router has b...

...een removed