use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.vendor.information.EnterpriseSpecificInformation in project bgpcep by opendaylight.
the class AbstractVendorInformationTlvParser method parseTlv.
@Override
public final VendorInformationTlv parseTlv(final ByteBuf buffer) throws PCEPDeserializerException {
if (buffer == null) {
return null;
}
final VendorInformationTlvBuilder viTlvBuider = new VendorInformationTlvBuilder();
viTlvBuider.setEnterpriseNumber(getEnterpriseNumber());
if (buffer.isReadable()) {
final EnterpriseSpecificInformation esInformation = parseEnterpriseSpecificInformation(buffer.slice());
if (esInformation != null) {
viTlvBuider.setEnterpriseSpecificInformation(esInformation);
}
}
return viTlvBuider.build();
}
Aggregations