'Track changes to switch ports'

def _handle_openflow_PortStatus(self, event):

    if event.added:
        self.add_port(event.dpid, event.port, event.ofp.desc.hw_addr)
    elif event.deleted:
        self.del_port(event.dpid, event.port)
