lispflowmapping.git
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>
8 years agoMaking Map Registration validity time configurable. 46/37946/1
vermagan@cisco.com [Thu, 21 Apr 2016 03:01:24 +0000 (20:01 -0700)]
Making Map Registration validity time configurable.

Change-Id: I92ab11530f5a9c1dff822fc32c7e27cfe9bd66f0
Signed-off-by: vermagan@cisco.com <vermagan@cisco.com>
8 years agoMerge "MappingDataListener uses DataTreeChangeListener."
Lori Jakab [Wed, 20 Apr 2016 12:27:16 +0000 (12:27 +0000)]
Merge "MappingDataListener uses DataTreeChangeListener."

8 years agoAuthenticationKeyDataListener uses DataTreeChangeListener. 25/37725/2
Jozef Gloncak [Mon, 18 Apr 2016 06:51:33 +0000 (08:51 +0200)]
AuthenticationKeyDataListener uses DataTreeChangeListener.

Rewritting of class to use DataTreeChangeListener.

Change-Id: I0e9a111e88289894a97539c7775fe7c33ee8e31a
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoMappingDataListener uses DataTreeChangeListener. 32/37732/2
Jozef Gloncak [Mon, 18 Apr 2016 12:17:14 +0000 (14:17 +0200)]
MappingDataListener uses DataTreeChangeListener.

Rewritting of class to use DataTreeChangeListener.

Change-Id: Id8b3a9ea6202756674c721ca7edc485ebc10faba
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoAdd abstract class AbstractDataTreeListener. 21/37721/2
Jozef Gloncak [Mon, 18 Apr 2016 11:00:50 +0000 (13:00 +0200)]
Add abstract class AbstractDataTreeListener.

All of classes which extends AbstractDataListener will be
gradually modified to extends this new one abastarct class.

Once everything will be allright, original class
AbstractDataListener will be removed.

Change-Id: I2fee151c4c0b2a2ba6496285f4f28c244c262673
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoEnhancement of SMR test 37/37537/6
Jozef Gloncak [Wed, 13 Apr 2016 11:29:50 +0000 (13:29 +0200)]
Enhancement of SMR test

Socket reading is run in standalone thread. Class which is
responsible for reading socket content store every received
packet to standalone array. Whenever during existence of
instance of class SocketReader it is possible to read all of
received packets (SMRs).

Change-Id: I44be22ba0579f0c9f1ef49f154403e721faad121
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoMerge "Test scenario B"
Lori Jakab [Wed, 13 Apr 2016 13:41:24 +0000 (13:41 +0000)]
Merge "Test scenario B"

8 years agoTest scenario B 74/37074/12
Jozef Gloncak [Wed, 30 Mar 2016 10:53:13 +0000 (12:53 +0200)]
Test scenario B

Added test scenario B

Incorporated all of remarks from review expect:
- SMR check is missing

Change-Id: I109134bab3a67a6cf6e3446974fe67bd09ea653c
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoBug 5705: Fix removing a subscriber from an Iterator 72/37472/2
Miroslav Toth [Tue, 12 Apr 2016 08:18:52 +0000 (10:18 +0200)]
Bug 5705: Fix removing a subscriber from an Iterator

Change-Id: I3e2976d3aeeeafd947507f2123cdb7f45a70851d
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoMerge "Checking SMR."
Lori Jakab [Mon, 11 Apr 2016 13:50:14 +0000 (13:50 +0000)]
Merge "Checking SMR."

8 years agoPerformance: make an expensive LOG conditional 49/37349/1
Lorand Jakab [Fri, 8 Apr 2016 14:44:03 +0000 (17:44 +0300)]
Performance: make an expensive LOG conditional

Found with profiling. It was taking 15% time in the Map-Request
performance test.

Change-Id: Icd83c033461e119de8092e7210449620f6228b6e
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoJUnit Test - MapResolverTest rewritten using Mockito 92/36992/9
Miroslav Toth [Thu, 31 Mar 2016 13:27:03 +0000 (15:27 +0200)]
JUnit Test - MapResolverTest rewritten using Mockito

