BUG-2485: This is to fix unit test failure for auto-release.
[groupbasedpolicy.git] / groupbasedpolicy / src / main / java / org / opendaylight / groupbasedpolicy / renderer / ofoverlay / flow / DestinationMapper.java
index e1e527276479abf76266debfcd226ddb33279cae..1d8c9bf93fd239f4986ccfc5164e1caf18d30165 100644 (file)
@@ -208,7 +208,7 @@ public class DestinationMapper extends FlowTable {
                         .setEthernetMatch(ethernetMatch(null, null, ARP))
                         .setLayer3Match(new ArpMatchBuilder()
                             .setArpOp(Integer.valueOf(1))
-                            .setArpTargetTransportAddress(new Ipv4Prefix(ikey))
+                            .setArpTargetTransportAddress(new Ipv4Prefix(ikey+"/32"))
                             .build());
                     addNxRegMatch(mb, RegMatch.of(NxmNxReg6.class,
                                                   Long.valueOf(l3Id)));
@@ -411,13 +411,13 @@ public class DestinationMapper extends FlowTable {
             Long etherType = null;
             String ikey = null;
             if (l3a.getIpAddress().getIpv4Address() != null) {
-                ikey = l3a.getIpAddress().getIpv4Address().getValue();
+                ikey = l3a.getIpAddress().getIpv4Address().getValue() + "/32";
                 etherType = IPv4;
                 m = new Ipv4MatchBuilder()
                     .setIpv4Destination(new Ipv4Prefix(ikey))
                     .build();
             } else if (l3a.getIpAddress().getIpv6Address() != null) {
-                ikey = l3a.getIpAddress().getIpv6Address().getValue();
+                ikey = l3a.getIpAddress().getIpv6Address().getValue() + "/128";
                 etherType = IPv6;
                 m = new Ipv6MatchBuilder()
                     .setIpv6Destination(new Ipv6Prefix(ikey))