mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 13:56:09 +02:00
ofp_handler: Remove sending SET_CONFIG message
Because Ryu always sends SET_CONFIG message when a datapath connecting, the switch configurations of user applications will be overwritten by the default values of Ryu when the datapath re-connecting. This patch removes sending SET_CONFIG message from ofp_handler and avoids this problem. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
d736b830b9
commit
fede089e93
@ -206,14 +206,6 @@ class OFPHandler(ryu.base.app_manager.RyuApp):
|
||||
else:
|
||||
datapath.ports = {}
|
||||
|
||||
ofproto = datapath.ofproto
|
||||
ofproto_parser = datapath.ofproto_parser
|
||||
set_config = ofproto_parser.OFPSetConfig(
|
||||
datapath, ofproto.OFPC_FRAG_NORMAL,
|
||||
128 # TODO:XXX
|
||||
)
|
||||
datapath.send_msg(set_config)
|
||||
|
||||
if datapath.ofproto.OFP_VERSION < 0x04:
|
||||
self.logger.debug('move onto main mode')
|
||||
ev.msg.datapath.set_state(MAIN_DISPATCHER)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user