Bug 8535: Fix IPv6 OXMHeader Mask issue 94/57694/1
authorSridhar Gaddam <sgaddam@redhat.com>
Tue, 23 May 2017 12:57:09 +0000 (18:27 +0530)
committerSridhar Gaddam <sgaddam@redhat.com>
Tue, 23 May 2017 12:57:13 +0000 (18:27 +0530)
When programming an OVS flow to set an ipv6_src/dest as
an action field (i.e., set_field:2001::1->ipv6_src), the
current implementation is not checking the Mask and is
including the Mask (even for a full ipv6 address) in the
OXM header. Because of this, switch is rejecting the flow
with the following error.

"decode error: OFPBAC_BAD_SET_MASK. OXM header 0:32768:26:1:32
includes mask but masked OXMs are not allowed here"

This patch addresses this issue by checking the prefix and
including the prefix only if applicable.

Change-Id: Ieffdc7f0e74e9418156171d85a28c24dd336527c
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>

No differences found