LocatorRecordBuilder record = new LocatorRecordBuilder();
record.setLispAddressContainer(LispAFIConvertor.toContainer(rloc));
record.setRouted(true);
+ record.setRlocProbed(false);
+ record.setLocalLocator(false);
+ record.setPriority((short) 1);
+ record.setWeight((short) 50);
+ record.setMulticastPriority((short) 1);
+ record.setMulticastWeight((short) 1);
etlr.setLocatorRecord(new ArrayList<LocatorRecord>());
etlr.getLocatorRecord().add(record.build());
mapRegister.setEidToLocatorRecord(new ArrayList<EidToLocatorRecord>());
LocatorRecordBuilder record = new LocatorRecordBuilder();
record.setLispAddressContainer(LispAFIConvertor.toContainer(rloc));
record.setRouted(true);
+ record.setRlocProbed(false);
+ record.setLocalLocator(false);
+ record.setPriority((short) 1);
+ record.setWeight((short) 50);
+ record.setMulticastPriority((short) 1);
+ record.setMulticastWeight((short) 1);
etlr.setLocatorRecord(new ArrayList<LocatorRecord>());
etlr.getLocatorRecord().add(record.build());
mapRegister.setEidToLocatorRecord(new ArrayList<EidToLocatorRecord>());
}
private URL createGetKeyIPv4URL(LispIpv4Address address, int mask) throws MalformedURLException {
- String restUrl = String.format("http://localhost:8080/lispflowmapping/nb/v2/default/%s/%d/%s/%d", "key", address.getAfi().shortValue(),
+ String restUrl = String.format("http://localhost:8080/lispflowmapping/nb/v2/default/%s/0/%d/%s/%d", "key", address.getAfi().shortValue(),
address.getIpv4Address().getValue(), mask);
URL url = new URL(restUrl);
return url;
}
private URL createGetKeySourceDestURL(int afi, String srcAddress, int srcMask, String dstAddress, int dstMask) throws MalformedURLException {
- String restUrl = String.format("http://localhost:8080/lispflowmapping/nb/v2/default/%s/%d/%s/%d/%s/%d", "key", afi, srcAddress, srcMask,
+ String restUrl = String.format("http://localhost:8080/lispflowmapping/nb/v2/default/%s/0/%d/%s/%d/%s/%d", "key", afi, srcAddress, srcMask,
dstAddress, dstMask);
URL url = new URL(restUrl);
return url;
}
private URL createGetMappingSourceDestURL(int afi, String srcAddress, int srcMask, String dstAddress, int dstMask) throws MalformedURLException {
- String restUrl = String.format("http://localhost:8080/lispflowmapping/nb/v2/default/%s/%d/%s/%d/%s/%d", "mapping", afi, srcAddress, srcMask,
+ String restUrl = String.format("http://localhost:8080/lispflowmapping/nb/v2/default/%s/0/%d/%s/%d/%s/%d", "mapping", afi, srcAddress, srcMask,
dstAddress, dstMask);
URL url = new URL(restUrl);
return url;