Change-Id: I1735dc3d75eba29357ebf5d1803614ab9f4a47df
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoUpdate Nexus links to HTTPS 38/37238/1
Lorand Jakab [Thu, 7 Apr 2016 08:39:09 +0000 (11:39 +0300)]
Update Nexus links to HTTPS

Change-Id: Ibaeac90925cb43c45ea14ed05283b5442875e6f1
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoChecking SMR. 52/36952/5
Jozef Gloncak [Thu, 31 Mar 2016 13:35:55 +0000 (15:35 +0200)]
Checking SMR.

Adding checks for emiting SMR request.

Change-Id: I25fb5a9b5c13f113daf967d71a0977e3ed76964d
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoIntegr test - multi site scenario - test cases. 76/36876/8
Jozef Gloncak [Wed, 30 Mar 2016 11:22:00 +0000 (13:22 +0200)]
Integr test - multi site scenario - test cases.

Change-Id: Ib962fc0e8bbe7c630ba8e4f37c2fa242f6672ee6
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoMerge "JUnit test - MultiTableMapCacheTest"
Lori Jakab [Mon, 4 Apr 2016 07:54:15 +0000 (07:54 +0000)]
Merge "JUnit test - MultiTableMapCacheTest"

8 years agoAllow setting some configuration variables 49/36949/2
Lorand Jakab [Thu, 31 Mar 2016 12:55:44 +0000 (15:55 +0300)]
Allow setting some configuration variables

The goal of this patch is to enable writing integration tests that can
change configuration variables, so that different setups can be tested.
It is not a complete patch, we still need to discuss what our approach
to configuration will be, but we have to at least unblock integration
test development.

Change-Id: Ib5c8909f6e85086370ea3533a3b03b373d7109c9
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "Integr test - multi site scenario - common util code."
Lori Jakab [Thu, 31 Mar 2016 10:41:20 +0000 (10:41 +0000)]
Merge "Integr test - multi site scenario - common util code."

8 years agoMerge "Merge JUnit test - LispAddressStringifierTest"
Lori Jakab [Thu, 31 Mar 2016 09:34:18 +0000 (09:34 +0000)]
Merge "Merge JUnit test - LispAddressStringifierTest"

8 years agoIntegr test - multi site scenario - common util code. 75/36875/5
Jozef Gloncak [Wed, 16 Mar 2016 09:28:30 +0000 (10:28 +0100)]
Integr test - multi site scenario - common util code.

Code necessary for writting test cases

Change-Id: I95af482df4c37d3c31bcee44eee548a393ec24ea
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoBug 5624: Fix NPE when removing mappings 80/36880/1
Lorand Jakab [Wed, 30 Mar 2016 12:19:11 +0000 (15:19 +0300)]
Bug 5624: Fix NPE when removing mappings

Change-Id: Ifcf07b77ac3fc1e6e3d6f24f100ca04d153ace79
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge JUnit test - LispAddressStringifierTest 36/36736/3
Miroslav Toth [Wed, 23 Mar 2016 09:42:39 +0000 (10:42 +0100)]
Merge JUnit test - LispAddressStringifierTest

Change-Id: I66e74518aa578dbed4233a4c2daacae9dc94dc89
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoMerge "Bug 5554: Remove ipPrefixFor() method from MaskUtil"
Vina Ermagan [Fri, 25 Mar 2016 18:56:59 +0000 (18:56 +0000)]
Merge "Bug 5554: Remove ipPrefixFor() method from MaskUtil"

8 years agoStore southbound xTR-ID sub-mappings in datastore 76/36076/3
Lorand Jakab [Thu, 10 Mar 2016 21:10:52 +0000 (13:10 -0800)]
Store southbound xTR-ID sub-mappings in datastore

Removal is not handled yet, that will come in a separate patch.

Change-Id: I26e1abca4a5292fbc969ef6f91c09c11769640d4
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 5554: Remove ipPrefixFor() method from MaskUtil 37/36737/1
Lorand Jakab [Thu, 24 Mar 2016 12:42:47 +0000 (14:42 +0200)]
Bug 5554: Remove ipPrefixFor() method from MaskUtil

