Search in sources :

Example 1 with FlagContainerBuilder

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;
}
Also used : FlagContainer(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.attribute.flags.FlagContainer) ArrayList(java.util.ArrayList) FlagContainerBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.attribute.flags.FlagContainerBuilder)

Aggregations

ArrayList (java.util.ArrayList)1 FlagContainer (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.attribute.flags.FlagContainer)1 FlagContainerBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.attribute.flags.FlagContainerBuilder)1