lispflowmapping.git
8 years agoMigrate implementation/neutron/southbound to IETF YANG model 03/28303/35
Lorand Jakab [Mon, 30 Nov 2015 23:09:26 +0000 (01:09 +0200)]
Migrate implementation/neutron/southbound to IETF YANG model

Change-Id: I2e7738f5c518a51c1a309d63854bfaced3d6375c
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoMigrate lisp-proto implementation to IETF YANG model 69/30269/8
Lorand Jakab [Tue, 1 Dec 2015 13:53:19 +0000 (15:53 +0200)]
Migrate lisp-proto implementation to IETF YANG model

Change-Id: I8f769d01f2c643960a1693b1f385100e2c3ed34e
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge branch 'master' into topic/ietf_yang 47/29847/1
Lorand Jakab [Wed, 18 Nov 2015 11:04:12 +0000 (13:04 +0200)]
Merge branch 'master' into topic/ietf_yang

Change-Id: I7cb3bb7f8f6423db3bf51e0b49e66a4472d2c03a
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoAdd odl- prefix to YANG files 29/29829/2
Lorand Jakab [Tue, 17 Nov 2015 19:43:44 +0000 (21:43 +0200)]
Add odl- prefix to YANG files

Prefix all ODL originateded YANG files with odl- just like IETF
originated YANG files start with ietf- to avoid potential name clashes,
when connecting devices with their own YANG models to ODL.

Change-Id: I05b8bf89872d89cf5fb6d2a4b5d0f499f9c26449
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoUpdate imports to reference new YANG revisions 23/29523/1
Lorand Jakab [Tue, 10 Nov 2015 21:40:13 +0000 (22:40 +0100)]
Update imports to reference new YANG revisions

Change-Id: Iee78c812f19e5b67267bbe6bee30f3cce246e15b
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoRemmoving EIDToLocatorRecord grouping which was not used, merging with mapping-record... 15/29415/1
vermagan@cisco.com [Sun, 8 Nov 2015 02:50:49 +0000 (11:50 +0900)]
Remmoving EIDToLocatorRecord grouping which was not used, merging with mapping-record-container.

Change-Id: Idac347e7051d9e205160b79279d1d9046bc70d95
Signed-off-by: vermagan@cisco.com <vermagan@cisco.com>
8 years agoAdd ietf- prefix to lisp-address-types and bump revision 29/29329/3
Lorand Jakab [Thu, 5 Nov 2015 17:13:16 +0000 (12:13 -0500)]
Add ietf- prefix to lisp-address-types and bump revision

Change-Id: I1190c456c6c31a789bb202d4cd00eeed304309c6
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoRemove `case` statement from lisp-address-types 63/29263/5
Lorand Jakab [Thu, 5 Nov 2015 17:10:42 +0000 (12:10 -0500)]
Remove `case` statement from lisp-address-types

Change-Id: I1ab3f19c6c726d5f6c33000902d0bae5b7a69d99
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoRemove unused content from lisp-proto.yang 28/29328/2
Lorand Jakab [Thu, 5 Nov 2015 16:50:12 +0000 (11:50 -0500)]
Remove unused content from lisp-proto.yang

Change-Id: Iaaa3e7ec4055217d121930d9c1187bf50259f513
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoAdd RPCs for handling lists 91/28891/3
Lorand Jakab [Thu, 5 Nov 2015 15:44:38 +0000 (10:44 -0500)]
Add RPCs for handling lists

Change-Id: I7aae47545c10a10f9ce7d1ced949820be4597b6a
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMove mappingservice-shell to separate feature 43/29043/3
Florin Coras [Fri, 30 Oct 2015 19:03:51 +0000 (20:03 +0100)]
Move mappingservice-shell to separate feature

Change-Id: Id171e793d0b3da70821e459c5d5b7d0660533eaa
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoRename list keys to suggest uniqueness requirement 54/28854/1
Lorand Jakab [Tue, 27 Oct 2015 20:07:38 +0000 (22:07 +0200)]
Rename list keys to suggest uniqueness requirement

Change-Id: Ieb2840d5da99bd03af8d74cd00c1d9a9a9d56899
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoAdd revision to YANG imports 45/28845/1
Lorand Jakab [Tue, 27 Oct 2015 13:56:37 +0000 (15:56 +0200)]
Add revision to YANG imports

These are required, otherwise the binding code is looking for the wrong
revision, casing class not found expcetions.

Change-Id: Ia0579ca99006a48b15e2c5cffaa4dbd8db37543a
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoAdding Service Path LCAF support for lisp address type yang model. 16/28716/4
vermagan@cisco.com [Thu, 22 Oct 2015 23:29:19 +0000 (16:29 -0700)]
Adding Service Path LCAF support for lisp address type yang model.

Change-Id: Idb19c18f07b3259d6d1da3810eb662d17fa3d0c0
Signed-off-by: vermagan@cisco.com <vermagan@cisco.com>
8 years agoWrap choices in 'case' statement 21/28821/1
Lorand Jakab [Mon, 26 Oct 2015 21:21:22 +0000 (23:21 +0200)]
Wrap choices in 'case' statement

Change-Id: I544efb098601adf6ec6a03659d47924a78e1a6bd
Signed-off-by: Vina Ermagan <vermagan@cisco.com>
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerging lcal address with lisp-address. 36/28636/3
vermagan@cisco.com [Wed, 21 Oct 2015 07:25:35 +0000 (00:25 -0700)]
Merging lcal address with lisp-address.

