From fede089e939ba9e193bb6a866cd0dfb6dd9f4de6 Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Tue, 22 Dec 2015 14:13:16 +0900 Subject: 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 Signed-off-by: FUJITA Tomonori --- ryu/controller/ofp_handler.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ryu/controller/ofp_handler.py b/ryu/controller/ofp_handler.py index cc64b1f4..a7068cf2 100644 --- a/ryu/controller/ofp_handler.py +++ b/ryu/controller/ofp_handler.py @@ -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) -- cgit v1.2.3