Commit 4dfd8bbf authored by Philipp Tennigkeit's avatar Philipp Tennigkeit

human readable dpids

parent 4079b95a
Pipeline #2482 passed with stage
in 1 minute and 2 seconds
......@@ -9,6 +9,8 @@ from ryu.ofproto import ofproto_v1_3
from ryu.topology import event, switches
from ryu.topology.api import get_switch, get_link
from ryur.lib.dpid import dpid_to_str
import networkx as nx
from threading import Lock
......@@ -75,7 +77,7 @@ class SPBSwitchApp(app_manager.RyuApp):
out_port =, next_hop)
self._print_event("SWITCH", "Forwarding from {0} to {1} via {2}".format(dpid, next_hop, out_port), ev)
self._print_event("SWITCH", "No path for {0} to {1} from {2}".format(src, dst, dpid), ev)
self._print_event("SWITCH", "No path for {0} to {1} from {2}".format(src, dst, dpid_to_str(dpid)), ev)
out_port = ofproto.OFPP_FLOOD
actions = [parser.OFPActionOutput(out_port)]
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