BUG-2485: This is to fix unit test failure for auto-release.
[groupbasedpolicy.git] / groupbasedpolicy / src / main / java / org / opendaylight / groupbasedpolicy / renderer / ofoverlay / flow / PortSecurity.java
index b2c37676af91f62c33d30cf25961a3ed96e02ec8..9a55c11ec93166ce848f72e751caccc199cf3e49 100644 (file)
@@ -155,7 +155,7 @@ public class PortSecurity extends FlowTable {
             Long etherType = null;
             String ikey = null;
             if (l3.getIpAddress().getIpv4Address() != null) {
-                ikey = l3.getIpAddress().getIpv4Address().getValue();
+                ikey = l3.getIpAddress().getIpv4Address().getValue() + "/32";
                 if (arp) {
                     m = new ArpMatchBuilder()
                         .setArpSourceTransportAddress(new Ipv4Prefix(ikey))
@@ -169,7 +169,7 @@ public class PortSecurity extends FlowTable {
                 }
             } else if (l3.getIpAddress().getIpv6Address() != null) {
                 if (arp) continue;
-                ikey = l3.getIpAddress().getIpv6Address().getValue();
+                ikey = l3.getIpAddress().getIpv6Address().getValue() + "/128";
                 m = new Ipv6MatchBuilder()
                     .setIpv6Source(new Ipv6Prefix(ikey))
                     .build();