Search in sources :

Example 1 with ItrRlocKey

use of org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.maprequest.ItrRlocKey in project lispflowmapping by opendaylight.

the class MappingServiceIntegrationTestUtil method getDefaultItrRlocList.

/**
 * Create a default ItrRloc List.
 *
 * @param rloc the single Rloc to be added to the list
 * @return the ItrRloc List object
 */
static List<ItrRloc> getDefaultItrRlocList(Rloc rloc) {
    if (rloc == null) {
        rloc = DEFAULT_IPV4_ITR_RLOC;
    }
    final List<ItrRloc> itrRlocList = new ArrayList<>();
    final ItrRloc itrRloc = new ItrRlocBuilder().setKey(new ItrRlocKey(LispAddressStringifier.getString(rloc))).setItrRlocId(LispAddressStringifier.getString(rloc)).setRloc(rloc).build();
    itrRlocList.add(itrRloc);
    return itrRlocList;
}
Also used : ItrRloc(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.maprequest.ItrRloc) ItrRlocKey(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.maprequest.ItrRlocKey) ItrRlocBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.maprequest.ItrRlocBuilder) ArrayList(java.util.ArrayList)

Example 2 with ItrRlocKey

use of org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.maprequest.ItrRlocKey in project lispflowmapping by opendaylight.

the class MapResolverTest method getDefaultItrRlocList.

private static List<ItrRloc> getDefaultItrRlocList() {
    final List<ItrRloc> itrRlocList = new ArrayList<>();
    final ItrRloc itrRloc = new ItrRlocBuilder().setKey(new ItrRlocKey(ITR_RLOC_KEY_STRING)).setItrRlocId(ITR_RLOC_ID_STRING).setRloc(RLOC_1).build();
    itrRlocList.add(itrRloc);
    return itrRlocList;
}
Also used : ItrRloc(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.maprequest.ItrRloc) ItrRlocKey(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.maprequest.ItrRlocKey) ItrRlocBuilder(org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.maprequest.ItrRlocBuilder) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)2 ItrRloc (org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.maprequest.ItrRloc)2 ItrRlocBuilder (org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.maprequest.ItrRlocBuilder)2 ItrRlocKey (org.opendaylight.yang.gen.v1.urn.opendaylight.lfm.lisp.proto.rev151105.maprequest.ItrRlocKey)2