public class LispMappingNorthbound extends Object implements ILispmappingNorthbound
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
LispMappingNorthbound() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addAuthKey(String containerName,
AuthKeyNB authKeyNB)
Set the authentication key for an EID prefix
|
javax.ws.rs.core.Response |
addMapping(String containerName,
MapRegisterNB mapRegisterNB)
Add a mapping to the LISP mapping system
|
javax.ws.rs.core.Response |
delAuthKey(String containerName,
int afi,
int iid,
String address,
int mask)
Delete the key used to register an EID prefix
|
javax.ws.rs.core.Response |
delAuthKey(String containerName,
int iid,
int afi,
String srcAdd,
int srcML,
String dstAdd,
int dstML)
Delete the key used to register an EID prefix
|
void |
destroy() |
AuthKeyNB |
getAuthKey(String containerName,
int iid,
int afi,
String address,
int mask)
Retrieve the key used to register an EID prefix
|
AuthKeyNB |
getAuthKey(String containerName,
int iid,
int afi,
String srcAdd,
int srcML,
String dstAdd,
int dstML)
Retrieve a key used to register a Source-Destination LCAF EID prefix
|
org.opendaylight.lispflowmapping.type.lisp.EidToLocatorRecord |
getMapping(String containerName,
int iid,
int afi,
String address,
int mask) |
org.opendaylight.lispflowmapping.type.lisp.EidToLocatorRecord |
getMapping(String containerName,
int iid,
int afi,
String srcAdd,
int srcML,
String dstAdd,
int dstML)
Retrieve a mapping from the LISP mapping system, using Source-Destination
LCAF as EID
|
org.opendaylight.lispflowmapping.interfaces.lisp.IFlowMapping |
getMappingService() |
protected String |
getUserName() |
void |
init() |
void |
setSecurityContext(javax.ws.rs.core.SecurityContext context) |
void |
start() |
void |
stop() |
@Context public void setSecurityContext(javax.ws.rs.core.SecurityContext context)
protected String getUserName()
public org.opendaylight.lispflowmapping.interfaces.lisp.IFlowMapping getMappingService()
getMappingService in interface ILispmappingNorthboundpublic void init()
public void start()
public void stop()
public void destroy()
public javax.ws.rs.core.Response addMapping(String containerName, MapRegisterNB mapRegisterNB)
containerName - name of the container context in which the mapping needs to be
addedmapRegisterNB - JSON object that contains the mapping information
Example:
Request URL:
http://localhost:8080/lispflowmapping/nb/v2/default/mapping
Request body in JSON:
{
"key" : "asdf",
"mapregister" :
{
"wantMapNotify" : true,
"proxyMapReply" : false,
"eidToLocatorRecords" :
[
{
"authoritative" : true,
"prefixGeneric" :
{
"ipAddress" : "10.0.0.1",
"afi" : 1
},
"mapVersion" : 3,
"maskLength" : 32,
"action" : "NoAction",
"locators" :
[
{
"multicastPriority" : 3,
"locatorGeneric" :
{
"ipAddress" : "3.3.3.3",
"afi" : 1
},
"routed" : true,
"multicastWeight" : 3,
"rlocProbed" : false,
"localLocator" : false,
"priority" : 3,
"weight" : 3
}
],
"recordTtl" : 3
}
],
"nonce" : 3,
"keyId" : 0
}
}
public org.opendaylight.lispflowmapping.type.lisp.EidToLocatorRecord getMapping(String containerName, int iid, int afi, String address, int mask)
public org.opendaylight.lispflowmapping.type.lisp.EidToLocatorRecord getMapping(String containerName, int iid, int afi, String srcAdd, int srcML, String dstAdd, int dstML)
containerName - name of the container context from which the mapping is going
to be retrievediid - Instance-ID of the addresses (0 if none)afi - Address Family of the addresses (IPv4, IPv6 or MAC)srcAdd - Source address of type defined by afisrcML - Network mask length of the source addressdstAdd - Destination address of type defined by afidstML - Network mask length of the destination address
Example:
Request URL:
http://localhost:8080/lispflowmapping/nb/v2/default/mapping/0/1/10.0.0.1/32/20.0.0.2/32
public javax.ws.rs.core.Response addAuthKey(String containerName, AuthKeyNB authKeyNB)
containerName - name of the container context in which the key needs to be setauthKeyNB - JSON object that contains the key information
Example:
Request URL:
http://localhost:8080/lispflowmapping/nb/v2/default/key
Request body in JSON:
{
"key" : "asdf",
"maskLength" : 24,
"address" :
{
"ipAddress" : "10.0.0.1",
"afi" : 1
}
}
public AuthKeyNB getAuthKey(String containerName, int iid, int afi, String address, int mask)
containerName - name of the container context from which the key is going to
be retrievedafi - Address Family of the address (IPv4, IPv6 or MAC)address - Address of type defined by afimask - Network mask lengthExample: Request URL: http://localhost:8080/lispflowmapping/nb/v2/default/key/0/1/10.0.0.1/32
public AuthKeyNB getAuthKey(String containerName, int iid, int afi, String srcAdd, int srcML, String dstAdd, int dstML)
containerName - name of the container context from which the key is going to
be retrievedafi - Address Family of the addresses (IPv4, IPv6 or MAC)srcAdd - Source address of type defined by afisrcML - Network mask length of the source addressdstAdd - Destination address of type defined by afidstML - Network mask length of the destination addressExample: Request URL: http://localhost:8080/lispflowmapping/nb/v2/default/key/0/1/10.0.0.1/32/20.0.0.2/32
public javax.ws.rs.core.Response delAuthKey(String containerName, int afi, int iid, String address, int mask)
containerName - name of the container context from which the key is going to
be deletedafi - Address Family of the address (IPv4, IPv6 or MAC)address - Address of type defined by afimask - Network mask lengthExample: Request URL: http://localhost:8080/lispflowmapping/nb/v2/default/key/0/1/10.0.0.1/32
public javax.ws.rs.core.Response delAuthKey(String containerName, int iid, int afi, String srcAdd, int srcML, String dstAdd, int dstML)
containerName - name of the container context from which the key is going to
be retrievedafi - Address Family of the addresses (IPv4, IPv6 or MAC)srcAdd - Source address of type defined by afisrcML - Network mask length of the source addressdstAdd - Destination address of type defined by afidstML - Network mask length of the destination addressExample: Request URL: http://localhost:8080/lispflowmapping/nb/v2/default/key/0/1/10.0.0.1/32/20.0.0.2/32
Copyright © 2014. All Rights Reserved.