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;
}
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;
}
Aggregations