Commit 51465f89 authored by Philipp Tennigkeit's avatar Philipp Tennigkeit

notify on switch, port up

parent 2214a7ba
Pipeline #2485 passed with stage
in 1 minute and 12 seconds
......@@ -134,10 +134,12 @@ class SPBSwitchApp(app_manager.RyuApp):
@set_ev_cls(event.EventPortAdd, [MAIN_DISPATCHER, CONFIG_DISPATCHER, DEAD_DISPATCHER])
def _ev_port_add_handler(self, ev):
self._print_event("PORT", "PORT came up {0}".format(ev), ev)
self._learn_by_ryu_topo()
@set_ev_cls(event.EventSwitchEnter, [MAIN_DISPATCHER, CONFIG_DISPATCHER, DEAD_DISPATCHER])
def ev_switch_add_handler(self, ev):
self._print_event("SWITCH", "Switch came up {0}".format(ev), ev)
self._learn_by_ryu_topo()
@set_ev_cls(event.EventPortDelete, [MAIN_DISPATCHER, CONFIG_DISPATCHER, DEAD_DISPATCHER])
......
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