Adding authentication data to map register cache. 55/40755/5
authorJozef Gloncak <jgloncak@cisco.com>
Thu, 23 Jun 2016 09:02:06 +0000 (11:02 +0200)
committerLori Jakab <lorand.jakab@gmail.com>
Thu, 30 Jun 2016 13:06:02 +0000 (13:06 +0000)
commit3c089df87a054d30e9c9b2f3d17ef495e87350bb
tree55688cb299ea4db8028f5ff984efe201dee9f24b
parenta7a1fcd2b27d7801b2e1baf245729332d8dc7c00
Adding authentication data to map register cache.

Authentication type and string are stored in map register cache in map value.
If map register cache hit occures and it is required to send map notify
message which should be authenticated then this localy stored authentication
data are used.

If authentication data are changed (value in datastore) then the application is
switched to authentication refreshing mode for period of time which is equal
to map register cache record timout. During this period are authentication data
obtained as before - by direct request to simple map cache.

Change-Id: I6537b8cd88773c960a3f4d90b8e26ea2bb397fb0
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
mappingservice/lisp-proto/src/main/yang/odl-lisp-proto.yang
mappingservice/southbound/src/main/java/org/opendaylight/lispflowmapping/southbound/lisp/AuthenticationKeyDataListener.java
mappingservice/southbound/src/main/java/org/opendaylight/lispflowmapping/southbound/lisp/LispSouthboundHandler.java
mappingservice/southbound/src/main/java/org/opendaylight/lispflowmapping/southbound/lisp/cache/MapRegisterCache.java
mappingservice/southbound/src/test/java/org/opendaylight/lispflowmapping/southbound/lisp/LispSouthboundServiceTest.java