diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2015-12-22 14:13:16 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-12-22 14:13:16 +0900 |
commit | fede089e939ba9e193bb6a866cd0dfb6dd9f4de6 (patch) | |
tree | 8be2fe42b12b3f993db322d4e0bfddf5c6784116 | |
parent | d736b830b966c349489fa4079cbac05284abcedc (diff) |
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>
-rw-r--r-- | ryu/controller/ofp_handler.py | 8 |
1 files changed, 0 insertions, 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) |