Change-Id: I0c3b973d010431f53568ee1c944f7c2c426a22f2
Signed-off-by: vermagan@cisco.com <vermagan@cisco.com>
8 years agoUpdate mappingservice API to refer to VNI instead of IID 91/28591/2
Lorand Jakab [Tue, 20 Oct 2015 11:15:04 +0000 (14:15 +0300)]
Update mappingservice API to refer to VNI instead of IID

Change-Id: I40ddca2a51cf51672a80174a38b0bbe70a618932
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMore {{VERSION}} in features.xml 20/28620/1
Lorand Jakab [Tue, 20 Oct 2015 19:14:07 +0000 (22:14 +0300)]
More {{VERSION}} in features.xml

This email thread [1] pointed out that feature repositories can use
{{VERSION}} as well.

[1] https://lists.opendaylight.org/pipermail/dev/2015-October/001337.html

Change-Id: Ia1a0acd3e55706d7a37f0615664ff54610c37883
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoContainerize lisp-address everywhere 57/28457/11
Lorand Jakab [Tue, 20 Oct 2015 12:38:46 +0000 (15:38 +0300)]
Containerize lisp-address everywhere

Change-Id: Ie11ae5953a40af2b95bb75b1f4ffa3f9a23208ff
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoAdd model for key-value-address LCAF 00/28400/2
Lorand Jakab [Wed, 14 Oct 2015 15:37:50 +0000 (18:37 +0300)]
Add model for key-value-address LCAF

Change-Id: I93250aef49091b4c32d4a276d26360b67fb6e868
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoAvoid more duplicate generated POJO names 98/28398/3
Lorand Jakab [Mon, 19 Oct 2015 08:32:30 +0000 (11:32 +0300)]
Avoid more duplicate generated POJO names

Change-Id: I9ff1c8da354fc9c109390dc176195152b81f2620
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoSwitch to using {{VERSION}} in features.xml 52/28452/1
Lorand Jakab [Thu, 15 Oct 2015 14:11:23 +0000 (17:11 +0300)]
Switch to using {{VERSION}} in features.xml

The recommended way to define versions in the features.xml file is to
use {{VERSION} instead of properties.  See [1] for a recent thread on
the topic.  For now only the <bundle> and <configfile> tags are
supported [2].

[1] https://lists.opendaylight.org/pipermail/controller-dev/2015-October/010674.html
[2] https://git.opendaylight.org/gerrit/gitweb?p=odlparent.git;a=blob;f=features-parent/pom.xml;h=08c06730f5455b2555dfccf292e2a27bedccf01e;hb=HEAD#l76

Change-Id: I235b9d8821236d9cb95e8b8c9d7a04e816f7ac1b
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoAvoid NPE for mapping queries with null source EID 79/28379/1
Florin Coras [Wed, 14 Oct 2015 11:01:21 +0000 (13:01 +0200)]
Avoid NPE for mapping queries with null source EID

Change-Id: I299864df0b1ae56bbd7effb20b670081a44c2f40
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoWait indefinitely for the shell service reference 72/28372/2
Lorand Jakab [Wed, 14 Oct 2015 09:06:37 +0000 (12:06 +0300)]
Wait indefinitely for the shell service reference

Change-Id: I34df03e3cdac176d5ec5c1c485ee8d0059cd77bf
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoContainerize the use of lisp-address 21/28321/1
Lorand Jakab [Tue, 13 Oct 2015 10:08:28 +0000 (13:08 +0300)]
Containerize the use of lisp-address

Change-Id: Ie67fb6733ba4161b55033ba2768d1e84a72ea714
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoAvoid duplicate POJO names using -afi/-lcaf suffix 01/28301/5
Lorand Jakab [Tue, 13 Oct 2015 08:14:22 +0000 (11:14 +0300)]
Avoid duplicate POJO names using -afi/-lcaf suffix

Change-Id: Iff0b677afe0e5568c762908fbb868d2c535d619d
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge branch 'master' into topic/ietf_yang 88/28288/1
Lorand Jakab [Mon, 12 Oct 2015 14:10:24 +0000 (17:10 +0300)]
Merge branch 'master' into topic/ietf_yang

Change-Id: I489ceff034e498cff459393c7284370710dc12c6
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoDistinguish between address and prefix for IPvX 12/28212/1
Lorand Jakab [Fri, 9 Oct 2015 14:05:04 +0000 (17:05 +0300)]
Distinguish between address and prefix for IPvX

Change-Id: I183a49ea0bef8097d38d01645e5fa939fa0cc9ec
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoGet rid of some Eclipse warnings 09/28209/1
Lorand Jakab [Fri, 9 Oct 2015 12:12:15 +0000 (15:12 +0300)]
Get rid of some Eclipse warnings

Checkstyle missed some source files, so the rules are now strengthened.

Change-Id: Ibdf646edf850be6b52d0af641fa3c64d8804cb32
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMove implementation to the new notification service 56/27956/3
Lorand Jakab [Thu, 8 Oct 2015 08:25:51 +0000 (11:25 +0300)]
Move implementation to the new notification service

Change-Id: I22166138718827bc5641fa0d49f29aa24a9f8007
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMove southbound to the new notification service 18/27918/4
Lorand Jakab [Mon, 5 Oct 2015 15:19:39 +0000 (18:19 +0300)]
Move southbound to the new notification service

We still use the controller project for the dependency, but this should
make it easier to switch to the mdsal project when the time comes.

Change-Id: I007c9bd27c5e5c65d3a066ae55ae5ff15007e107
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoImprove consistency of YANG model namespaces 15/28015/2
Lorand Jakab [Wed, 7 Oct 2015 16:04:38 +0000 (19:04 +0300)]
Improve consistency of YANG model namespaces

Change-Id: I5a42bd12832a0c563428dc99d7b2e120678ce4f6
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "Bug 4424: Remove non-existing features-base"
Vina Ermagan [Wed, 7 Oct 2015 00:34:37 +0000 (00:34 +0000)]
Merge "Bug 4424: Remove non-existing features-base"

8 years agoBug 4424: Remove non-existing features-base 78/27978/3
Lorand Jakab [Tue, 6 Oct 2015 21:30:40 +0000 (00:30 +0300)]
Bug 4424: Remove non-existing features-base

Change-Id: I637092ce4820df6ce8435377f5361faaec2f59af
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoFix inmemorydb race condition 86/27986/1
Lorand Jakab [Tue, 6 Oct 2015 20:23:28 +0000 (23:23 +0300)]
Fix inmemorydb race condition

Change-Id: I59a51ae069791d1b069185050e0b9b81c0e3ddb8
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoSwitch to using lisp-address instead of LispAddress 56/27756/4
Lorand Jakab [Thu, 1 Oct 2015 16:17:22 +0000 (19:17 +0300)]
Switch to using lisp-address instead of LispAddress

This commit modifies the build to make experimentation easy. Modules
that wouldn't build are commented out, tests that would fail are skipped
by default, and Karaf will only load odl-lispflowmapping-models instead
of the odl-lispflowmapping-msmr feature. Additionally odl-mdsal-apidoc
is pulled in automatically.

If you start Karaf after a successful build, you should be able to
explore the API and play with adding/removing keys/mappings to/from the
config datastore.

Change-Id: I70fd3c950d4b668bc57fa55a8156b76fe2751437
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoRemove hardcoded karaf version from IT 21/27921/1
Lorand Jakab [Mon, 5 Oct 2015 08:49:54 +0000 (11:49 +0300)]
Remove hardcoded karaf version from IT

This allows the version bumping scripts to work without the need to
manually modify a Java file.

Change-Id: Ief4ef577fbfcc17ef842284cf432b976a671faf5
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit 6f1b9f93748bc1d92d1e936ec13d6979d497a831)

8 years agoUpdate tutorial Postman for Beryllium 19/27919/1
Lorand Jakab [Wed, 30 Sep 2015 16:49:39 +0000 (19:49 +0300)]
Update tutorial Postman for Beryllium

Change-Id: I5733da2c43eb0098a16639247e7a3c77f620348c
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit 6385e4b99da00ddbcda3e127813e7053d150363a)

8 years agoRemove hardcoded karaf version from IT 91/27891/1
Lorand Jakab [Mon, 5 Oct 2015 08:49:54 +0000 (11:49 +0300)]
Remove hardcoded karaf version from IT

This allows the version bumping scripts to work without the need to
manually modify a Java file.

Change-Id: Ief4ef577fbfcc17ef842284cf432b976a671faf5
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoUpdate tutorial Postman for Beryllium 76/27676/1
Lorand Jakab [Wed, 30 Sep 2015 16:49:39 +0000 (19:49 +0300)]
Update tutorial Postman for Beryllium

Change-Id: I5733da2c43eb0098a16639247e7a3c77f620348c
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMove karaf shell commands to the config subsystem 80/27580/1
Lorand Jakab [Fri, 25 Sep 2015 12:43:54 +0000 (14:43 +0200)]
Move karaf shell commands to the config subsystem

Change-Id: I2190e38c81081de8778a791baa2ffc6795c1a791
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit e4eb4c141c3e2fb820fa0129574dd565f311d0cb)

8 years agoAdd support for AS Number and No Address base types 36/27536/1
Lorand Jakab [Mon, 28 Sep 2015 14:09:23 +0000 (17:09 +0300)]
Add support for AS Number and No Address base types

Change-Id: Ice1a024572fe302d5b98c9f537b86d3c93c8a5c6
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoStart work on IETF YANG integration 73/27473/2
Lorand Jakab [Fri, 25 Sep 2015 21:49:16 +0000 (23:49 +0200)]
Start work on IETF YANG integration

Change-Id: Ia4e453cb916bc95227fb59a6549e5a3612ca5969
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMove karaf shell commands to the config subsystem 36/27436/1
Lorand Jakab [Fri, 25 Sep 2015 12:43:54 +0000 (14:43 +0200)]
Move karaf shell commands to the config subsystem

Change-Id: I2190e38c81081de8778a791baa2ffc6795c1a791
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMove lisp-config to the southbound bundle 93/27393/1
Lorand Jakab [Thu, 24 Sep 2015 13:45:24 +0000 (15:45 +0200)]
Move lisp-config to the southbound bundle

The module is configuring southbound related variables (binding
address), so it belongs there. This commit just migrates files from the
separate old "config" bundle, with is deleted. Further modifications (if
necessary) will be done in a different commit.

Change-Id: I3af5a98f7c0be1020141f9edf925a14b72470dfe
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMove service definitions to mappingservice.api 61/27161/3
Lorand Jakab [Tue, 22 Sep 2015 19:18:16 +0000 (21:18 +0200)]
Move service definitions to mappingservice.api

They define an API so that's a better place, it allows alternative
implementations and make it possible to get a service reference without
making implementations a dependency (thus avoinding potential circular
dependencies).

Change-Id: Icef7d033847d50369c711164e975cbde0bfb165d
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoPretty JSON for detailed view at tables 55/27055/4
Alberto Montes [Wed, 16 Sep 2015 16:20:49 +0000 (18:20 +0200)]
Pretty JSON for detailed view at tables

Now, at the view button of the Keys and Mappings tables show the JSON of the object in a pretty way.

Change-Id: I54ae7a55988232ef5d392fe153f27b1477e55439
Signed-off-by: Alberto Montes <al.montes.gomez@gmail.com>
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoFix integration tests failure 05/27305/1
Lorand Jakab [Tue, 22 Sep 2015 17:38:35 +0000 (19:38 +0200)]
Fix integration tests failure

Change-Id: I675633722934cd72851d1f5b6f30d3380463249e
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoReorganize features 94/26994/2
Lorand Jakab [Tue, 15 Sep 2015 21:24:11 +0000 (00:24 +0300)]
Reorganize features

  - Remove the *-all feature, since it's use is not recommended
  - Introduce a less inclusive than *-all user facing feature: *-msmr
  - Make *-southbound a standalone feature
  - Reduce dependencies for *-ui

Change-Id: I2336995b4089ad47fa1327cb67d8b4e7df708873
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoAdd basic southbound statistics 49/26649/3
Lorand Jakab [Sat, 12 Sep 2015 00:39:25 +0000 (03:39 +0300)]
Add basic southbound statistics

Add control packet counters to the southbound plugin.  For now, they are
accessible through the RPC interface.  They will be exposed through the
operational datastore eventually, and possibly through an MBean.

Change-Id: I9733a622b56826b030f103c1e6607182af624a56
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoSeparate MappingService from LispMappingService 25/26725/4
Florin Coras [Sat, 5 Sep 2015 13:09:19 +0000 (15:09 +0200)]
Separate MappingService from LispMappingService

This is the last in a series of patches meant to enable independent
caching of northbound and southbound mapping registrations and
better modularize mappingservice.implementation. In
particular, with this patch we separate the MappingService, that
coordinates the storage and quick retrieval of mappings, from the
LispMappingService, which implements the LISP specific
MapServer/MapResolver behavior for southbound clients by leveraging the
previous service. To this end, apart from inheriting the RPC API,
MappingService also implements a new Java API that may be consumed as a
SAL service.

Functionally, the MappingService acts an API dispatcher that coordinates
and acts as container for all objects in charge of i) saving and
updating md-sal datastore stored mappings/keys ii) monitoring md-sal
datastore mapping/key updates and pushing them to the in memory
mapping-system iii) in memory mapping-system, which consists of a set of
mappings caches and a simple (for now) querying policy.

Other notable changes:
- declutter the MapServer/Resolver Java API hierarchy and update
  IFlowMapping API
- update ILispDAO and the HashMapDb to support the introduction of
  'virtual' tables. So we now have a Table->SubTable hierarchy and
  SubTables can be nested recursively.
- added IMapCache interface and 3 types of map-caches:
    o) flat: for flat addresses
    o) simple: for flat and IP addresses. It supports longes prefix
       matching for IPs.
    o) multi-table: for flat, IP and multi-level addresses (SourceDest
       LCAF for now). For IP and multi-level addresses longest prefix
       matching is supported.
- update unit and integration tests

Change-Id: I2532b04a9693f86c3ba87eddc982725fd12a429f
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoMigration to use MD-SAL Project 73/26373/6
Tony Tkacik [Wed, 2 Sep 2015 14:13:30 +0000 (16:13 +0200)]
Migration to use MD-SAL Project

Change-Id: I562033034aa3f7cae6413a97bf7dbfa7b04d3cfc
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
8 years agoRemove features from "legacy" parent 20/26620/1
Lorand Jakab [Mon, 7 Sep 2015 15:02:21 +0000 (18:02 +0300)]
Remove features from "legacy" parent

Project features are based off features-parent, so no need for features
related dependencyManagement entries in the old parent pom file (which
we should clean up step by step).

Change-Id: I1fee8e55be6802fe51084c716d5091bc5b361f7b
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMove SB RPCs from LISP Proto to API 01/26601/3
Lorand Jakab [Mon, 7 Sep 2015 10:56:46 +0000 (13:56 +0300)]
Move SB RPCs from LISP Proto to API

The lisp-proto artifact contains the YANG model describing the LISP
protocol messages.  It also contained RPCs that are used to send those
protocol messages.  However, those RPCs are not part of the LISP
protocol itself, and this commit moves them to the API bundle.  They are
implemented the the southbound plugin.

Change-Id: I695068ba5a71db4fe3d5ae6560f03570bf9f3352
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMigrate netconf and restconf dependencies 99/26599/2
JMorvay [Mon, 7 Sep 2015 10:55:15 +0000 (12:55 +0200)]
Migrate netconf and restconf dependencies

