I tried to execute rest_router.py.
However, the MAC Address of the packet which acts as a forward is inaccurate.
Specifically, the MAC Address is ASCII-Code instead of Binary-Code.
Then, I corrected as follows.
=== start ===
--- rest_router.py.org 2013-10-28 14:51:15.000000000 +0900
+++ rest_router.py 2013-10-28 14:57:37.284639377 +0900
@@ -1766,10 +1766,12 @@
if src_mac:
set_src = ofp_parser.OFPMatchField.make(ofp.OXM_OF_ETH_SRC,
src_mac)
+ set_src.value = mac_lib.haddr_to_bin(set_src.value) # add !!!
actions.append(ofp_parser.OFPActionSetField(set_src))
if dst_mac:
set_dst = ofp_parser.OFPMatchField.make(ofp.OXM_OF_ETH_DST,
dst_mac)
+ set_dst.value = mac_lib.haddr_to_bin(set_dst.value) # add !!!
actions.append(ofp_parser.OFPActionSetField(set_dst))
if outport is not None:
actions.append(ofp_parser.OFPActionOutput(outport, 0))
=== end ===
It seems that it has executed correctly by the upper correction now.
The version of a switch is OpenflowV1.2.
Is it satisfactory? Is there any point which should be corrected to others?
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel