lispflowmapping.git
8 years agoMerge "Bug 6051: Temporarly disable Neutron in build"
Vina Ermagan [Tue, 14 Jun 2016 06:42:11 +0000 (06:42 +0000)]
Merge "Bug 6051: Temporarly disable Neutron in build"

8 years agoMerge "Fix Map-Notify for non-authenticated Map-Registers on cache hit"
Vina Ermagan [Sun, 12 Jun 2016 20:44:09 +0000 (20:44 +0000)]
Merge "Fix Map-Notify for non-authenticated Map-Registers on cache hit"

8 years agoBug 6051: Temporarly disable Neutron in build 98/40198/1
Lorand Jakab [Sun, 12 Jun 2016 08:02:07 +0000 (11:02 +0300)]
Bug 6051: Temporarly disable Neutron in build

The Neutron project deprecated the I*Aware interfaces during Beryllium
and is removing them now in Boron. Until migration is finished, disable
our Neutron service in the build.

Change-Id: I7a63d0055b84a3d6f6ef5ffe3fb8423e658a0ad7
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoFix Map-Notify for non-authenticated Map-Registers on cache hit 77/40177/2
Lorand Jakab [Sat, 11 Jun 2016 20:26:42 +0000 (23:26 +0300)]
Fix Map-Notify for non-authenticated Map-Registers on cache hit

Change-Id: I2d1ebb08a884ecb1461ec5ee18a52b6f6ff19c9c
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "Bug 6041: Ignore SMRs and RLOC probes in Map-Resolver"
Vina Ermagan [Fri, 10 Jun 2016 21:19:05 +0000 (21:19 +0000)]
Merge "Bug 6041: Ignore SMRs and RLOC probes in Map-Resolver"

8 years agoFix transformMapRegisterToMapNotify() 74/40174/1
Lorand Jakab [Fri, 10 Jun 2016 15:41:15 +0000 (18:41 +0300)]
Fix transformMapRegisterToMapNotify()

Instead of 0x40, the code was setting the first byte to 0x04.
Additionally, it didn't take into account flags that need to be present
in the returned packet.

Change-Id: I0f0dbaf940abf3033220237350819c6d56405fea
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 6041: Ignore SMRs and RLOC probes in Map-Resolver 82/40082/4
Lorand Jakab [Thu, 9 Jun 2016 15:40:27 +0000 (18:40 +0300)]
Bug 6041: Ignore SMRs and RLOC probes in Map-Resolver

Change-Id: I37f8285fbe5ce0b4bf24387d77f3d4fd298adb30
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoFix type in LispAddressUtil.asIpv{4,6}PrefixEid 77/40077/2
Lorand Jakab [Thu, 9 Jun 2016 00:22:04 +0000 (03:22 +0300)]
Fix type in LispAddressUtil.asIpv{4,6}PrefixEid

Change-Id: I4c543a88a3ca2fd5186169e8682ead70a13ff9b0
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "JUnit Test - AuthenticationKeyDataListenerTest"
Lori Jakab [Thu, 9 Jun 2016 00:26:41 +0000 (00:26 +0000)]
Merge "JUnit Test - AuthenticationKeyDataListenerTest"

8 years agoMerge "Restoring authentication key from MDSAL."
Lori Jakab [Thu, 9 Jun 2016 00:25:31 +0000 (00:25 +0000)]
Merge "Restoring authentication key from MDSAL."

8 years agoRestoring authentication key from MDSAL. 91/39591/5
Jozef Gloncak [Mon, 30 May 2016 06:43:16 +0000 (08:43 +0200)]
Restoring authentication key from MDSAL.

Restoring authentication data to SimpleMapCache in Southbound.

Change-Id: I44426d61d96bdca1f92d0c3a19ab7615ba7e5206
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoFix: LispAddressUtil - Incorrect address type 16/40016/1
Miroslav Toth [Wed, 8 Jun 2016 10:34:56 +0000 (12:34 +0200)]
Fix: LispAddressUtil - Incorrect address type

Change-Id: Ifc909b243877a2404e015b7e154cb0807c612d5a
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoJUnit Test - AuthenticationKeyDataListenerTest 84/39884/5
Miroslav Toth [Mon, 6 Jun 2016 13:04:45 +0000 (15:04 +0200)]
JUnit Test - AuthenticationKeyDataListenerTest

Change-Id: I8dc2552bae0cb3645d47605cecbea12e4d3d04c6
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoJUnit Test - SourceDestKeyHelperTest 44/39944/2
Miroslav Toth [Tue, 7 Jun 2016 12:20:56 +0000 (14:20 +0200)]
JUnit Test - SourceDestKeyHelperTest

Change-Id: Iaaddcfb4a89a34fcdcabb3d5c5567f359148a8b7
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoFix reading mappings and keys with RPCs 48/39948/3
Lorand Jakab [Tue, 7 Jun 2016 17:35:06 +0000 (20:35 +0300)]
Fix reading mappings and keys with RPCs

Change-Id: Ib01933c756d4ac97d423804aa810ef421e3884eb
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoAuto-convert String IPs in Mapping 34/39834/5
Lorand Jakab [Mon, 6 Jun 2016 19:06:39 +0000 (22:06 +0300)]
Auto-convert String IPs in Mapping

Change-Id: I9205ef0a86d9311f9d368e033ff8f983483d7e37
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoJUnit Test - LispMACAuthenticationTest 44/39844/3
Miroslav Toth [Fri, 3 Jun 2016 13:42:31 +0000 (15:42 +0200)]
JUnit Test - LispMACAuthenticationTest

Change-Id: I013ff257f54647b451d0ed5959ff62f5a8c0c823
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoJunit Test - LispMappingServiceTest update 31/39831/2
Miroslav Toth [Fri, 3 Jun 2016 11:05:47 +0000 (13:05 +0200)]
Junit Test - LispMappingServiceTest update

Change-Id: If512fcef95ff9d3bbbfd2ee8566179206f81baf2
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoMDSAL DS acces - standalone bundle. 85/39585/8
Jozef Gloncak [Mon, 30 May 2016 08:11:17 +0000 (10:11 +0200)]
MDSAL DS acces - standalone bundle.

Move data store back end access to standalone bundle.

Change-Id: Ic44b0757e9cf0d7b82fa0b1168c26303be780084
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoFix UnsupportedOperationException when authenticating 25/39825/1
Lorand Jakab [Fri, 3 Jun 2016 08:37:59 +0000 (11:37 +0300)]
Fix UnsupportedOperationException when authenticating

Change-Id: I02baf463c6585309c93ec7f5be91587602992ce7
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoFix binary AuthenticationKey lookup 80/39780/1
Lorand Jakab [Thu, 2 Jun 2016 15:30:28 +0000 (18:30 +0300)]
Fix binary AuthenticationKey lookup

Change-Id: I84357b7bb301b09cd342d818448fa309bca8abf3
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoAuto-convert String IP EIDs in AuthenticationKey 73/39773/1
Lorand Jakab [Thu, 2 Jun 2016 13:47:17 +0000 (16:47 +0300)]
Auto-convert String IP EIDs in AuthenticationKey

When performing operations with AuthenticationKey objects from the
Northbound, auto-convert the IP addresses and prefixes inside the object
to binary, if sent in String form, when storing to the InMemoryDb. Keep
the original objects in MD-SAL.

Change-Id: I0afb41d765f3a782d160ef1a01d01a4c101ea946
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoJUnit Test - LispSouthboundPluginTest 05/39605/6
Miroslav Toth [Wed, 25 May 2016 13:50:02 +0000 (15:50 +0200)]
JUnit Test - LispSouthboundPluginTest

Change-Id: Ifd0df9dbebe7c70ef0fbab474d852b466b38b9f9
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoJUnit Test - MapRequestUtilTest update 54/39754/3
Miroslav Toth [Thu, 2 Jun 2016 09:28:18 +0000 (11:28 +0200)]
JUnit Test - MapRequestUtilTest update

Change-Id: I6dac4d23d943052fcc1133474cf9d999c6d18fba
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoFix NPE thrown when closing lispSBHandler 22/39722/2
Miroslav Toth [Wed, 1 Jun 2016 15:51:55 +0000 (17:51 +0200)]
Fix NPE thrown when closing lispSBHandler

