Commit 8a23c60e authored by Philipp Tennigkeit's avatar Philipp Tennigkeit

notify on learning from endpoints

parent a8d00cf2
Pipeline #2488 passed with stage
in 1 minute and 9 seconds
......@@ -64,6 +64,13 @@ class SPBSwitchApp(app_manager.RyuApp):
# learn (src, first_hop), (first_hop, src, port)
#####################################################
if not self.net.has_node(src):
self._print_event(
"ENDPOINT",
"Endpoint {0} injected a packet for {1} on Switch {2} at Port {3}".format(
src, dst, dpid, in_port
), ev
)
self.net.add_edge(dpid, src, ev.msg.match['in_port'])
self.net.add_edge(src, dpid, 0)
......
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