Add a port unless it exists. Delete port if it exists.
Wait until the state turns to be 'running' after poweron an instance.