sw test tool: Remove unused codes

Signed-off-by: Yuichi Ito <ito.yuichi0@gmail.com>
This commit is contained in:
Yuichi Ito 2014-05-08 14:03:26 +09:00 committed by FUJITA Tomonori
parent f7ca84d4ce
commit 5e60f0250c

View File

@ -1048,14 +1048,11 @@ class OpenFlowSw(object):
self.dp.send_msg(msg)
return msg.xid
def add_flow(self, flow_mod=None, in_port=None, out_port=None):
def add_flow(self, in_port=None, out_port=None):
""" Add flow. """
ofp = self.dp.ofproto
parser = self.dp.ofproto_parser
if flow_mod:
mod = flow_mod
else:
match = parser.OFPMatch(in_port=in_port)
max_len = (0 if out_port != ofp.OFPP_CONTROLLER
else ofp.OFPCML_MAX)