public class LispMappingService extends Object implements IFlowMapping, org.opendaylight.controller.sal.binding.api.BindingAwareProvider, IMapRequestResultHandler, IMapNotifyHandler, OdlLispProtoListener, AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
LispMappingService() |
| Modifier and Type | Method and Description |
|---|---|
void |
basicInit() |
void |
close() |
void |
destroy() |
org.opendaylight.controller.md.sal.binding.api.NotificationService |
getNotificationService() |
void |
handleMapNotify(MapNotify notify,
List<TransportAddress> rlocs)
Handle map-notify message
|
org.apache.commons.lang3.tuple.Pair<MapNotify,List<TransportAddress>> |
handleMapRegister(MapRegister mapRegister)
Handle southbound map-request
|
org.apache.commons.lang3.tuple.Pair<MapNotify,List<TransportAddress>> |
handleMapRegister(MapRegister mapRegister,
boolean smr) |
void |
handleMapReply(MapReply reply)
Handle return map-reply message
|
MapReply |
handleMapRequest(MapRequest request)
Handle southbound map-request
|
void |
handleNonProxyMapRequest(MapRequest mapRequest,
TransportAddress transportAddress)
Handle map-request to be forwarded to authoritative ETR
|
void |
handleSMR(MapRequest smr,
Rloc subscriber)
Handle Solicit Map Request message
|
void |
initialize() |
void |
onAddMapping(AddMapping mapRegisterNotification) |
void |
onGotMapNotify(GotMapNotify notification) |
void |
onGotMapReply(GotMapReply notification) |
void |
onRequestMapping(RequestMapping mapRequestNotification) |
void |
onSessionInitiated(org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext session) |
void |
onXtrReplyMapping(XtrReplyMapping notification) |
void |
onXtrRequestMapping(XtrRequestMapping notification) |
void |
setBindingAwareBroker(org.opendaylight.controller.sal.binding.api.BindingAwareBroker broker) |
void |
setMappingService(IMappingService ms) |
void |
setNotificationService(org.opendaylight.controller.md.sal.binding.api.NotificationService ns) |
void |
setShouldAuthenticate(boolean shouldAuthenticate) |
void |
setShouldUseSmr(boolean smr)
Configure LISP mapping service to track and notify of changes mapping requesters
|
boolean |
shouldAuthenticate() |
boolean |
shouldUseSmr() |
public void setBindingAwareBroker(org.opendaylight.controller.sal.binding.api.BindingAwareBroker broker)
public void setNotificationService(org.opendaylight.controller.md.sal.binding.api.NotificationService ns)
public void setMappingService(IMappingService ms)
public boolean shouldUseSmr()
public void setShouldUseSmr(boolean smr)
IFlowMappingsetShouldUseSmr in interface IFlowMappingsmr - Configure state of servicepublic org.opendaylight.controller.md.sal.binding.api.NotificationService getNotificationService()
public void initialize()
public void basicInit()
public void onSessionInitiated(org.opendaylight.controller.sal.binding.api.BindingAwareBroker.ProviderContext session)
onSessionInitiated in interface org.opendaylight.controller.sal.binding.api.BindingAwareProviderpublic MapReply handleMapRequest(MapRequest request)
IFlowMappinghandleMapRequest in interface IFlowMappingrequest - The map-request messagespublic org.apache.commons.lang3.tuple.Pair<MapNotify,List<TransportAddress>> handleMapRegister(MapRegister mapRegister)
IFlowMappinghandleMapRegister in interface IFlowMappingmapRegister - The map-register messagepublic org.apache.commons.lang3.tuple.Pair<MapNotify,List<TransportAddress>> handleMapRegister(MapRegister mapRegister, boolean smr)
public void setShouldAuthenticate(boolean shouldAuthenticate)
public boolean shouldAuthenticate()
public void onAddMapping(AddMapping mapRegisterNotification)
onAddMapping in interface OdlLispProtoListenerpublic void onRequestMapping(RequestMapping mapRequestNotification)
onRequestMapping in interface OdlLispProtoListenerpublic void onGotMapReply(GotMapReply notification)
onGotMapReply in interface OdlLispProtoListenerpublic void onGotMapNotify(GotMapNotify notification)
onGotMapNotify in interface OdlLispProtoListenerpublic void onXtrRequestMapping(XtrRequestMapping notification)
onXtrRequestMapping in interface OdlLispProtoListenerpublic void onXtrReplyMapping(XtrReplyMapping notification)
onXtrReplyMapping in interface OdlLispProtoListenerpublic void handleMapReply(MapReply reply)
IMapRequestResultHandlerhandleMapReply in interface IMapRequestResultHandlerreply - The map-reply messagepublic void handleMapNotify(MapNotify notify, List<TransportAddress> rlocs)
IMapNotifyHandlerhandleMapNotify in interface IMapNotifyHandlernotify - The map-notify messagerlocs - A list of RLOCs which need to be notifiedpublic void handleSMR(MapRequest smr, Rloc subscriber)
IMapNotifyHandlerhandleSMR in interface IMapNotifyHandlersmr - the SMR messagesubscriber - The address of the subscriber that should be SMRedpublic void handleNonProxyMapRequest(MapRequest mapRequest, TransportAddress transportAddress)
IMapRequestResultHandlerhandleNonProxyMapRequest in interface IMapRequestResultHandlermapRequest - The map-request messagetransportAddress - The address of the ETRpublic void destroy()
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2017 OpenDaylight. All rights reserved.