diff options
author | Alan Quillin <alanquillin@gmail.com> | 2015-01-12 12:49:28 -0600 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-01-13 21:40:13 +0900 |
commit | 5b1a2651bb6322d63b853cfd8acfe539de3bf926 (patch) | |
tree | 86c25960a60121c24f149cc255aa88280806dc00 | |
parent | 25c76192d57ecb511f8360e40ad9e57b178da4d0 (diff) |
of_v1_0: Fixed the flow format logic to set it correctly when registers matches are set
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/ofproto/nx_match.py | 3 |
1 files changed, 3 insertions, 0 deletions
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): |