Change-Id: I5a1e24d8377a0981614dffb185620bf2f2ad7208
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoMerge "WIP: JUnit Test - MapRequestUtilTest"
Lori Jakab [Thu, 2 Jun 2016 08:27:05 +0000 (08:27 +0000)]
Merge "WIP: JUnit Test - MapRequestUtilTest"

8 years agoMerge "Make Map-Register cache configurable"
Vina Ermagan [Thu, 2 Jun 2016 07:09:12 +0000 (07:09 +0000)]
Merge "Make Map-Register cache configurable"

8 years agoMerge "Reorganize integration tests"
Vina Ermagan [Thu, 2 Jun 2016 06:52:06 +0000 (06:52 +0000)]
Merge "Reorganize integration tests"

8 years agoWIP: JUnit Test - MapRequestUtilTest 19/39719/2
Miroslav Toth [Wed, 1 Jun 2016 15:19:32 +0000 (17:19 +0200)]
WIP: JUnit Test - MapRequestUtilTest

Change-Id: I296d4475e0153606b944d8c36c96d7212e617503
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoJUnit Test - AuthenticationKeyDataListenerTest 00/39700/1
Miroslav Toth [Wed, 1 Jun 2016 09:19:59 +0000 (11:19 +0200)]
JUnit Test - AuthenticationKeyDataListenerTest

Change-Id: I1f02c0cc49a28b57f5d18a0b08ce53b3d2dc34d8
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoMake Map-Register cache configurable 10/39510/4
Lorand Jakab [Mon, 30 May 2016 09:42:26 +0000 (12:42 +0300)]
Make Map-Register cache configurable

Change-Id: Ic86a23d257e329490bf84d49b6cfc183a1b34c47
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoReorganize integration tests 09/39509/2
Lorand Jakab [Fri, 27 May 2016 07:06:33 +0000 (10:06 +0300)]
Reorganize integration tests

Change-Id: I3edbc826dee00a54d33379c5a611b3be04c7a09f
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoJUnit Test - MappingDataListenerTest 49/39649/5
Miroslav Toth [Tue, 31 May 2016 13:26:14 +0000 (15:26 +0200)]
JUnit Test - MappingDataListenerTest

Change-Id: I6a576588c1545242d2a4468601114c8b21330f4c
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoMerge "Remove unused southbound config-lisp.yang"
Vina Ermagan [Wed, 1 Jun 2016 02:27:25 +0000 (02:27 +0000)]
Merge "Remove unused southbound config-lisp.yang"

8 years agoMerge "Add statistics to Map-Register cache"
Vina Ermagan [Wed, 1 Jun 2016 02:20:42 +0000 (02:20 +0000)]
Merge "Add statistics to Map-Register cache"

8 years agoBug 5985 - Fixed paths in yang modules 44/39644/2
Matus Marko [Tue, 31 May 2016 12:30:25 +0000 (14:30 +0200)]
Bug 5985 - Fixed paths in yang modules

- Fixed paths in where clause for lisp-address/address choices
  in the folowing models
  - ietf-lisp-address-types.yang
  - odl-lisp-address-types.yang

Change-Id: I737e1a40efbd50c910cbead61e461a85b8710e0c
Signed-off-by: Matus Marko <matmarko@cisco.com>
8 years agoFix LispAddressUtilTest 96/39596/1
Lorand Jakab [Mon, 30 May 2016 11:19:12 +0000 (14:19 +0300)]
Fix LispAddressUtilTest

Not sure how the verify job passed...?

Change-Id: Ie3ad6e00a56c6330e45ffbc5672c52cef038c46e
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "JUnit Test - LispAddressStringifierTest update"
Lori Jakab [Mon, 30 May 2016 11:12:23 +0000 (11:12 +0000)]
Merge "JUnit Test - LispAddressStringifierTest update"

8 years agoJUnit Test - LispAddressStringifierTest update 92/39592/1
Miroslav Toth [Mon, 30 May 2016 10:49:46 +0000 (12:49 +0200)]
JUnit Test - LispAddressStringifierTest update