Migrate project's restconf and netconf dependencies
and features to new groupId/version

Change-Id: I1c5f7fd7b0d781e1e3df378dd0b16e4a618fe1f0
Signed-off-by: JMorvay <jmorvay@cisco.com>
8 years agoMerge "Use odlparent configuration for jacoco"
Lori Jakab [Sun, 6 Sep 2015 13:11:40 +0000 (13:11 +0000)]
Merge "Use odlparent configuration for jacoco"

8 years agoRemove NETCONF module reference from POM/features 63/26463/1
Lorand Jakab [Thu, 3 Sep 2015 13:41:16 +0000 (16:41 +0300)]
Remove NETCONF module reference from POM/features

[... but leave the actual code]

Change-Id: I54ec36db20944d0c3bcf96ad3a146f5b477987e5
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoRemove ClusterDAO 29/26429/1
Lorand Jakab [Thu, 3 Sep 2015 02:59:34 +0000 (05:59 +0300)]
Remove ClusterDAO

Change-Id: Idb42beaeaa2c951fe0f77c4496c90d36312bf9dd
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoRemove unneeded dependencies from POM files 15/26415/1
Lorand Jakab [Wed, 2 Sep 2015 18:52:16 +0000 (21:52 +0300)]
Remove unneeded dependencies from POM files

Change-Id: I1bf2bacca89d89dd89b7353818fab9c0920815a5
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoUse odlparent configuration for jacoco 98/26298/1
Thanh Ha [Wed, 2 Sep 2015 02:45:22 +0000 (22:45 -0400)]
Use odlparent configuration for jacoco

Change-Id: Ibddda8c56e26372ddb0b05e508a5b02a3ee081dc
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoForce eid normalization and fix SourceDest RPCs 73/26273/1
Florin Coras [Tue, 1 Sep 2015 11:41:03 +0000 (13:41 +0200)]
Force eid normalization and fix SourceDest RPCs

This patch introduces two fixes:
1) Force eid normalization for all CRUD operationas. This is
particularly needed for IPv6 addresses.
2) Fix mask lengths for SourceDest addresses in RPCs

Change-Id: I3ad2877da94af9a2a704cf410e508c9d6580218a
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoMerge "Fix IP masking and normalize keys in TopologyMapCache"
Lori Jakab [Tue, 1 Sep 2015 07:25:10 +0000 (07:25 +0000)]
Merge "Fix IP masking and normalize keys in TopologyMapCache"

8 years agoFix IP masking and normalize keys in TopologyMapCache 59/26259/1
Florin Coras [Mon, 31 Aug 2015 22:25:14 +0000 (00:25 +0200)]
Fix IP masking and normalize keys in TopologyMapCache

Change-Id: Ie1dfc74131246bce7136d491f9da8bd450c2a3b2
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoMerge "Update DAO API"
Lori Jakab [Mon, 31 Aug 2015 17:01:52 +0000 (17:01 +0000)]
Merge "Update DAO API"

8 years agoUpdate DAO API 06/26206/4
Florin Coras [Sun, 23 Aug 2015 15:48:30 +0000 (17:48 +0200)]
Update DAO API

The changes are meant to simplify the interaction between
Map-Server/Map-Resolver and DAO but also to avoid expensive data types
conversions. Most notable:

- Use LispAddressContainer instead of IMappingKey as key for DAO. This
  required updating IPv4 and IPv6 addresses, as modeled in
  lisp-proto.yang, to include mask length, needed for longest prefix
  matches. Additionally, 1) for southbound messages, deserializers had to
  be updated to ensure that mask lengths of deserialized EIDs reflect the
  values set in the corresponding LISP messages fields 2) RPC handler
  methods had to be updated to ensure EID mask lengths are equal to those
  set in RPC input objects.
- EidToLocatorRecord is used as value in DAO instead of RLOCGroup. This
  avoids data type conversions when storing and retrieving mappings
  (Map-Register/Map-Reply) but also ensures that the matched EIDs are
  implicitly returned with each lookup. This avoids the overhead
  associated to building on the fly EID-to-RLOCGroup pairing, because of
  longest prefix matching requirements.
- Rename DAOMappingUtil to TopologyMapCache and cleanup of map-cache
  lookup logic
- Introduce new DAO API method for building nested DAOs. Since this
  acts as a factory method, it also avoids TopologyMapCache dependence
  on DAO implementation.

Change-Id: I1ef9c256fc0bf86d82de4d3d1473e7decd47a9e4
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoFix: Showing the LCAF Locators at the mapping table 36/26036/1
Alberto Montes [Wed, 26 Aug 2015 15:55:15 +0000 (17:55 +0200)]
Fix: Showing the LCAF Locators at the mapping table

Change-Id: Iba8f31bf2be202a4e1acb12832d7bbda997cd6cf
Signed-off-by: Alberto Montes <al.montes.gomez@gmail.com>
8 years agoAdd LISP user interface 33/25933/6
Alberto Montes [Tue, 25 Aug 2015 08:48:11 +0000 (10:48 +0200)]
Add LISP user interface

Add new menu option LISP UI, with two tabs, Keys and Mappings.

