use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev200120.linkstate.object.type.prefix._case.AdvertisingNodeDescriptorsBuilder in project bgpcep by opendaylight.
the class NodeNlriParser method serializeAdvNodeDescriptors.
static AdvertisingNodeDescriptors serializeAdvNodeDescriptors(final ContainerNode descriptorsData) {
final AdvertisingNodeDescriptorsBuilder builder = new AdvertisingNodeDescriptorsBuilder();
builder.setAsNumber(serializeAsNumber(descriptorsData));
builder.setDomainId(serializeDomainId(descriptorsData));
builder.setAreaId(serializeAreaId(descriptorsData));
builder.setCRouterIdentifier(serializeRouterId(descriptorsData));
return builder.build();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev200120.linkstate.object.type.prefix._case.AdvertisingNodeDescriptorsBuilder in project bgpcep by opendaylight.
the class AbstractPrefixNlriParser method parseObjectType.
@Override
protected final ObjectType parseObjectType(final ByteBuf buffer) {
final NodeIdentifier oType = SimpleNlriTypeRegistry.getInstance().parseTlv(buffer);
final PrefixCaseBuilder builder = new PrefixCaseBuilder();
builder.setAdvertisingNodeDescriptors(new AdvertisingNodeDescriptorsBuilder(oType).build());
builder.setPrefixDescriptors(parsePrefixDescriptor(buffer));
return builder.build();
}
Aggregations