Change-Id: I7f5e3de8de21f14334ec004d1e38634315c084a6
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoMerge "JUnit Test - MaskUtilTest update"
Lori Jakab [Mon, 30 May 2016 10:10:15 +0000 (10:10 +0000)]
Merge "JUnit Test - MaskUtilTest update"

8 years agoMerge "JUnit Test - LispAddressUtilTest update"
Lori Jakab [Mon, 30 May 2016 09:47:10 +0000 (09:47 +0000)]
Merge "JUnit Test - LispAddressUtilTest update"

8 years agoJUnit Test - MaskUtilTest update 84/39584/1
Miroslav Toth [Mon, 30 May 2016 08:47:11 +0000 (10:47 +0200)]
JUnit Test - MaskUtilTest update

Change-Id: I9dbd94d18c2463f91ec52e60f4b77f1c288cf4d4
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoJUnit Test - LispAddressUtilTest update 15/39515/3
Miroslav Toth [Fri, 27 May 2016 08:50:38 +0000 (10:50 +0200)]
JUnit Test - LispAddressUtilTest update

Change-Id: I3bdd707016f07f54b1f113d6c7f9bc2f6a99eee3
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoBug - incorrect Ip version used 12/39512/1
Miroslav Toth [Fri, 27 May 2016 08:53:29 +0000 (10:53 +0200)]
Bug - incorrect Ip version used

Change-Id: Ic6dcb2d992aed78fc0383ded3a8ceff18554cfd0
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoRemove unused southbound config-lisp.yang 07/39507/1
Lorand Jakab [Thu, 26 May 2016 09:00:09 +0000 (12:00 +0300)]
Remove unused southbound config-lisp.yang

While at it, move the bind-address configuration parameter from
config-lisp.yang to odl-lisp-sb-impl.yang. Removing unused code should
also help with coverage.

Change-Id: I43aa29b585d7111402e3429e6fb3c865f343cb99
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoAdd statistics to Map-Register cache 47/39347/2
Lorand Jakab [Wed, 25 May 2016 17:47:23 +0000 (20:47 +0300)]
Add statistics to Map-Register cache

Change-Id: Ifb35087d65f8acd0d4f249a01f15d3bb688ffec8
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoAdding authentication to map notify message. 60/39260/7
Jozef Gloncak [Mon, 23 May 2016 14:09:34 +0000 (16:09 +0200)]
Adding authentication to map notify message.

Change-Id: I2c2f9451d452e397dc73a728b9eeac61d64a086c
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoMerge "Authentication to southbound"
Lori Jakab [Wed, 25 May 2016 14:47:48 +0000 (14:47 +0000)]
Merge "Authentication to southbound"

8 years agoAuthentication to southbound 74/38974/13
Jozef Gloncak [Tue, 17 May 2016 14:00:32 +0000 (16:00 +0200)]
Authentication to southbound

- move authentication from implementation to southbound bundle
- copy of AuthenticationKeyDataListener also in southbound (duplicite code)
  maybe it would be suitable extract it to common bundle
- move code for validation of authentication data to southbound from
  mapping system
- if map register message contains more than 1 record checks whether
  every authentication key related with eid is the same (if no throw away
  message and log warning)
- removing authentication (setter, getter, constructor parameter) from
  implementation bundle

Change-Id: Ib5261a992a5a3b3cba9715ba5b23307d73e325dc
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoJUnit Test - LispSouthboundStatsTest 05/39405/3
Miroslav Toth [Wed, 25 May 2016 08:10:17 +0000 (10:10 +0200)]
JUnit Test - LispSouthboundStatsTest

Change-Id: I22016594b443e16de4e69db31389416cafb51061
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoJUnit Test - LispSouthboundRpcTest 59/39359/4
Miroslav Toth [Tue, 24 May 2016 14:16:41 +0000 (16:16 +0200)]
JUnit Test - LispSouthboundRpcTest

Change-Id: Ia27cdd3c144c8fa6a3d5c03039ee4533c1dc6713
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoFix build 90/39390/1
Lorand Jakab [Wed, 25 May 2016 08:11:35 +0000 (11:11 +0300)]
Fix build

Change-Id: I6361a3cc78f043e4f4f2dedc09e4fd5cfeaf8403
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "Moving authentication to southbound"
Vina Ermagan [Wed, 25 May 2016 03:37:45 +0000 (03:37 +0000)]
Merge "Moving authentication to southbound"

8 years agoMerge "Switch IP prefix (de)serialization to binary"
Vina Ermagan [Wed, 25 May 2016 03:21:47 +0000 (03:21 +0000)]
Merge "Switch IP prefix (de)serialization to binary"

8 years agoMoving authentication to southbound 74/39174/6
Jozef Gloncak [Fri, 20 May 2016 12:25:47 +0000 (14:25 +0200)]
Moving authentication to southbound

Moves authentication classes to southbound
Comments some tests which fails due to moving authentication
to southbound.

Change-Id: Ia6efe8db40c628129403579874da9a5b40bcf1ec
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoJUnit Test - LispXtrSouthboundHandlerTest 76/39176/3
Miroslav Toth [Thu, 19 May 2016 08:28:05 +0000 (10:28 +0200)]
JUnit Test - LispXtrSouthboundHandlerTest

Change-Id: If7180c0b22bbc9b6e2acac01c8d4ea95ffcfb6c0
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoSwitch IP prefix (de)serialization to binary 30/39230/4
Lorand Jakab [Mon, 23 May 2016 08:32:08 +0000 (11:32 +0300)]
Switch IP prefix (de)serialization to binary

Use Ipv4prefixBinary and Ipv6PrefixBinary objects as containers for
prefixes (de)serialized from/to the wire and add support for masking,
normalizing and printing them. this patch however doesn't add code for
automated conversion of IpvXprefix objects to/from IpvXPrefixBinary
objects along the Northbound+MD-SAL and Southbound+InMemory boundary.

Change-Id: Iebc7f9f1cee2a289488da50b8fc2627e5b6a1582
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMake binary YANG model more usable 90/39190/3
Lorand Jakab [Sat, 21 May 2016 13:01:44 +0000 (16:01 +0300)]
Make binary YANG model more usable

It is not strictly necessary to wrap multiple leaves under a case into a
container. Avoiding the container makes the resulting code much simpler.

Change-Id: I2fe49e755fd03b802892335bc6aea02c3ee0f625
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoRemove unnecessary mockito dependency 30/39130/1
Lorand Jakab [Thu, 19 May 2016 19:27:36 +0000 (22:27 +0300)]
Remove unnecessary mockito dependency

No need for the mockito dependency declaration in mapcache, since we
already have it in the parent pom. This slipped in dues to the ordering
of the previous patches submitted (cleanup, and map-cache spin-out).

Change-Id: If0a4c34675d4187b5c74c2ff6134412550aeb411
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoYANG support for binary IPv4/v6 prefixes 24/39024/3
Lorand Jakab [Tue, 17 May 2016 12:32:47 +0000 (15:32 +0300)]
YANG support for binary IPv4/v6 prefixes

Change-Id: I87fb1c1fa489959d86834b9ec4b72ff9973ca29f
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "JUnit Test - MappingSystemTest"
Lori Jakab [Thu, 19 May 2016 18:02:47 +0000 (18:02 +0000)]
Merge "JUnit Test - MappingSystemTest"

8 years agoMerge "Use cache in map register message."
Lori Jakab [Thu, 19 May 2016 13:14:16 +0000 (13:14 +0000)]
Merge "Use cache in map register message."

8 years agoUse cache in map register message. 03/38103/34
Jozef Gloncak [Tue, 26 Apr 2016 09:20:53 +0000 (11:20 +0200)]
Use cache in map register message.

Map register messages are stored to special cache (hash map).

Key for this has map consists of eid-prefix, site-id and xtr-id.
Components of key are stored as byte arrays.

Value part of cache entry contains transformed value from key
(site-id and xtr-id and complete list of eid-prefixes). Additionaly
there is also timestamp (time of creation or refresh the cache entry),
want-map-notify value and complete original value of received map
register message.

Also new type of message mapping-keep-alive is added. This
notification is raised if map-register message is received and is
found in cache.

At the end if map-notify-bit is set then also notify message is
directly generated from southbound.