Change-Id: I30f855d686f159e8dd10534a46857f3414d9b470
Signed-off-by: Alberto Montes <al.montes.gomez@gmail.com>
8 years agoUpdate URLs for mappingservice postman collections 57/25857/1
Florin Coras [Mon, 24 Aug 2015 08:06:25 +0000 (10:06 +0200)]
Update URLs for mappingservice postman collections

Change-Id: Id18d8bf153e0a88876c1c6ea2ba6646fcebcb750
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoCleanup mappingservice.yangmodel 67/25567/2
Florin Coras [Thu, 20 Aug 2015 17:17:16 +0000 (19:17 +0200)]
Cleanup mappingservice.yangmodel

The most important changes:
- Rename lisp-control-plane.yang to lisp-proto.yang. RPCs and
  notifications are still to be moved out to a separate yang file
- Move to mappingservice.api and rename lfm-mapping-database.yang to
  mappingservice.yang since it is the API for
  mappingservice.implementation

Change-Id: I7c2161d2c310e20bdbf46ab67573514d3969f223
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoReorganize mappingservice.implementation 57/25457/9
Florin Coras [Wed, 19 Aug 2015 00:54:24 +0000 (02:54 +0200)]
Reorganize mappingservice.implementation

This consists of a number of incremental changes ultimately meant to
ensure the clear separation between the components implementing the LISP
control plane logic (MapServer/MapResolver) and the logic used to
manipulate the database that stores mapping state. This should give us
better isolation (i.e, should help testing) but also opens the
possibility to better optimize DAO/map-cache implementation for specific
use-cases, if needed.

Noteworthy changes:
- Move out code concerning logic behind CRUD operations on DAO from
  MapServer and MapResolver to DAOMappingUtil. In future patches the
  latter will be converted to a MapCache class instead of a helper
  class.
- Move serializer and LISP protocol utility functions from
  mappingservice.implementation to yangmodel.
- Remove bundle dependencies on mappingservice.implementation. Bundles
  should be importing mappingservice.api.
- Cleanup pom files

Change-Id: I199b8d2162cd2ab2b54cd3340eb24811fd6cd5be
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoMove integration tests to mdsal-it-parent 88/25388/6
Lorand Jakab [Fri, 21 Aug 2015 11:00:25 +0000 (14:00 +0300)]
Move integration tests to mdsal-it-parent

Change-Id: I233e61d53988036db34cdc78b48e94b9db004fae
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMove features to features-parent 90/25290/1
Lorand Jakab [Fri, 14 Aug 2015 13:57:17 +0000 (16:57 +0300)]
Move features to features-parent

Because:
  1) It's sort of needed for karaf based IT
  2) Less maintenance burden
  3) It's the RightThing(tm)

Change-Id: I5b527daea160e1bcc0509bda9c12f96816e1a8b9
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoRemoving mappingservice.netconf and its dependencies from build 67/25267/3
Florin Coras [Thu, 13 Aug 2015 21:17:40 +0000 (23:17 +0200)]
Removing mappingservice.netconf and its dependencies from build

Change-Id: I2e16ff038fbe5e3fbfc25c41968384a20cdb329d
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoFix breakage caused by config/netconf decoupling 53/25253/1
Lorand Jakab [Thu, 13 Aug 2015 16:41:29 +0000 (19:41 +0300)]
Fix breakage caused by config/netconf decoupling

Gerrit https://git.opendaylight.org/gerrit/#/c/23413 broke the build,
this commit fixes it.

Change-Id: I87c9b738d31a94f51d0f99f79cce89119627ff56
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoAdd basic Site-ID support to mappings 31/25231/1
Lorand Jakab [Wed, 12 Aug 2015 14:13:33 +0000 (17:13 +0300)]
Add basic Site-ID support to mappings

This patch adds basic support for storing a list of Site-IDs with a
mapping in the MD-SAL config datastore, both from the southbound via
Map-Register messages and from the RESTCONF interface. Using RPCs is not
supported yet. This is useful for grouping EIDs belonging to the same
site in the topology view of the LISP UI.

Change-Id: Ie2ffc2dfb5f922ca5be3e3282ef63af0f0054f43
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoUnclutter DEBUG log output 25/25225/1
Lorand Jakab [Thu, 13 Aug 2015 09:47:18 +0000 (12:47 +0300)]
Unclutter DEBUG log output

Move log messages that print out entire data structures to TRACE level,
so that users can switch between full detail (TRACE) and somewhat easy
to follow (DEBUG) output.

Change-Id: I41750e9e044bfcb2177a17a091e9c8648d8ba69a
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "added suport for lisp southbound to act also as a mapping service client."
Lori Jakab [Wed, 12 Aug 2015 12:35:49 +0000 (12:35 +0000)]
Merge "added suport for lisp southbound to act also as a mapping service client."

8 years agoBug 4079: Fix regression introduced by Change-Id I3e9f92dcbb2d6bd82384d7229320e979b68... 42/25142/1
Lorand Jakab [Tue, 11 Aug 2015 10:32:56 +0000 (13:32 +0300)]
Bug 4079: Fix regression introduced by Change-Id I3e9f92dcbb2d6bd82384d7229320e979b68461d5

Change-Id: Id08dabdd577b2bb6575a205fb89e8e3f2d08b488
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 4057: Make subscriber HashMap concurrent 21/24921/1
Lorand Jakab [Fri, 7 Aug 2015 12:35:51 +0000 (15:35 +0300)]
Bug 4057: Make subscriber HashMap concurrent

