mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-05 12:26:11 +02:00
of1.0: simplify OFPActionVendor
vendor value is available as cls_vendor. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
77414c1cc2
commit
9e25097748
@ -459,9 +459,9 @@ class OFPActionVendor(OFPAction):
|
||||
return cls
|
||||
return _register_action_vendor
|
||||
|
||||
def __init__(self, vendor):
|
||||
def __init__(self):
|
||||
super(OFPActionVendor, self).__init__()
|
||||
self.vendor = vendor
|
||||
self.vendor = self.cls_vendor
|
||||
|
||||
@classmethod
|
||||
def parser(cls, buf, offset):
|
||||
@ -484,7 +484,7 @@ class NXActionHeader(OFPActionVendor):
|
||||
return _register_nx_action_subtype
|
||||
|
||||
def __init__(self, subtype_, len_):
|
||||
super(NXActionHeader, self).__init__(ofproto_v1_0.NX_VENDOR_ID)
|
||||
super(NXActionHeader, self).__init__()
|
||||
self.len = len_
|
||||
self.subtype = subtype_
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user