Delete associated ports after deleting a node.

Fixes: bug #1191049

Change-Id: Id798eae421210a9f25dbc827d3771577c9fcf998
Merge "Delete associated ports after deleting a node."