Upgrading ACL implementation
[groupbasedpolicy.git] / renderers / vpp / src / main / java / org / opendaylight / groupbasedpolicy / renderer / vpp / util / KeyFactory.java
index 6024bac5b4a3e7b9ec0f5761c71e07043a4f4859..62f4cb5fbe8f52aaa5662deb0296ad998ea8c26a 100644 (file)
@@ -39,6 +39,11 @@ public class KeyFactory {
                 fromKey.getContextType());
     }
 
+    public static AddressEndpointKey addressEndpointKey(PeerEndpointKey fromKey) {
+        return new AddressEndpointKey(fromKey.getAddress(), fromKey.getAddressType(), fromKey.getContextId(),
+                fromKey.getContextType());
+    }
+
     public static ProviderAddressEndpointLocationKey providerAddressEndpointLocationKey(
             AddressEndpointWithLocationKey fromKey) {
         return new ProviderAddressEndpointLocationKey(fromKey.getAddress(), fromKey.getAddressType(),