Change-Id: Ic3a70ccca9202584dcd293f2ca2a5459d7324ab2
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit 7c370deff1cb8d0ecce845eb0d3bd874174d40b7)

8 years agoBug 4097: Don't add subscribers with no Source-EID 04/24904/1
Lorand Jakab [Thu, 6 Aug 2015 00:01:57 +0000 (03:01 +0300)]
Bug 4097: Don't add subscribers with no Source-EID

Change-Id: I3e9f92dcbb2d6bd82384d7229320e979b68461d5
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit 0d464b04187c2456e57ac5d758ccfac686f48618)

8 years agoadded suport for lisp southbound to act also as a mapping service client. 84/24884/1
David Goldberg [Mon, 19 Jan 2015 12:50:12 +0000 (14:50 +0200)]
added suport for lisp southbound to act also as a mapping service client.

Change-Id: Ic82bc85fd4254903ab39499b9f53348ede3c22b9
Signed-off-by: David Goldberg <david.goldberg@contextream.com>
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit d1f12050a011dd8b08e10e23638bb3b1e2e53c3f)

8 years agoBug 4077: Send SMR when deleting a Src/Dst mapping 24/24824/1
Lorand Jakab [Wed, 5 Aug 2015 22:28:57 +0000 (01:28 +0300)]
Bug 4077: Send SMR when deleting a Src/Dst mapping

When we had a general mapping and within that a src/dst mapping,
deleting the src/dst mapping was not generating an SMR to the
subscribers of said  mapping. This commit fixes that.

Change-Id: I199af9f8558a8ebbf4a100f224c570893f548c20
Reported-by: Vina Ermagan <vermagan@cisco.com>
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit 551b102f4ae329dca674509120acbecfd035b716)

8 years agoBug 4046: Fix EID Record in SMRs 51/24451/1
Lorand Jakab [Thu, 23 Jul 2015 00:04:56 +0000 (17:04 -0700)]
Bug 4046: Fix EID Record in SMRs

Change-Id: I6712d47c7b3f877d01143b77203afffd47aaf812
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit 65e3afef3b1362821dd4c54b3f9b18ab91069dac)

8 years agoBug 3995: Store empty mappings in DAO 62/24362/1
Lorand Jakab [Tue, 21 Jul 2015 04:52:11 +0000 (21:52 -0700)]
Bug 3995: Store empty mappings in DAO

Since empty mappings (mappings without a locator set) are not stored in
the DAO, we have an inconsistency between MD-SAL (which does store such
mappings) and the DAO. Additionally, it makes it impossible to set a
specific action for a specific EID, when no locators are present, for
example a simple "drop" policy. This commit makes it possible to store
and retrieve empty mappings from the DAO.

Change-Id: I9a380d3e7a1d4281b512854cffdc2f6eda6a277c
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit dd034830cd0cb464d6bd2527a92f51bd14891008)

8 years agoBug 4005: Fix SMRs 27/24327/1
Florin Coras [Fri, 17 Jul 2015 01:55:10 +0000 (03:55 +0200)]
Bug 4005: Fix SMRs

Change-Id: I58bbbe77a219f2c65fd3dee9e830fc2da8a0f8a7
Signed-off-by: Florin Coras <fcoras@cisco.com>
(cherry picked from e5a682941b8a0b8d020e9b406220e2cf47fd8148)

8 years agoBug 4005: Set the correct Source-EID in SMRs 26/24326/1
Lorand Jakab [Thu, 16 Jul 2015 09:57:25 +0000 (12:57 +0300)]
Bug 4005: Set the correct Source-EID in SMRs

Change-Id: Ifdf0812db44f0e2eb6ce880a7ad23b67b29632f3
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit cb225f62c71a5b42d35afc366c719d7518675912)

8 years agoBug 4012: Fix NPEs due to insertion/removal of negative mappings 23/24223/1
Florin Coras [Fri, 17 Jul 2015 01:26:06 +0000 (03:26 +0200)]
Bug 4012: Fix NPEs due to insertion/removal of negative mappings

Change-Id: I3b475a6c0e99cec6652e308daaba1552cfe9f241
Signed-off-by: Florin Coras <fcoras@cisco.com>
(cherry picked from commit c8f77f83890002aa135d7b8ebb2502e9c68e267f)

8 years agoBug 4011: Fix LocatorRecord routed flag in Map-Replies 22/24222/1
Florin Coras [Fri, 17 Jul 2015 00:49:47 +0000 (02:49 +0200)]
Bug 4011: Fix LocatorRecord routed flag in Map-Replies

Change-Id: I1393f9f15601734e341b3f01463052d30661319e
Signed-off-by: Florin Coras <fcoras@cisco.com>
(cherry picked from commit 6b82aa0cf29f30b9ff16f3e993fd8ab1ef50150b)

8 years agoImprove exception code 96/24096/2
Lorand Jakab [Tue, 14 Jul 2015 12:07:19 +0000 (15:07 +0300)]
Improve exception code

Change-Id: If86fe497c1b8f89a50a919088638a14ce8117c5c
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 3877: Fix sending SMR to IPv6 subscribers 63/24063/2
Lorand Jakab [Mon, 13 Jul 2015 16:32:14 +0000 (19:32 +0300)]
Bug 3877: Fix sending SMR to IPv6 subscribers