The (modified) method was upstreamed to IetfInetUtil in MDSAL project.

Change-Id: Iedc08e5c74a47e071ef7e3fd8678b529e1109eb5
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "JUnit test - LispAddressStringifierTest"
Lori Jakab [Thu, 24 Mar 2016 10:33:08 +0000 (10:33 +0000)]
Merge "JUnit test - LispAddressStringifierTest"

8 years agoJUnit test - LispAddressStringifierTest 92/36592/1
Miroslav Toth [Wed, 23 Mar 2016 09:42:39 +0000 (10:42 +0100)]
JUnit test - LispAddressStringifierTest

Change-Id: I0ba810a001ed80c1fe6c22922c91ff46af617017
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoJUnit test - LispSimpleAddressStringifierTest 86/36586/2
Miroslav Toth [Wed, 23 Mar 2016 08:30:28 +0000 (09:30 +0100)]
JUnit test - LispSimpleAddressStringifierTest

Change-Id: Ia756953063b4bee5468590080a8d62eb9df6e163
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoJUnit test - MultiTableMapCacheTest 98/36498/2
Miroslav Toth [Tue, 15 Mar 2016 13:23:27 +0000 (14:23 +0100)]
JUnit test - MultiTableMapCacheTest

Change-Id: I0fa80be23d5d49679bbfec57241c4ed0f76ccb36
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoRe-enable tests on mappingservice.implementation 48/36548/1
Lorand Jakab [Tue, 22 Mar 2016 11:10:27 +0000 (13:10 +0200)]
Re-enable tests on mappingservice.implementation

We forgot to reactivate them after the YANG model migration. Many of the
tests still have to be adapted, they are now set to @Ignore.

Change-Id: I9a1a6e1bf31ca3e025f4573fa40bd7ab6ede14d7
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoAdd back ignored tests in LispAddressUtilTest 33/36533/1
Lorand Jakab [Tue, 22 Mar 2016 07:45:39 +0000 (09:45 +0200)]
Add back ignored tests in LispAddressUtilTest

https://git.opendaylight.org/gerrit/#/c/35681/ is merged, so the tests
now pass.

Change-Id: Ib1c3483c7b4514b2c0c6736f7c3307811ce23bd5
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoCheckstyle: enforce 120 character limit 01/36501/1
Lorand Jakab [Mon, 21 Mar 2016 14:07:57 +0000 (16:07 +0200)]
Checkstyle: enforce 120 character limit

We spend too much time on this character limit in reviews. Fix existing
violations and enforce the limit at build time in the future to avoid
this.

Not all fixed violations resulted in beautifully readable code, but this
is a first step, to get the enforcement off the ground, things can be
then improved gradually, as we work on the code in question.

Change-Id: I0d4a9aeca0e7a8f9f9927581211b40d13bcd9661
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoCheckstyle: enforce spaces vs TABs 94/36494/1
Lorand Jakab [Mon, 21 Mar 2016 12:50:36 +0000 (14:50 +0200)]
Checkstyle: enforce spaces vs TABs

Change-Id: I8e33680ae5c75ca544a77f863e78b8466ce12e3f
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "JUnit test - MultiTableMapCacheTest"
Lori Jakab [Mon, 21 Mar 2016 12:23:34 +0000 (12:23 +0000)]
Merge "JUnit test - MultiTableMapCacheTest"

8 years agoBug 5554: Normalize Source/Dest EIDs too 39/36439/2
Lorand Jakab [Fri, 18 Mar 2016 13:29:29 +0000 (15:29 +0200)]
Bug 5554: Normalize Source/Dest EIDs too

Change-Id: Ic52b2413961b9dc42f6d65518f065de205be07d6
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoJUnit test - MultiTableMapCacheTest 83/36283/6
Miroslav Toth [Tue, 15 Mar 2016 13:23:27 +0000 (14:23 +0100)]
JUnit test - MultiTableMapCacheTest

