Search in sources :

Example 1 with EnterpriseSpecificInformation

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();
}
Also used : EnterpriseSpecificInformation(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.vendor.information.EnterpriseSpecificInformation) VendorInformationTlvBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.vendor.information.tlvs.VendorInformationTlvBuilder)

Aggregations

EnterpriseSpecificInformation (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.vendor.information.EnterpriseSpecificInformation)1 VendorInformationTlvBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.vendor.information.tlvs.VendorInformationTlvBuilder)1