summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZhang Dongya <fortitude.zhang@gmail.com>2013-03-03 12:04:50 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-03-03 13:59:53 +0900
commitfc00f7c9cf2eea2449d70ad984d6b2c330c32393 (patch)
tree1600683aa963c05dd674712e65d2af20b5c36350
parent93ae92dca049e2e1d4e5bd715ee24445fd156378 (diff)
add missing 'field' parameter to __init__ function of OFPActionSetField
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/ofproto/ofproto_v1_3_parser.py3
1 files changed, 2 insertions, 1 deletions
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):