Changes v1 -> v2:

- correct the following expression


The measure against the default priority of OFPFlowMod of OFP1.2/1.3 being 0.

Signed-off-by: Yuichi Ito <[email protected]>
---
 ryu/lib/lacplib.py |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/ryu/lib/lacplib.py b/ryu/lib/lacplib.py
index 9b1600f..48859c0 100644
--- a/ryu/lib/lacplib.py
+++ b/ryu/lib/lacplib.py
@@ -300,7 +300,8 @@ class LacpLib(app_manager.RyuApp):
         mod = parser.OFPFlowMod(
             datapath=datapath, match=match, cookie=0,
             command=ofproto.OFPFC_ADD, idle_timeout=timeout,
-            flags=ofproto.OFPFF_SEND_FLOW_REM, actions=actions)
+            priority=65535, flags=ofproto.OFPFF_SEND_FLOW_REM,
+            actions=actions)
         datapath.send_msg(mod)

     def _add_flow_v1_2(self, src, port, timeout, datapath):
@@ -317,8 +318,9 @@ class LacpLib(app_manager.RyuApp):
             ofproto.OFPIT_APPLY_ACTIONS, actions)]
         mod = parser.OFPFlowMod(
             datapath=datapath, command=ofproto.OFPFC_ADD,
-            idle_timeout=timeout, flags=ofproto.OFPFF_SEND_FLOW_REM,
-            match=match, instructions=inst)
+            idle_timeout=timeout, priority=65535,
+            flags=ofproto.OFPFF_SEND_FLOW_REM, match=match,
+            instructions=inst)
         datapath.send_msg(mod)

     #-------------------------------------------------------------------
-- 
1.7.10.4


------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to