Change-Id: Iac001a9bd75da44085b31466746dce33aff1a45c
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoJUnit test - FlatMapCacheTest 78/36178/7
Miroslav Toth [Mon, 14 Mar 2016 08:39:50 +0000 (09:39 +0100)]
JUnit test - FlatMapCacheTest

Change-Id: Ib8b232509412b49afe1841633d9b0050f61478b7
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoBug 5547: MultiTableMapCache#getAuthenticationKey returning null with SourceDestKey... 94/36394/1
Miroslav Toth [Thu, 17 Mar 2016 11:38:39 +0000 (12:38 +0100)]
Bug 5547: MultiTableMapCache#getAuthenticationKey returning null with SourceDestKey address type

Change-Id: I51dd80d7da576ce085816d5b80f6e7da7e051cda
Signed-off-by: Miroslav Toth <mirtoth@cisco.com>
8 years agoBug 5520: Fix LispSimpleAddressStrngifier always returning null 30/36230/1
Lorand Jakab [Tue, 15 Mar 2016 07:47:19 +0000 (08:47 +0100)]
Bug 5520: Fix LispSimpleAddressStrngifier always returning null

Change-Id: Ie6371add3199002bfff67750670edf2cb51a84ab
Reported-by: Miroslav Toth <miroslav.toth@pantheon.sk>
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "Remove explicit mockito version"
Florin Coras [Fri, 11 Mar 2016 20:19:06 +0000 (20:19 +0000)]
Merge "Remove explicit mockito version"

8 years agoRemove explicit mockito version 41/36141/1
Lorand Jakab [Fri, 11 Mar 2016 19:29:52 +0000 (11:29 -0800)]
Remove explicit mockito version

The version is defined in a <dependencyManagement> section in one of our
upstream poms, and we shouldn't override it.

Change-Id: Ibd537c65db52677b2e0eb64cc4353135288ec491
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 5494: Enforce authentication key-ID 77/36077/4
Lorand Jakab [Fri, 11 Mar 2016 18:28:06 +0000 (10:28 -0800)]
Bug 5494: Enforce authentication key-ID

Change-Id: Ic8a8eb0e5c396a26523007a81095c7308abf37b9
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "JUnit test - InMemoryDbModule"
Florin Coras [Fri, 11 Mar 2016 18:08:17 +0000 (18:08 +0000)]
Merge "JUnit test - InMemoryDbModule"

8 years agoMerge "JUnit test - HashMapDb"
Florin Coras [Fri, 11 Mar 2016 18:08:04 +0000 (18:08 +0000)]
Merge "JUnit test - HashMapDb"

8 years agoIntegration tests: turn on debugging in Karaf log 96/36096/1
Lorand Jakab [Fri, 11 Mar 2016 03:49:04 +0000 (19:49 -0800)]
Integration tests: turn on debugging in Karaf log

This patchs turns on karaf debug output for integration tests for all
lispflowmapping classes, not just the MappingServiceIntegrationTest
class itself. This is extremely valuable when debugging integration
tests issues, both on a local build, or in Jenkins. The karaf log for
the integration tests can be found in the
integrationtest/target/surefire-reports/org.opendaylight.lispflowmapping.integrationtest.MappingServiceIntegrationTest-output.txt
file, and with this patch it will have full debug output. If trace level
output is needed, the next line can be changed too, but that's overkill
for most situations, and should be used at a developer's discretion, but
not by default in the build.

Change-Id: Ice723eac5509706e8b633bab5aa02d83758855fd
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMove southbound mappings to OPERATIONAL 62/35962/1
Lorand Jakab [Wed, 9 Mar 2016 00:51:47 +0000 (16:51 -0800)]
Move southbound mappings to OPERATIONAL

Until now we stored all mappings in the config datastore, include those
originating from the southbound. Since southbound mappings are
operational data, this patch changes the datastore for southbound
mappings to operational.

