'Handles packet in messages from the switch.'

def _handle_PacketIn(self, event):

    packet = event.parsed
    if (not packet.parsed):
        log.warning('Ignoring    incomplete    packet')
        return
    packet_in = event.ofp
    self.act_like_hub(packet, packet_in)
