Commit 2214a7ba authored by Philipp Tennigkeit's avatar Philipp Tennigkeit

notify on went-down events

parent b09be5ca
Pipeline #2484 passed with stage
in 36 seconds
......@@ -142,13 +142,15 @@ class SPBSwitchApp(app_manager.RyuApp):
@set_ev_cls(event.EventPortDelete, [MAIN_DISPATCHER, CONFIG_DISPATCHER, DEAD_DISPATCHER])
def _ev_port_del_handler(self, ev):
self._print_event("PORT", "Port went down {0}".format(ev), ev)
#self.net.del_edge_by_port(ev.port.dpid, ev.port.port_no)
pass
#pass
@set_ev_cls(event.EventSwitchLeave, [MAIN_DISPATCHER, CONFIG_DISPATCHER, DEAD_DISPATCHER])
def ev_switch_del_handler(self, ev):
self._print_event("SWITCH", "Switch went down {0}".format(ev), ev)
#self.net.del_node(ev.switch.dp.id)
pass
#pass
def _learn_by_ryu_topo(self):
link_list = get_link(self, None)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment