use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.attribute.flags.FlagContainerBuilder in project bgpcep by opendaylight.
the class AttributesObjectParser method parseFlag.
static List<FlagContainer> parseFlag(final ByteBuf byteBuf) {
final List<FlagContainer> flagList = new ArrayList<>();
while (byteBuf.isReadable()) {
final byte[] value = ByteArray.readBytes(byteBuf, FLAG_TLV_SIZE);
final FlagContainerBuilder flagBuilder = new FlagContainerBuilder().setFlags(value);
flagList.add(flagBuilder.build());
}
return flagList;
}
Aggregations