Additionally, make the exception for failed SMRs more helpful, since it
only showed a pointer address of the stack trace, not the actual trace.

Change-Id: Ic7861c14c6d87bd9cc93eb69b3158532a229a15e
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit 8b3bcab42d6ab687c9307d57fb67c01cfe37d577)

8 years agoMove HashMapDb to its own bundle 64/24064/2
Florin Coras [Mon, 13 Jul 2015 00:20:28 +0000 (02:20 +0200)]
Move HashMapDb to its own bundle

HashMapDb is a simple, in memory implementation of ILispDAO, the
interface that defines the API for the interaction with the Map-Server's
mappings database. Until now, HashMapDb was part of
mappingservice.implementation but with this commit it is moved to its
own mappingservice.inmemorydb bundle.

An important feature is that a ILispDAO implementation is now injected
into mappingservice.implementation at runtime through config-subsystem.
As a result, InMemoryDb can be easily swapped with other implementations.

Change-Id: I29af97b831414eecbbf3c29e6fbec086a627a770
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoBug 3979: Fix NPE for get-mapping RPC when mapping contains ELP 88/23988/1
Florin Coras [Fri, 10 Jul 2015 11:43:18 +0000 (13:43 +0200)]
Bug 3979: Fix NPE for get-mapping RPC when mapping contains ELP

Change-Id: Ie6ec638c0c10e62f7eb8b0aee2b875dc1b10d815
Signed-off-by: Florin Coras <fcoras@cisco.com>
(cherry picked from commit e9ce10cd33e357c6070598b5a4e2daca45cb0c33)

8 years agoBug 3951: Send SMRs to both SrcDst and Dst subscribers 81/23881/1
Florin Coras [Tue, 7 Jul 2015 15:20:01 +0000 (17:20 +0200)]
Bug 3951: Send SMRs to both SrcDst and Dst subscribers

Change-Id: I6754d02e67005b74be033dbbea2395910b8c479c
Signed-off-by: Florin Coras <fcoras@cisco.com>
(cherry picked from commit 5d2c9ca667c38dd83d072d8487e7e6c477694991)

8 years agoBug 3951: For Src/Dst update, SMR Dst EID 51/23851/2
Lorand Jakab [Tue, 7 Jul 2015 12:25:38 +0000 (15:25 +0300)]
Bug 3951: For Src/Dst update, SMR Dst EID

Change-Id: I00c8b22a8a3c8c99e6d8d6fe6d5c6fd4fed626d5
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit d27bd6bdb61db7d0385dc5c616ce43928b6eee19)

8 years agoMerge "Bug 3950: SMR parent subscribers on Src/Dst mapping change"
Lorand Jakab [Tue, 7 Jul 2015 19:11:21 +0000 (19:11 +0000)]
Merge "Bug 3950: SMR parent subscribers on Src/Dst mapping change"

8 years agoBug 3950: SMR parent subscribers on Src/Dst mapping change 32/23832/2
Lorand Jakab [Tue, 7 Jul 2015 12:16:25 +0000 (15:16 +0300)]
Bug 3950: SMR parent subscribers on Src/Dst mapping change

Change-Id: Iaf0dc0a62c04e4c67913d67d7b9bb18bba343ce6
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit f4246f57e06d62b2617a405d8351da5a53207fa8)

8 years agoBug 3946: Fix 'lisp:mappings' output for SrcDst 34/23834/1
Lorand Jakab [Tue, 7 Jul 2015 11:14:15 +0000 (14:14 +0300)]
Bug 3946: Fix 'lisp:mappings' output for SrcDst

Change-Id: Iea973d6af98e3446885b844385c15fabcbff3820
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit 348aaae0421edb85de3958736f3cee925425c05c)

8 years agoBug 3781: Fix locator list name hack 06/23806/1
Lorand Jakab [Tue, 7 Jul 2015 07:35:57 +0000 (10:35 +0300)]
Bug 3781: Fix locator list name hack

There is an inconsistency in the mapping stored and the mapping
retrieved from the DAO, since the list key called 'name' for
LocatorRecord is autogenerated when replying. It looks like now a
getName() method is available, so we can retrieve the original key.

Change-Id: I28263028b1907720e4433b0336989a358abcf1c4
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
(cherry picked from commit adcd2d69ec06c36bda88380151d2f6d4725e49b0)

8 years agoClean neutron POM file 29/23129/1
Florin Coras [Sat, 20 Jun 2015 02:07:02 +0000 (19:07 -0700)]
Clean neutron POM file

Change-Id: I939aeaa20922ed4feb221409a550b0734d3c298a
Signed-off-by: Florin Coras <fcoras@cisco.com>
(cherry picked from commit 7fd15a56c31c23f95ca5e7629ac1413a26161db2)

8 years agoBug 3819: Fixing the inconsistency by using RPC to register 24/23024/1
Vina Ermagan [Thu, 18 Jun 2015 20:18:04 +0000 (13:18 -0700)]
Bug 3819: Fixing the inconsistency by using RPC to register

Change-Id: Ib390645f507ff011d7596e72d8b85ac17eb3038c
Signed-off-by: Vina Ermagan <vermagan@cisco.com>
(cherry picked from commit 277df59662c96e76b0ffddeac3526f5b26e808c4)