summaryrefslogtreecommitdiffstats
path: root/v3po/v3po2vpp/src/main/java/io
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2016-09-23 14:51:30 +0200
committerMarek Gradzki <mgradzki@cisco.com>2016-09-26 08:19:26 +0200
commitb9cc523c92d4fa3ed036e6ed1f0fcc3d9936b157 (patch)
tree287192eb46eb6839fb68e14619bcca3392ca1405 /v3po/v3po2vpp/src/main/java/io
parent7ad1eb51710b65fdad35fab04122de4eb887e541 (diff)
HONEYCOMB-195: increase coverage for ietf-acl customizers over 80%
Change-Id: I6a56402e9309edcd84aba46689bbcb93d40e20f8 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/v3po2vpp/src/main/java/io')
-rw-r--r--v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/interfaces/acl/AceIp6Writer.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/interfaces/acl/AceIp6Writer.java b/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/interfaces/acl/AceIp6Writer.java
index 1e222ec6a..94390835f 100644
--- a/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/interfaces/acl/AceIp6Writer.java
+++ b/v3po/v3po2vpp/src/main/java/io/fd/honeycomb/translate/v3po/interfaces/acl/AceIp6Writer.java
@@ -106,6 +106,7 @@ final class AceIp6Writer extends AbstractAceWriter<AceIp> {
final int baseOffset = getVlanTagsLen(vlanTags);
if (aceIp.getProtocol() != null) {
+ aceIsEmpty = false;
request.mask[baseOffset + IP_VERSION_OFFSET] |= IP_VERSION_MASK;
}
@@ -168,6 +169,7 @@ final class AceIp6Writer extends AbstractAceWriter<AceIp> {
final int baseOffset = getVlanTagsLen(vlanTags);
if (aceIp.getProtocol() != null) {
+ noMatch = false;
request.match[baseOffset + IP_VERSION_OFFSET] |=
(byte) (IP_VERSION_MASK & (aceIp.getProtocol().intValue() << 4));
}