Search in sources :

Example 1 with AssociationObjectBuilder

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.association.object.AssociationObjectBuilder in project bgpcep by opendaylight.

the class AbstractAssociationParser method localParseObject.

@Override
protected final RsvpTeObject localParseObject(final ByteBuf byteBuf) throws RSVPParsingException {
    final AssociationObjectBuilder asso = new AssociationObjectBuilder();
    asso.setAssociationType(AssociationType.forValue(byteBuf.readUnsignedShort()));
    asso.setAssociationId(byteBuf.readUnsignedShort());
    asso.setIpAddress(parseAssociationIpAddress(byteBuf));
    return asso.build();
}
Also used : AssociationObjectBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.association.object.AssociationObjectBuilder)

Aggregations

AssociationObjectBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.association.object.AssociationObjectBuilder)1