From fc00f7c9cf2eea2449d70ad984d6b2c330c32393 Mon Sep 17 00:00:00 2001 From: Zhang Dongya Date: Sun, 3 Mar 2013 12:04:50 +0000 Subject: [PATCH] add missing 'field' parameter to __init__ function of OFPActionSetField Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_v1_3_parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index bec72344..9d06d331 100644 --- a/ryu/ofproto/ofproto_v1_3_parser.py +++ b/ryu/ofproto/ofproto_v1_3_parser.py @@ -1825,8 +1825,9 @@ class OFPActionPopMpls(OFPAction): @OFPAction.register_action_type(ofproto_v1_3.OFPAT_SET_FIELD, ofproto_v1_3.OFP_ACTION_SET_FIELD_SIZE) class OFPActionSetField(OFPAction): - def __init__(self): + def __init__(self, field): super(OFPActionSetField, self).__init__() + set.field = field @classmethod def parser(cls, buf, offset):