controller, ofproto_v1_0: avoid format for argument
format is defined in builtin, so it should be avoid for argument. use flow_format instead. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Reviewed-by: Simon Horman <simon@horms.net> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
7858adf321
commit
57bd1abe5c
ryu
@ -244,14 +244,14 @@ class Datapath(object):
|
||||
barrier_request = self.ofproto_parser.OFPBarrierRequest(self)
|
||||
self.send_msg(barrier_request)
|
||||
|
||||
def send_nxt_set_flow_format(self, format):
|
||||
assert (format == ofproto_v1_0.NXFF_OPENFLOW10 or
|
||||
format == ofproto_v1_0.NXFF_NXM)
|
||||
if self.flow_format == format:
|
||||
def send_nxt_set_flow_format(self, flow_format):
|
||||
assert (flow_format == ofproto_v1_0.NXFF_OPENFLOW10 or
|
||||
flow_format == ofproto_v1_0.NXFF_NXM)
|
||||
if self.flow_format == flow_format:
|
||||
# Nothing to do
|
||||
return
|
||||
self.flow_format = format
|
||||
set_format = self.ofproto_parser.NXTSetFlowFormat(self, format)
|
||||
self.flow_format = flow_format
|
||||
set_format = self.ofproto_parser.NXTSetFlowFormat(self, flow_format)
|
||||
# FIXME: If NXT_SET_FLOW_FORMAT or NXFF_NXM is not supported by
|
||||
# the switch then an error message will be received. It may be
|
||||
# handled by setting self.flow_format to
|
||||
|
@ -732,10 +732,10 @@ class NXTRequest(OFPVendor):
|
||||
|
||||
|
||||
class NXTSetFlowFormat(NXTRequest):
|
||||
def __init__(self, datapath, format):
|
||||
def __init__(self, datapath, flow_format):
|
||||
super(NXTSetFlowFormat, self).__init__(
|
||||
datapath, ofproto_v1_0.NXT_SET_FLOW_FORMAT)
|
||||
self.format = format
|
||||
self.format = flow_format
|
||||
|
||||
def _serialize_body(self):
|
||||
self.serialize_header()
|
||||
|
Loading…
x
Reference in New Issue
Block a user