mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-01-24 18:11:24 +01:00
nx_actions: Remove redundant initializations
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
cbb387f8eb
commit
820a7cf75c
@ -64,7 +64,6 @@ def generate(ofp_name, ofpp_name):
|
||||
class NXActionUnknown(NXAction):
|
||||
def __init__(self, subtype, data=None,
|
||||
type_=None, len_=None, experimenter=None):
|
||||
self.subtype = subtype
|
||||
super(NXActionUnknown, self).__init__()
|
||||
self.data = data
|
||||
|
||||
@ -93,8 +92,6 @@ def generate(ofp_name, ofpp_name):
|
||||
def __init__(self, src_field, dst_field, n_bits, src_ofs=0, dst_ofs=0,
|
||||
type_=None, len_=None, experimenter=None, subtype=None):
|
||||
super(NXActionRegMove, self).__init__()
|
||||
self.experimenter = ofproto_common.NX_EXPERIMENTER_ID
|
||||
self.subtype = self.subtype
|
||||
self.n_bits = n_bits
|
||||
self.src_ofs = src_ofs
|
||||
self.dst_ofs = dst_ofs
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user