Search in sources :

Example 1 with DpnIdsKey

use of org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.config.rev160406.vtep.config.schemas.vtep.config.schema.DpnIdsKey in project genius by opendaylight.

the class ItmUtils method getDpnIdsListFromBigInt.

public static List<DpnIds> getDpnIdsListFromBigInt(List<BigInteger> dpnIds) {
    List<DpnIds> dpnIdList = new ArrayList<>();
    DpnIdsBuilder builder = new DpnIdsBuilder();
    for (BigInteger dpnId : dpnIds) {
        dpnIdList.add(builder.setKey(new DpnIdsKey(dpnId)).setDPN(dpnId).build());
    }
    return dpnIdList;
}
Also used : DpnIds(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.config.rev160406.vtep.config.schemas.vtep.config.schema.DpnIds) ArrayList(java.util.ArrayList) BigInteger(java.math.BigInteger) DpnIdsBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.config.rev160406.vtep.config.schemas.vtep.config.schema.DpnIdsBuilder) DpnIdsKey(org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.config.rev160406.vtep.config.schemas.vtep.config.schema.DpnIdsKey)

Aggregations

BigInteger (java.math.BigInteger)1 ArrayList (java.util.ArrayList)1 DpnIds (org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.config.rev160406.vtep.config.schemas.vtep.config.schema.DpnIds)1 DpnIdsBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.config.rev160406.vtep.config.schemas.vtep.config.schema.DpnIdsBuilder)1 DpnIdsKey (org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.config.rev160406.vtep.config.schemas.vtep.config.schema.DpnIdsKey)1