diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-05-14 21:02:10 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-05-14 22:15:55 +0900 |
commit | af6d24c7b77ee7a2674e17bb6e5080f8c430c29b (patch) | |
tree | fdb2d1b64f0f08c9c4ccb9cc88c1c611f0eaf81d | |
parent | 50df478ce5ed475c2ddbaa13c594703cdaa200fd (diff) |
fix NXActionRegLoad parser
fix a syntax bug and typo.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/ofproto/ofproto_v1_0_parser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ryu/ofproto/ofproto_v1_0_parser.py b/ryu/ofproto/ofproto_v1_0_parser.py index b890842f..929da09b 100644 --- a/ryu/ofproto/ofproto_v1_0_parser.py +++ b/ryu/ofproto/ofproto_v1_0_parser.py @@ -525,9 +525,9 @@ class NXActionRegLoad(NXActionHeader): @classmethod def parser(cls, buf, offset): - type_, len_, vendor, subtype, ofs_nbits, dst, - value = struct.unpack_from( - ofprot_v1_0.NX_ACTION_REG_LOAD_PACK_STR, buf, offset) + (type_, len_, vendor, subtype, ofs_nbits, dst, + value) = struct.unpack_from( + ofproto_v1_0.NX_ACTION_REG_LOAD_PACK_STR, buf, offset) return cls(ofs_nbits, dst, value) |