Migrate evpn to use ByteBufUtils
[bgpcep.git] / bgp / extensions / evpn / src / main / java / org / opendaylight / protocol / bgp / evpn / impl / extended / communities / ESImpRouteTargetExtCom.java
index 0df285023c6915b4bff5c19d7d2980427b84c504..6a199967e10db6dbd3bd600a7c9c095d59102481 100644 (file)
@@ -37,7 +37,7 @@ public final class ESImpRouteTargetExtCom extends AbstractExtendedCommunities {
                 extendedCommunity);
         final EsImportRouteExtendedCommunity extCom = ((EsImportRouteExtendedCommunityCase) extendedCommunity)
                 .getEsImportRouteExtendedCommunity();
-        byteAggregator.writeBytes(IetfYangUtil.INSTANCE.bytesFor(extCom.getEsImport()));
+        byteAggregator.writeBytes(IetfYangUtil.INSTANCE.macAddressBytes(extCom.getEsImport()));
     }
 
     @Override