Change-Id: I6c5ba8e6ff226d5f4a7b5964159dc138a4bbfc33
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoJUnit Test - MappingSystemTest 72/38872/8
Miroslav Toth [Fri, 6 May 2016 12:38:49 +0000 (14:38 +0200)]
JUnit Test - MappingSystemTest

Change-Id: Iea58377822e1f6bb3db1dba1804f63d0a38db5d6
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoJUnit Test - SimpleMapCacheTest 92/39092/2
Miroslav Toth [Thu, 19 May 2016 07:34:57 +0000 (09:34 +0200)]
JUnit Test - SimpleMapCacheTest

Change-Id: I37f803a34e331ad9a1669b4b41145253ee66615c
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoMerge "Import only mockito-core instead of mockito-all"
Vina Ermagan [Wed, 18 May 2016 21:29:03 +0000 (21:29 +0000)]
Merge "Import only mockito-core instead of mockito-all"

8 years agoSpin out mapcache package from implementation 59/39059/1
Lorand Jakab [Wed, 18 May 2016 17:36:47 +0000 (20:36 +0300)]
Spin out mapcache package from implementation

We will need SimpleMapCache in both implementation and southbound, hence
splitting out the mapcache package from implementation as its own
bundle. As a result MappingMergeUtil needs to be split into two part,
with a small overlap. Some config values are rewritten as constants
until a proper configuration infrastructure is in place, or we at least
spin out the config package too.

Change-Id: Iff6aaeb79a2e310e62c343aa2ca6d5fc868e5a94
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoImport only mockito-core instead of mockito-all 49/39049/3
Lorand Jakab [Wed, 18 May 2016 14:20:06 +0000 (17:20 +0300)]
Import only mockito-core instead of mockito-all

Also, move up the dependency to mappingservice/pom.xml, since we're
using it everywhere.

Change-Id: Ib6886dfb25e6b4ce5f43279f474d9b7679ee1ad2
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoJUnit Test - LispNotificationHelperTest 42/39042/1
Miroslav Toth [Tue, 26 Apr 2016 11:31:49 +0000 (13:31 +0200)]
JUnit Test - LispNotificationHelperTest

Change-Id: I17d4e84331be74d4e5ab45755c5bf8ed686b486c
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoMerge "MultiTableMapCacheTest test update"
Lori Jakab [Wed, 18 May 2016 11:53:29 +0000 (11:53 +0000)]
Merge "MultiTableMapCacheTest test update"

8 years agoSwitch Ipv4 and Ipv6 (de)serialization to binary 81/38881/6
Lorand Jakab [Tue, 17 May 2016 10:04:21 +0000 (13:04 +0300)]
Switch Ipv4 and Ipv6 (de)serialization to binary

Change-Id: If6c5879a60dbc29bf3104812a671502a220df20d
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoAdd 'case' to augmented lisp-addresses 16/38816/3
Lorand Jakab [Thu, 12 May 2016 18:15:00 +0000 (21:15 +0300)]
Add 'case' to augmented lisp-addresses

Change-Id: Ieca4a7362e15cb960aca44c59cb544445eec7fea
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoSwitch source-rloc and transport-address to binary 96/38496/4
Lorand Jakab [Thu, 12 May 2016 16:06:24 +0000 (19:06 +0300)]
Switch source-rloc and transport-address to binary

Change-Id: Iea80f965091dc09667af6804f116e20c0c06d7a9
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "Adapt updateMappingRegistration() methods for cache"
Vina Ermagan [Tue, 17 May 2016 19:29:15 +0000 (19:29 +0000)]
Merge "Adapt updateMappingRegistration() methods for cache"

8 years agoMultiTableMapCacheTest test update 66/38966/1
Miroslav Toth [Tue, 17 May 2016 12:09:16 +0000 (14:09 +0200)]
MultiTableMapCacheTest test update

Change-Id: I684a6547980abc5a58c6b738ac9a28d3c09dc62b
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoAdapt updateMappingRegistration() methods for cache 57/38657/2
Lorand Jakab [Fri, 13 May 2016 09:03:21 +0000 (12:03 +0300)]
Adapt updateMappingRegistration() methods for cache

We have updateMappingRegistration() methods in our APIs, but they are
currently unused, and only take the EID as the input, to update its
mapping with the current system time as timestamp.

