Change-Id: If76c63ec6c5dd00811f593ac8d6058341b8e1cf1
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
@Override
protected void update(InstanceIdentifier<Acl> key, Acl aclBefore, Acl aclAfter) {
@Override
protected void update(InstanceIdentifier<Acl> key, Acl aclBefore, Acl aclAfter) {
- if (!AclServiceUtils.isOfAclInterest(aclAfter)) {
- LOG.trace("{} does not have SecurityRuleAttr augmentation", aclAfter.getAclName());
+ if (!AclServiceUtils.isOfAclInterest(aclAfter) || !AclServiceUtils.isOfAclInterest(aclBefore)) {
+ LOG.trace("before {} and/or after {} does not have SecurityRuleAttr augmentation",
+ aclBefore.getAclName(), aclAfter.getAclName());
public static boolean isOfAclInterest(Acl acl) {
List<Ace> aceList = acl.getAccessListEntries().getAce();
public static boolean isOfAclInterest(Acl acl) {
List<Ace> aceList = acl.getAccessListEntries().getAce();
+ if ((aceList != null) && !aceList.isEmpty()) {
return (aceList.get(0).getAugmentation(SecurityRuleAttr.class) != null);
}
return false;
return (aceList.get(0).getAugmentation(SecurityRuleAttr.class) != null);
}
return false;