use of org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timestamp in project lispflowmapping by opendaylight.
the class LispMappingServiceTest method getDefaultMapRegisterCacheMetadata.
private static MapRegisterCacheMetadata getDefaultMapRegisterCacheMetadata() {
final EidLispAddress eidLispAddress_1 = new EidLispAddressBuilder().setEidLispAddressId("id-1").setEid(IPV4_EID_1).build();
final EidLispAddress eidLispAddress_2 = new EidLispAddressBuilder().setEidLispAddressId("id-2").setEid(IPV4_EID_2).build();
return new MapRegisterCacheMetadataBuilder().setEidLispAddress(Lists.newArrayList(eidLispAddress_1, eidLispAddress_2)).setTimestamp(TIMESTAMP).build();
}
use of org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Timestamp in project lispflowmapping by opendaylight.
the class LispMappingService method onMappingKeepAlive.
@Override
public void onMappingKeepAlive(MappingKeepAlive notification) {
final MapRegisterCacheMetadata cacheMetadata = notification.getMapRegisterCacheMetadata();
for (EidLispAddress eidLispAddress : cacheMetadata.getEidLispAddress()) {
final Eid eid = eidLispAddress.getEid();
final XtrId xtrId = cacheMetadata.getXtrId();
final Long timestamp = cacheMetadata.getTimestamp();
LOG.debug("Update map registration for eid {} with timestamp {}", LispAddressStringifier.getString(eid), timestamp);
mapService.refreshMappingRegistration(eid, xtrId, timestamp);
}
}
Aggregations