some fix the the port int problem
now the port objects are held in a dict...
maybe need to clean the dict when dpid goes down?