...
 
Commits (2)
......@@ -47,4 +47,4 @@ fi
echo -e "\r\n\r\n"
echo -e "Starting ${APPABSPATH}\r\n"
ryu-manager ${APPABSPATH} --observe-links
$(which ryu-manager) ${APPABSPATH} --observe-links
......@@ -178,7 +178,8 @@ class SPBSwitchApp(app_manager.RyuApp):
def _learn_by_ryu_topo(self):
link_list = get_link(self, None)
self._print_event("TOPOLOGY", "{}".format(link_list), None)
switch_list = get_switch(self, None)
self._print_event("TOPOLOGY", "{} {}".format(switch_list, link_list), None)
for link in link_list:
self._print_event("TOPOLOGY", "Learning ({0}, {1}, {2}), ({1}, {0}, {3})".format(
link.src.dpid, link.dst.dpid, link.src.port_no, link.dst.port_no
......