In preparation of the Map-Register cache, this patch updates the API and
code to use the EID and the timestamp as arguments to the
method. While in first phase we only need the timestamp from the
metadata, when caching for merging will be implemented, we will need
more information (at least xTR-ID). For that we will add new API calls.

Change-Id: Id1b0721cccd72b31470542a1ff5d6c4b16766e65
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoRemove old AbstractDataListener 11/38811/1
Lorand Jakab [Thu, 12 May 2016 16:43:36 +0000 (19:43 +0300)]
Remove old AbstractDataListener

We don't want to keep around unused code (especially not when it's using
deprecated interfaces).

Change-Id: I28c7bc768b13673415039255c37b852b50bacb1d
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoJUnit Test - MaskUtilTest 68/38668/2
Miroslav Toth [Wed, 11 May 2016 13:24:43 +0000 (15:24 +0200)]
JUnit Test - MaskUtilTest

Change-Id: I064f4934b70ec6a6d001caef3b17baf743261f72
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoYANG model for the Map-Register cache 02/38502/5
Lorand Jakab [Wed, 11 May 2016 08:27:52 +0000 (11:27 +0300)]
YANG model for the Map-Register cache

Change-Id: Ib2a5171731347ef600d09ddcc37af14c48e0deee
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoJUnit test - SimpleMapCacheTest 64/38164/9
Miroslav Toth [Mon, 21 Mar 2016 12:11:51 +0000 (13:11 +0100)]
JUnit test - SimpleMapCacheTest

Change-Id: Ic91d4286ad45a1e03c5cd95f43dd9d9265665672
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoJUnit Test - DataStoreBackEnd 33/38433/4
Miroslav Toth [Thu, 5 May 2016 07:42:11 +0000 (09:42 +0200)]
JUnit Test - DataStoreBackEnd

Change-Id: Idb1d47e31cf14f85ad052b59e059f1076ab5b6c1
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoMerge "Add starting point for southbound dev docs"
Vina Ermagan [Fri, 6 May 2016 00:58:11 +0000 (00:58 +0000)]
Merge "Add starting point for southbound dev docs"

8 years agoMerge "YANG support for binary IPv4/v6 addresses/prefixes"
Vina Ermagan [Fri, 6 May 2016 00:57:21 +0000 (00:57 +0000)]
Merge "YANG support for binary IPv4/v6 addresses/prefixes"

8 years agoAdd starting point for southbound dev docs 23/38423/1
Lorand Jakab [Thu, 5 May 2016 13:10:24 +0000 (16:10 +0300)]
Add starting point for southbound dev docs

Change-Id: I8266d20e94e70df3a8f53020543d96f561053a67
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoYANG support for binary IPv4/v6 addresses/prefixes 15/38315/4
Lorand Jakab [Tue, 3 May 2016 10:58:34 +0000 (13:58 +0300)]
YANG support for binary IPv4/v6 addresses/prefixes

Change-Id: Idad7cd035a06821541f15fa35ef7bbc606beb3b0
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "Remove unused JERSEY constant"
Vina Ermagan [Wed, 4 May 2016 06:25:14 +0000 (06:25 +0000)]
Merge "Remove unused JERSEY constant"

8 years agoRemove unused JERSEY constant 44/38344/1
Ryan Goulding [Tue, 3 May 2016 19:19:31 +0000 (15:19 -0400)]
Remove unused JERSEY constant

Since JERSEY is unused, this patch removes the constant.  This is to aid
in clarifying what needs to be changed for the global ODL change from
Jersey 1 to Jersey 2.

Change-Id: I1c63465dc33a795606d253c586cacc6edaeeb7d0
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoMerge activation by Map-Register flag 33/38333/1
Lorand Jakab [Tue, 3 May 2016 13:36:21 +0000 (16:36 +0300)]
Merge activation by Map-Register flag

In addition to user configuration, use the merge-enabled flag in
Map-Register messages to activate mapping merging. Only when both are
enabled will merging happen.

Change-Id: I81fc7657111902478490ed7a01c88f736e4cb7dc
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoJUnit Test - MappingMergeUtilTest 13/37813/9
Miroslav Toth [Tue, 19 Apr 2016 11:40:07 +0000 (13:40 +0200)]
JUnit Test - MappingMergeUtilTest