Change-Id: I4f59beed1475d2dd3836015b6042cff0e235a33a
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoActivate Maven Sites 13/35713/7
Lorand Jakab [Fri, 4 Mar 2016 19:18:10 +0000 (11:18 -0800)]
Activate Maven Sites

See https://nexus.opendaylight.org/content/sites/site/org.opendaylight.releng.builder/master/maven-site.html

Change-Id: I7df2d63462bbb81e89bfdabd308287ba702aa6f8
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoYANG changes for supporting xTR-ID sub-mappings 99/35899/1
Lorand Jakab [Mon, 7 Mar 2016 23:31:01 +0000 (15:31 -0800)]
YANG changes for supporting xTR-ID sub-mappings

Change-Id: Ib7863d7679d96bb0e2e36958eba50fa64b24f47a
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoCreate typedefs for xTR-ID and Site-ID 41/35841/2
Lorand Jakab [Fri, 4 Mar 2016 19:06:02 +0000 (11:06 -0800)]
Create typedefs for xTR-ID and Site-ID

There were a few places where we had site-id and xtr-id leaves, an they
used binary types, not a common type. This patch creates a typedef for
the two data types and uses it consistently throughout the code, for
better type safety.

The patch is in preparation for xTR-ID data store support for
southbound.

Change-Id: Ia45541b4f82fd2697e05686d995a219524e49e99
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "JUnit test - LispAddressUtil - remaining methods."
Florin Coras [Mon, 7 Mar 2016 11:11:42 +0000 (11:11 +0000)]
Merge "JUnit test - LispAddressUtil - remaining methods."

8 years agoMerge "Fix - LispAddressUtil.compareInetAddress() method."
Florin Coras [Mon, 7 Mar 2016 10:59:33 +0000 (10:59 +0000)]
Merge "Fix - LispAddressUtil.compareInetAddress() method."

8 years agoMerge "Fix - LispAddressUtil.toIpPrefixEid() method."
Florin Coras [Mon, 7 Mar 2016 10:58:46 +0000 (10:58 +0000)]
Merge "Fix - LispAddressUtil.toIpPrefixEid() method."

8 years agoMerge "JUnit test - LispAddressUtil - asKeyValue methods."
Florin Coras [Mon, 7 Mar 2016 10:54:08 +0000 (10:54 +0000)]
Merge "JUnit test - LispAddressUtil - asKeyValue methods."

8 years agoMerge "JUnit test - LispAddressUtil - asIpPrefix, ipVersionFromString."
Florin Coras [Mon, 7 Mar 2016 10:49:35 +0000 (10:49 +0000)]
Merge "JUnit test - LispAddressUtil - asIpPrefix, ipVersionFromString."

8 years agoMerge "JUnit test - LispAddressUtil - toEid."
Florin Coras [Mon, 7 Mar 2016 10:48:10 +0000 (10:48 +0000)]
Merge "JUnit test - LispAddressUtil - toEid."

8 years agoJUnit test - LispAddressUtil - remaining methods. 86/35686/4
Jozef Gloncak [Thu, 3 Mar 2016 12:53:42 +0000 (13:53 +0100)]
JUnit test - LispAddressUtil - remaining methods.

Increasing coverage for remaining methods in class LispAddressUtil.

Change-Id: Ie6d26b9d1db7c5b0aee7d82c2bb1bcbee55bbdad
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoFix - LispAddressUtil.compareInetAddress() method. 82/35682/2
Jozef Gloncak [Thu, 3 Mar 2016 12:57:31 +0000 (13:57 +0100)]
Fix - LispAddressUtil.compareInetAddress() method.

Correction of casting to Inet6Address.

Change-Id: Ifc1e2137a7884459a30ea81c900899950c3b86ac
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoFix - LispAddressUtil.toIpPrefixEid() method. 81/35681/3
Jozef Gloncak [Thu, 3 Mar 2016 12:57:31 +0000 (13:57 +0100)]
Fix - LispAddressUtil.toIpPrefixEid() method.

Correction of to string transfarmation of byte array.

Change-Id: I499d3cbabedba117e61f9fbfbc1e65a7d9fbb63c
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoUse odlparent version for javadoc plugin 22/35822/1
Thanh Ha [Fri, 4 Mar 2016 18:49:34 +0000 (13:49 -0500)]
Use odlparent version for javadoc plugin

Change-Id: I0b887b6cbda06880efa85ab7ffc73680f3cd44bc
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoJUnit test - LispAddressUtil - asKeyValue methods. 14/35614/2
Jozef Gloncak [Wed, 2 Mar 2016 14:36:56 +0000 (15:36 +0100)]
JUnit test - LispAddressUtil - asKeyValue methods.

Change-Id: Id54fc2e8e810586351f951c39b5b43059f30fde8
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoJUnit test - LispAddressUtil - asIpPrefix, ipVersionFromString. 10/35610/2
Jozef Gloncak [Wed, 2 Mar 2016 13:55:29 +0000 (14:55 +0100)]
JUnit test - LispAddressUtil - asIpPrefix, ipVersionFromString.

Added coverage for following methods:
- asIpPrefix
- ipVersionFromString
- asIpv4PrefixEid - added additional overloaded method
- asIpv6PrefixEid - added additional overloaded method

Change-Id: I6b67723501368fb0f43e91c6d157a05b99aebef6
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoJUnit test - LispAddressUtil - toEid. 02/35602/4
Jozef Gloncak [Tue, 1 Mar 2016 15:56:43 +0000 (16:56 +0100)]
JUnit test - LispAddressUtil - toEid.

Set of tests which tests direct and indirect
calling of toEid method.

Change-Id: Ia59350c5dddc57f3241c482edf3bfa385fdc6b14
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoJUnit test - InMemoryDbModule 79/35679/1
Matus Marko [Thu, 3 Mar 2016 12:28:09 +0000 (13:28 +0100)]
JUnit test - InMemoryDbModule

Change-Id: I7b93e6818aca4283e78ce1115663072dd2ca4a17
Signed-off-by: Matus Marko <matmarko@cisco.com>
8 years agoJUnit test - HashMapDb 75/35675/1
Matus Marko [Thu, 3 Mar 2016 10:15:21 +0000 (11:15 +0100)]
JUnit test - HashMapDb

Change-Id: I70c41ccaced8b0a853e50d58b9a7989f0ec2ed26
Signed-off-by: Matus Marko <matmarko@cisco.com>
8 years agoMerge "JUnit test - LispAddressUtil - toRloc."
Florin Coras [Wed, 2 Mar 2016 14:24:35 +0000 (14:24 +0000)]
Merge "JUnit test - LispAddressUtil - toRloc."

8 years agoMerge "UML - component diagram added"
Florin Coras [Wed, 2 Mar 2016 09:23:04 +0000 (09:23 +0000)]
Merge "UML - component diagram added"

8 years agoJUnit test - LispAddressUtil - toRloc. 71/35571/4
Jozef Gloncak [Tue, 1 Mar 2016 11:44:17 +0000 (12:44 +0100)]
JUnit test - LispAddressUtil - toRloc.

Added tests to cover overloaded methods toRloc().

Change-Id: Iba2aebb33abb07cc614edbdbdc646c29641aa2cf
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoJUnit test - LispAddressUtil - servicePath, distinguishedName, asNumber. 64/35564/3
Jozef Gloncak [Tue, 1 Mar 2016 08:57:04 +0000 (09:57 +0100)]
JUnit test - LispAddressUtil - servicePath, distinguishedName, asNumber.

Added tests for methods:
- addressFromDistinguishedName()
- addressFromServicePath()
- addressFromAsNumber()

Wrapping of lines which exceded 120 characters.

Change-Id: Ic9c6e5f2ac7b1eb6b620ba86ac6ad4030e5f98fa
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoUML - component diagram added 73/35573/1
Matus Marko [Tue, 1 Mar 2016 12:07:22 +0000 (13:07 +0100)]
UML - component diagram added

