Search in sources :

Example 1 with LanAutoGeneratedCaseBuilder

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

the class LanParser method serializeEsi.

@Override
public Esi serializeEsi(final ContainerNode esi) {
    final LanAutoGeneratedBuilder lanBuilder = new LanAutoGeneratedBuilder();
    lanBuilder.setRootBridgeMacAddress(extractBrigeMac(esi));
    lanBuilder.setRootBridgePriority(extractBP(esi));
    return new LanAutoGeneratedCaseBuilder().setLanAutoGenerated(lanBuilder.build()).build();
}
Also used : LanAutoGeneratedBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.evpn.rev171213.esi.esi.lan.auto.generated._case.LanAutoGeneratedBuilder) LanAutoGeneratedCaseBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.evpn.rev171213.esi.esi.LanAutoGeneratedCaseBuilder)

Aggregations

LanAutoGeneratedCaseBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.evpn.rev171213.esi.esi.LanAutoGeneratedCaseBuilder)1 LanAutoGeneratedBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.evpn.rev171213.esi.esi.lan.auto.generated._case.LanAutoGeneratedBuilder)1