Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
ryu/app/simple_switch.py | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/ryu/app/simple_switch.py b/ryu/app/simple_switch.py
index 0397bc4..400092c 100644
--- a/ryu/app/simple_switch.py
+++ b/ryu/app/simple_switch.py
@@ -43,13 +43,8 @@ class SimpleSwitch(app_manager.RyuApp):
def add_flow(self, datapath, in_port, dst, actions):
ofproto = datapath.ofproto
- wildcards = ofproto_v1_0.OFPFW_ALL
- wildcards &= ~ofproto_v1_0.OFPFW_IN_PORT
- wildcards &= ~ofproto_v1_0.OFPFW_DL_DST
-
match = datapath.ofproto_parser.OFPMatch(
- wildcards, in_port, 0, dst,
- 0, 0, 0, 0, 0, 0, 0, 0, 0)
+ in_port=in_port, dl_dst=dst)
mod = datapath.ofproto_parser.OFPFlowMod(
datapath=datapath, match=match, cookie=0,
--
1.8.3.1
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel