Fix NXAactionOutputReg parser

Pass the proper variable.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
FUJITA Tomonori 2012-05-21 17:27:22 +09:00
parent 9b8c61f47a
commit f68cdbfc04

View File

@ -681,7 +681,7 @@ class NXActionOutputReg(NXActionHeader):
(type_, len_, vendor, subtype, ofs_nbits, src,
max_len) = struct.unpack_from(
ofproto_v1_0.NX_ACTION_OUTPUT_REG_PACK_STR, buf, offset)
return cls(subtype, ofs_nbits, src)
return cls(ofs_nbits, src, max_len)
class OFPDescStats(collections.namedtuple('OFPDescStats',