def get_protocols(self, protocol):
        if isinstance(protocol, packet_base.PacketBase):
            protocol = protocol.__class__
        assert issubclass(protocol, packet_base.PacketBase)
        return [p for p in self.protocols if isinstance(p, protocol)]
Returns a list of protocols that matches to the specified protocol.
dataset/ETHPy150Open osrg/ryu/ryu/lib/packet/packet.py/Packet.get_protocols