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>
This commit is contained in:
Alan Quillin 2015-01-12 12:49:28 -06:00 committed by FUJITA Tomonori
parent 25c76192d5
commit 5b1a2651bb

View File

@ -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):