Mass-convert all compontents to use -no-zone addresses
[bgpcep.git] / pcep / base-parser / src / main / java / org / opendaylight / protocol / pcep / parser / object / end / points / PCEPEndPointsIpv6ObjectParser.java
index 775961fa219e27c05d8e50a474e148abe0071844..0dcd4174dfac077203384a06c86565eacd4bf12d 100644 (file)
@@ -65,11 +65,11 @@ public final class PCEPEndPointsIpv6ObjectParser extends CommonObjectParser {
             throw new PCEPDeserializerException("Wrong length of array of bytes.");
         }
         final Ipv6Builder ipv6bldr = new Ipv6Builder()
-                .setSourceIpv6Address(Ipv6Util.noZoneAddressForByteBuf(bytes))
-                .setDestinationIpv6Address(Ipv6Util.noZoneAddressForByteBuf(bytes));
-        builder.setIgnore(header.isIgnore())
+                .setSourceIpv6Address(Ipv6Util.addressForByteBuf(bytes))
+                .setDestinationIpv6Address(Ipv6Util.addressForByteBuf(bytes));
+        return builder.setIgnore(header.isIgnore())
                 .setProcessingRule(header.isProcessingRule())
-                .setAddressFamily(new Ipv6CaseBuilder().setIpv6(ipv6bldr.build()).build());
-        return builder.build();
+                .setAddressFamily(new Ipv6CaseBuilder().setIpv6(ipv6bldr.build()).build())
+                .build();
     }
 }