Search in sources :

Example 1 with IgpBitsBuilder

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev200120.prefix.state.IgpBitsBuilder in project bgpcep by opendaylight.

the class PrefixAttributesParser method parseIgpFags.

private static void parseIgpFags(final PrefixAttributesBuilder builder, final ByteBuf value) {
    final BitArray flags = BitArray.valueOf(value, FLAGS_SIZE);
    final boolean upDownBit = flags.get(UP_DOWN_BIT);
    builder.setIgpBits(new IgpBitsBuilder().setUpDown(new UpDown(upDownBit)).setIsIsUpDown(upDownBit).setOspfNoUnicast(flags.get(OSPF_NO_UNICAST)).setOspfLocalAddress(flags.get(OSPF_LOCAL_ADDRESS)).setOspfPropagateNssa(flags.get(OSPF_PROPAGATE_ADDRESS)).build());
    LOG.debug("Parsed IGP flag (up/down bit) : {}", upDownBit);
}
Also used : IgpBitsBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev200120.prefix.state.IgpBitsBuilder) BitArray(org.opendaylight.protocol.util.BitArray) UpDown(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev200120.IgpBits.UpDown)

Aggregations

BitArray (org.opendaylight.protocol.util.BitArray)1 UpDown (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev200120.IgpBits.UpDown)1 IgpBitsBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev200120.prefix.state.IgpBitsBuilder)1