of1.3: fix OFPPacketQueue

File "/Users/fujita/git/ryu/ryu/ofproto/ofproto_v1_3_parser.py", line 2649, in OFPPacketQueue
    @clasmethod
NameError: name 'clasmethod' is not defined

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
FUJITA Tomonori 2012-11-22 16:33:20 +09:00
parent 11dad834a0
commit 2bd4e3003c

View File

@ -1454,7 +1454,7 @@ class OFPPacketQueue(MsgBase):
def __init__(self, datapath):
super(OFPPacketQueue, self).__init__(datapath)
@clasmethod
@classmethod
def parser(cls, buf, offset):
(msg.queue_id, msg.port, msg.len) = struct.unpack_from(
ofproto_v1_3.OFP_PACKET_QUEUE_PACK_STR, buf, offset)