Change-Id: Ic838dd054857d3534220e1aa94ac0f7d385810e2
Signed-off-by: Matus Marko <matmarko@cisco.com>
8 years agoJUnit test - LispAddressUtil - IpAddress, IpPrefix, Mac address. 49/35549/4
Jozef Gloncak [Mon, 29 Feb 2016 14:24:04 +0000 (15:24 +0100)]
JUnit test - LispAddressUtil - IpAddress, IpPrefix, Mac address.

Added tests for additional methods:
- addressFromIpAddres
- addressFromIpPrefix
- addressFromMacAddress

Change-Id: I3b5172f692304ba130137664011f259505b84c96
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoJUnit test - addressFromSimpleAddress and addressTypeFromInet. 47/35547/4
Jozef Gloncak [Mon, 29 Feb 2016 12:21:20 +0000 (13:21 +0100)]
JUnit test - addressFromSimpleAddress and addressTypeFromInet.

Another couple of methods from LispAddressUtil.

Change-Id: Id1eb676f314d9e3cfc8265793ab7c428202f454a
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoJUnit test - LispAddressUtil.addressTypeFromSimpleAddress() 35/35535/4
Jozef Gloncak [Mon, 29 Feb 2016 09:24:28 +0000 (10:24 +0100)]
JUnit test - LispAddressUtil.addressTypeFromSimpleAddress()

Adding tests for covering method addressTypeFromSimpleAddress()

Change-Id: I76d2257ab0d3f74652a9c60d1ab4ff27a52662ce
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
8 years agoUse IetfYangUtil for MacAddress operations 87/35487/4
Robert Varga [Fri, 26 Feb 2016 20:38:47 +0000 (21:38 +0100)]
Use IetfYangUtil for MacAddress operations

IetfYangUtil provides optimized operations to convert a MacAddress
string from/to a byte[]. Use them instead of home-grown versions.

Change-Id: I4256d815c05d27e9dedf81ee1586f7bcc075fc17
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoBug 5384: Remove expired mapping from datastore too 22/35122/3
Lorand Jakab [Fri, 19 Feb 2016 23:42:28 +0000 (01:42 +0200)]
Bug 5384: Remove expired mapping from datastore too

Change-Id: I167673226e9fb1af08a975659acf1077aa923e93
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoRemove old yang-maven-plugin configurations 15/35215/1
Lorand Jakab [Mon, 22 Feb 2016 17:23:44 +0000 (19:23 +0200)]
Remove old yang-maven-plugin configurations

Change-Id: I73f09f8b263aa5133f6a848db2a21ef27b83aaa5
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoUse IetfInetUtil for Ipv4Address instantiation 01/35101/4
Robert Varga [Fri, 19 Feb 2016 14:46:16 +0000 (15:46 +0100)]
Use IetfInetUtil for Ipv4Address instantiation

Utility class for faster instantiation.

Change-Id: I1caabf2ff99ba51afe715c5159d97140b4562b59
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoBug 5384: Remove expired mappings from datastore when restoring 05/35105/1
Lorand Jakab [Fri, 19 Feb 2016 15:20:00 +0000 (17:20 +0200)]
Bug 5384: Remove expired mappings from datastore when restoring

Change-Id: Iba739a38155726e790b96fcaa7298b7f00c57e24
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoSonar: Constants should be declared "final static" 27/34927/1
Lorand Jakab [Thu, 18 Feb 2016 19:15:51 +0000 (21:15 +0200)]
Sonar: Constants should be declared "final static"

Change-Id: I625dee28e39d5919f79a512a3cb95ef947870848
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoSonar: Avoid modifiers which are implied by the context 26/34926/1
Lorand Jakab [Thu, 18 Feb 2016 18:48:25 +0000 (20:48 +0200)]
Sonar: Avoid modifiers which are implied by the context

Change-Id: I366848356f2d0860f74565ad152174e5119e4465
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "Optimize Ipv{4,6}(Prefix)Serializers"
Lori Jakab [Thu, 18 Feb 2016 18:21:37 +0000 (18:21 +0000)]
Merge "Optimize Ipv{4,6}(Prefix)Serializers"