Change-Id: I678f4d74b7127e55b4f8ad66ee1661a5bd9c8cba
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoMake some expensive debug logging conditional 60/38160/2
Lorand Jakab [Wed, 27 Apr 2016 16:06:58 +0000 (19:06 +0300)]
Make some expensive debug logging conditional

Change-Id: Id6462b06e3299bf624a970e7a0524b05120b26dd
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoRemove maskLength from MappingRecord 10/38110/2
Lorand Jakab [Wed, 27 Apr 2016 13:11:59 +0000 (16:11 +0300)]
Remove maskLength from MappingRecord

The maskLength field was deprecated in Beryllium, when we switched to
the IETF LISP address type model, and its value is now integral part if
the Eid field, which can be a prefix. We can now remove it, to avoid
further confusion.

Change-Id: I7f464bc157065b79bab6110eecf0c71c16aa125b
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoJUnit Test - MapServerTest rewritten with Mockito 25/37325/13
Miroslav Toth [Fri, 8 Apr 2016 13:01:27 +0000 (15:01 +0200)]
JUnit Test - MapServerTest rewritten with Mockito

Change-Id: I72fdaf33538d17e814b3c3f48e191cce04a36a8f
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoBug 5795: Fix SourceDestKey type check 58/38058/3
Miroslav Toth [Mon, 25 Apr 2016 13:35:54 +0000 (15:35 +0200)]
Bug 5795: Fix SourceDestKey type check

Change-Id: I5e0a0c839210b4a720de4cf9f187cb42fa9be49d
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoMerge "JUnit Test - LispMappingServiceTest with Mockito"
Lori Jakab [Thu, 21 Apr 2016 09:43:22 +0000 (09:43 +0000)]
Merge "JUnit Test - LispMappingServiceTest with Mockito"

8 years agoJUnit Test - LispMappingServiceTest with Mockito 17/37717/4
Miroslav Toth [Mon, 18 Apr 2016 10:08:43 +0000 (12:08 +0200)]
JUnit Test - LispMappingServiceTest with Mockito

Change-Id: I0e95278a2de5097227b3878db6c4dfc2808e13fe
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoJUnit Test - MappingServiceTest using Mockito 73/37273/4
Miroslav Toth [Wed, 6 Apr 2016 10:39:39 +0000 (12:39 +0200)]
JUnit Test - MappingServiceTest using Mockito

Change-Id: Ibe59d82c2ed6fd651eb274addea0181994abcf7f
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoMerge "Remove handleMapRegister(MapRegister, boolean)"
Vina Ermagan [Thu, 21 Apr 2016 07:46:34 +0000 (07:46 +0000)]
Merge "Remove handleMapRegister(MapRegister, boolean)"

8 years agoMerge "Remove <nexusproxy> poroperty"
Vina Ermagan [Thu, 21 Apr 2016 07:36:18 +0000 (07:36 +0000)]
Merge "Remove <nexusproxy> poroperty"

8 years agoRemove handleMapRegister(MapRegister, boolean) 53/37953/2
Lorand Jakab [Thu, 21 Apr 2016 06:41:38 +0000 (09:41 +0300)]
Remove handleMapRegister(MapRegister, boolean)

The boolean variable is no longer used in the method, and the method
itself was only used in commented out integration tests, so there is no
reason to keep it around. (It was ugly to begin with.)

Check SFC as well, it's not used there either.

Change-Id: Id3aa0d7aadfd8f354e3cf5af2ab6b980dda0939f
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoRemove <nexusproxy> poroperty 51/37951/1
Lorand Jakab [Thu, 21 Apr 2016 06:37:27 +0000 (09:37 +0300)]
Remove <nexusproxy> poroperty

It is already present in odlparent, and has caused problems after
switching Nexus to HTTPS. See [1].

[1] https://wiki.opendaylight.org/view/Weather#Nexus_URL_requires_HTTPS

Change-Id: I6fc362622ccd238e3c025a8e88b8c0fb232c7705
Signed-off-by: Lorand Jakab <lojakab@cisco.com>