From 5b1a2651bb6322d63b853cfd8acfe539de3bf926 Mon Sep 17 00:00:00 2001 From: Alan Quillin Date: Mon, 12 Jan 2015 12:49:28 -0600 Subject: [PATCH] of_v1_0: Fixed the flow format logic to set it correctly when registers matches are set Signed-off-by: FUJITA Tomonori --- ryu/ofproto/nx_match.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ryu/ofproto/nx_match.py b/ryu/ofproto/nx_match.py index 13296cb1..5cfeb874 100644 --- a/ryu/ofproto/nx_match.py +++ b/ryu/ofproto/nx_match.py @@ -308,6 +308,9 @@ class ClsRule(object): if not self.wc.wildcards & FWW_NW_ECN: return ofproto_v1_0.NXFF_NXM + if self.wc.regs_bits > 0: + return ofproto_v1_0.NXFF_NXM + return ofproto_v1_0.NXFF_OPENFLOW10 def match_tuple(self):