Search in sources :

Example 1 with RouterIdGeneratedCaseBuilder

use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.evpn.rev171213.esi.esi.RouterIdGeneratedCaseBuilder in project bgpcep by opendaylight.

the class RouterIdParser method serializeEsi.

@Override
public Esi serializeEsi(final ContainerNode esi) {
    final RouterIdGeneratedBuilder builder = new RouterIdGeneratedBuilder();
    builder.setLocalDiscriminator(extractLD(esi));
    builder.setRouterId(extractRD(esi));
    return new RouterIdGeneratedCaseBuilder().setRouterIdGenerated(builder.build()).build();
}
Also used : RouterIdGeneratedCaseBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.evpn.rev171213.esi.esi.RouterIdGeneratedCaseBuilder) RouterIdGeneratedBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.evpn.rev171213.esi.esi.router.id.generated._case.RouterIdGeneratedBuilder)

Aggregations

RouterIdGeneratedCaseBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.evpn.rev171213.esi.esi.RouterIdGeneratedCaseBuilder)1 RouterIdGeneratedBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.evpn.rev171213.esi.esi.router.id.generated._case.RouterIdGeneratedBuilder)1