use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.admin.status.object.AdminStatusObjectBuilder in project bgpcep by opendaylight.
the class AdminStatusObjectParser method localParseObject.
@Override
protected RsvpTeObject localParseObject(final ByteBuf byteBuf) throws RSVPParsingException {
final AdminStatusObjectBuilder adm = new AdminStatusObjectBuilder();
final BitArray reflect = BitArray.valueOf(byteBuf, FLAGS_SIZE);
adm.setReflect(reflect.get(REFLECT));
byteBuf.skipBytes(ByteBufWriteUtil.SHORT_BYTES_LENGTH);
final BitArray flags = BitArray.valueOf(byteBuf, FLAGS_SIZE);
adm.setTesting(flags.get(TESTING));
adm.setAdministrativelyDown(flags.get(DOWN));
adm.setDeletionInProgress(flags.get(DELETION));
return adm.build();
}
Aggregations