FDS-242 - Clearing intf ref prior to removing ACL itself
[groupbasedpolicy.git] / renderers / vpp / src / main / java / org / opendaylight / groupbasedpolicy / renderer / vpp / policy / acl / AccessListWrapper.java
index 2d4ed89119c8b3430e5d4c5d6f6bdeabf23a1fda..cffb525aec6e24d14bf333a7ff7dee1ce27552e6 100644 (file)
@@ -95,7 +95,8 @@ public abstract class AccessListWrapper {
 
     public static void removeAclRefFromIface(@Nonnull DataBroker mountPoint, @Nonnull InterfaceKey ifaceKey) {
         LOG.debug("Removing access-lists from interface {}", ifaceKey.getName());
-        GbpNetconfTransaction.netconfSyncedDelete(mountPoint, VppIidFactory.getInterfaceIetfAcl(ifaceKey),
+        GbpNetconfTransaction.netconfSyncedDelete(mountPoint,
+                VppIidFactory.getAclInterfaceRef(VppIidFactory.getInterfaceIID(ifaceKey)),
                 GbpNetconfTransaction.RETRY_COUNT);
     }
 }