From 5bbd9feb84660d06fe635a0cd4cbdf45b110665c Mon Sep 17 00:00:00 2001 From: Michal Cmarada Date: Tue, 25 Sep 2018 11:21:09 +0200 Subject: Fix bugs after bumping to Fluorine ODL dependencies (HONEYCOMB-433) Change-Id: I99b630f97144770849679a04efccaf7fc9868cb6 Signed-off-by: Michal Cmarada --- acl/acl-impl/src/main/java/io/fd/hc2vpp/acl/read/AclCustomizer.java | 2 +- .../src/main/java/io/fd/hc2vpp/acl/util/ace/AceConverter.java | 4 ++-- .../src/main/java/io/fd/hc2vpp/acl/util/acl/AclDataExtractor.java | 2 +- .../src/main/java/io/fd/hc2vpp/acl/write/VppAclValidator.java | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'acl/acl-impl/src/main/java/io') diff --git a/acl/acl-impl/src/main/java/io/fd/hc2vpp/acl/read/AclCustomizer.java b/acl/acl-impl/src/main/java/io/fd/hc2vpp/acl/read/AclCustomizer.java index c1d52b6f8..0ebc938ea 100644 --- a/acl/acl-impl/src/main/java/io/fd/hc2vpp/acl/read/AclCustomizer.java +++ b/acl/acl-impl/src/main/java/io/fd/hc2vpp/acl/read/AclCustomizer.java @@ -148,7 +148,7 @@ public class AclCustomizer extends FutureJVppAclCustomizer public void readCurrentAttributes(@Nonnull final InstanceIdentifier id, @Nonnull final AclBuilder builder, @Nonnull final ReadContext ctx) throws ReadFailedException { final AclKey key = id.firstKeyOf(Acl.class); - builder.setKey(key); + builder.withKey(key); final Class aclType = key.getAclType(); final String name = key.getAclName(); diff --git a/acl/acl-impl/src/main/java/io/fd/hc2vpp/acl/util/ace/AceConverter.java b/acl/acl-impl/src/main/java/io/fd/hc2vpp/acl/util/ace/AceConverter.java index 228fbfc68..db5efb4d6 100644 --- a/acl/acl-impl/src/main/java/io/fd/hc2vpp/acl/util/ace/AceConverter.java +++ b/acl/acl-impl/src/main/java/io/fd/hc2vpp/acl/util/ace/AceConverter.java @@ -119,7 +119,7 @@ public interface AceConverter extends MacIpAceDataExtractor, StandardAceDataExtr final String aceName = macipAclContext.getAceName(aclName, i++, mappingContext); ace.setRuleName(aceName); - ace.setKey(new AceKey(aceName)); + ace.withKey(new AceKey(aceName)); aces.add(ace.build()); } @@ -144,7 +144,7 @@ public interface AceConverter extends MacIpAceDataExtractor, StandardAceDataExtr final String aceName = standardAclContext.getAceName(aclName, i++, mappingContext); ace.setRuleName(aceName); - ace.setKey(new AceKey(aceName)); + ace.withKey(new AceKey(aceName)); aces.add(ace.build()); } return aces; diff --git a/acl/acl-impl/src/main/java/io/fd/hc2vpp/acl/util/acl/AclDataExtractor.java b/acl/acl-impl/src/main/java/io/fd/hc2vpp/acl/util/acl/AclDataExtractor.java index bae699109..5f75ae306 100644 --- a/acl/acl-impl/src/main/java/io/fd/hc2vpp/acl/util/acl/AclDataExtractor.java +++ b/acl/acl-impl/src/main/java/io/fd/hc2vpp/acl/util/acl/AclDataExtractor.java @@ -66,7 +66,7 @@ public interface AclDataExtractor { * Convert {@link Acl} tag to byte array in US_ASCII */ default byte[] getAclTag(@Nonnull final Acl acl) { - final VppAclAugmentation augmentation = acl.getAugmentation(VppAclAugmentation.class); + final VppAclAugmentation augmentation = acl.augmentation(VppAclAugmentation.class); if (augmentation != null && augmentation.getTag() != null) { return augmentation.getTag().getBytes(StandardCharsets.US_ASCII); } diff --git a/acl/acl-impl/src/main/java/io/fd/hc2vpp/acl/write/VppAclValidator.java b/acl/acl-impl/src/main/java/io/fd/hc2vpp/acl/write/VppAclValidator.java index e1f4c8dc0..942d3bcb3 100644 --- a/acl/acl-impl/src/main/java/io/fd/hc2vpp/acl/write/VppAclValidator.java +++ b/acl/acl-impl/src/main/java/io/fd/hc2vpp/acl/write/VppAclValidator.java @@ -150,7 +150,7 @@ public final class VppAclValidator implements Validator, AclDataExtractor { if (aclType.equals(VppAcl.class)) { return interfaces.stream() - .filter(iface -> ofNullable(iface.getAugmentation(VppAclInterfaceAugmentation.class)) + .filter(iface -> ofNullable(iface.augmentation(VppAclInterfaceAugmentation.class)) .map(InterfaceAclAttributes::getAcl) .filter(references -> checkVppAcls(references.getIngress(), aclName) || @@ -158,7 +158,7 @@ public final class VppAclValidator implements Validator, AclDataExtractor { ).collect(Collectors.toList()); } else if (aclType.equals(VppMacipAcl.class)) { return interfaces.stream() - .filter(iface -> ofNullable(iface.getAugmentation(VppAclInterfaceAugmentation.class)) + .filter(iface -> ofNullable(iface.augmentation(VppAclInterfaceAugmentation.class)) .map(InterfaceAclAttributes::getAcl) .map(aclAttr -> aclAttr.getIngress()) .map(VppMacipAclsBaseAttributes::getVppMacipAcl) -- cgit 1.2.3-korg