looks like a regression in commit db40bc0f98abc84dcdbd3fa4d19aa573d94188d9.
(rest_router: follow packet lib api change)

Signed-off-by: YAMAMOTO Takashi <yamam...@valinux.co.jp>
---
 ryu/app/rest_router.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ryu/app/rest_router.py b/ryu/app/rest_router.py
index 758c7ee..6bc5717 100644
--- a/ryu/app/rest_router.py
+++ b/ryu/app/rest_router.py
@@ -1628,18 +1628,18 @@ class OfCtl_v1_0(OfCtl):
             v = (32 - src_mask) << ofp.OFPFW_NW_SRC_SHIFT | \
                 ~ofp.OFPFW_NW_SRC_MASK
             wildcards &= v
+            nw_src = ipv4_text_to_int(nw_src),
         if nw_dst:
             v = (32 - dst_mask) << ofp.OFPFW_NW_DST_SHIFT | \
                 ~ofp.OFPFW_NW_DST_MASK
             wildcards &= v
+            nw_dst = ipv4_text_to_int(nw_dst),
         if nw_proto:
             wildcards &= ~ofp.OFPFW_NW_PROTO
 
         match = ofp_parser.OFPMatch(wildcards, 0, 0, dl_dst, dl_vlan, 0,
                                     dl_type, 0, nw_proto,
-                                    ipv4_text_to_int(nw_src),
-                                    ipv4_text_to_int(nw_dst),
-                                    0, 0)
+                                    nw_src, nw_dst, 0, 0)
         actions = actions or []
 
         m = ofp_parser.OFPFlowMod(self.dp, match, cookie, cmd,
-- 
1.8.3.1


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to