Signed-off-by: Isaku Yamahata <[email protected]>
---
 ryu/app/discovery.py |   22 ----------------------
 1 files changed, 0 insertions(+), 22 deletions(-)

diff --git a/ryu/app/discovery.py b/ryu/app/discovery.py
index 2d91488..f2c9732 100644
--- a/ryu/app/discovery.py
+++ b/ryu/app/discovery.py
@@ -321,18 +321,6 @@ class Discovery(app_manager.RyuApp):
                     rule=rule, cookie=0, command=ofproto.OFPFC_ADD,
                     idle_timeout=0, hard_timeout=0, actions=actions)
 
-            # At this moment, ports aren't known.
-            # Send stats requests to get ports information.
-            features_request = dp.ofproto_parser.OFPFeaturesRequest(dp)
-            dp.send_msg(features_request)
-            # LOG.debug('dp_handler %s sent', ev)
-        else:
-            ports = self.port_set.get_dp_port(dp)
-            for port_no in ports:
-                self._port_deleted(dp, port_no)
-            if ports:
-                self.lldp_event.set()
-
     def _port_added(self, dp, port):
         port_no = port.port_no
         lldp_data = LLDPPacket.lldp_packet(
@@ -342,16 +330,6 @@ class Discovery(app_manager.RyuApp):
         LOG.debug('_port_added %s %s, %s',
                   dpid_to_str(dp.id), port_no, is_down)
 
-    @handler.set_ev_cls(ofp_event.EventOFPSwitchFeatures,
-                        handler.MAIN_DISPATCHER)
-    def switch_features_handler(self, ev):
-        msg = ev.msg
-        dp = msg.datapath
-        # LOG.debug('switch_features %s %s', ev, msg)
-        for port in msg.ports.values():
-            self._port_added(dp, port)
-        self.lldp_event.set()
-
     @handler.set_ev_cls(dpset.EventPortAdd, dpset.DPSET_EV_DISPATCHER)
     def port_add_handler(self, ev):
         dp = ev.dp
-- 
1.7.1.1


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to