summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2013-05-09 16:20:31 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-05-10 00:31:46 +0900
commit77414c1cc2bb532a024207358f5961951113ac12 (patch)
tree0d06b8d5925d79e76af475836dad5fdfbd2e2558
parent95963e3cedeb9b7371770414037654e675f325ff (diff)
of1.0: NXActionHeader should be subclass of OFPActionVendor
Because NXActionHeader is extention to OFPActionVendor. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/ofproto/ofproto_v1_0_parser.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ryu/ofproto/ofproto_v1_0_parser.py b/ryu/ofproto/ofproto_v1_0_parser.py
index aa0eaea1..96781ff8 100644
--- a/ryu/ofproto/ofproto_v1_0_parser.py
+++ b/ryu/ofproto/ofproto_v1_0_parser.py
@@ -472,7 +472,7 @@ class OFPActionVendor(OFPAction):
@OFPActionVendor.register_action_vendor(ofproto_v1_0.NX_VENDOR_ID)
-class NXActionHeader(object):
+class NXActionHeader(OFPActionVendor):
_NX_ACTION_SUBTYPES = {}
@staticmethod
@@ -484,9 +484,8 @@ class NXActionHeader(object):
return _register_nx_action_subtype
def __init__(self, subtype_, len_):
- self.type = ofproto_v1_0.OFPAT_VENDOR
+ super(NXActionHeader, self).__init__(ofproto_v1_0.NX_VENDOR_ID)
self.len = len_
- self.vendor = ofproto_v1_0.NX_VENDOR_ID
self.subtype = subtype_
def serialize(self, buf, offset):