lispflowmapping.git
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 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"

8 years agoMerge changes Ie652cc3c,If8a16a65,I96dba381,I23880f30
Vina Ermagan [Thu, 18 Feb 2016 02:11:17 +0000 (02:11 +0000)]
Merge changes Ie652cc3c,If8a16a65,I96dba381,I23880f30

* changes:
  Optimize MapRequestUtil
  Optimize LispNotificationHelper
  Optimize MaskUtil
  Optimize LispAddressUtil

8 years agoMerge "Fix ELPs"
Lori Jakab [Wed, 17 Feb 2016 21:22:32 +0000 (21:22 +0000)]
Merge "Fix ELPs"

8 years agoOptimize Ipv{4,6}(Prefix)Serializers 60/34860/2
Robert Varga [Wed, 17 Feb 2016 21:16:08 +0000 (22:16 +0100)]
Optimize Ipv{4,6}(Prefix)Serializers

Use InetAddresses.forString() and make private methods static where
possible.

Change-Id: I849f5eefc5d099cf792f30cd3fc65fd7e1acc0a5
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoOptimize MapRequestUtil 59/34859/2
Robert Varga [Wed, 17 Feb 2016 21:07:44 +0000 (22:07 +0100)]
Optimize MapRequestUtil

Use InetAddresses for String->Address conversion.

Change-Id: Ie652cc3c53859d3eae58bf1ff7a7484b3abeb9c2
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoOptimize LispNotificationHelper 58/34858/2
Robert Varga [Wed, 17 Feb 2016 21:05:15 +0000 (22:05 +0100)]
Optimize LispNotificationHelper

Use a Guava Splitter to split strings into components.

Change-Id: If8a16a65ddaba55f23257d53d5b6607698624323
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoOptimize MaskUtil 57/34857/2
Robert Varga [Wed, 17 Feb 2016 20:57:58 +0000 (21:57 +0100)]
Optimize MaskUtil

Do not instantiate temporary Strings.
Do not use String.split(String).
Usse InetAddresses.

Change-Id: I96dba381b8b1e94c2b332e5d050a2c94f06a8b90
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoOptimize LispAddressUtil 56/34856/2
Robert Varga [Wed, 17 Feb 2016 20:55:53 +0000 (21:55 +0100)]
Optimize LispAddressUtil

Use a direct string literal for /32 and /128.
Use InetAddresses.forString().
Make patterns properly final.

Change-Id: I23880f30a6917de45521856675002daba26c579b
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoFix ELPs 52/34852/1
Florin Coras [Wed, 17 Feb 2016 17:32:21 +0000 (18:32 +0100)]
Fix ELPs

Change-Id: I5c2283a7ff4b5a5b549951037f34c22327ef3ca7
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoUpdate Beryllium tutorial documentation resources 67/34767/1
Lorand Jakab [Tue, 16 Feb 2016 16:52:45 +0000 (18:52 +0200)]
Update Beryllium tutorial documentation resources

Change-Id: I1e398cbb1a1b4ad4751ab50e4bd2e396044b485e
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 5344: Fix NPE when restoring DAO from datastore 84/34584/1
Florin Coras [Fri, 12 Feb 2016 22:12:55 +0000 (23:12 +0100)]
Bug 5344: Fix NPE when restoring DAO from datastore

Change-Id: I0a31b84daa1f0d100aa12fc0d8b288efbf654707
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoBug 5275: Fix NPE for negative NB mappings 90/34290/1
Florin Coras [Mon, 8 Feb 2016 21:04:59 +0000 (22:04 +0100)]
Bug 5275: Fix NPE for negative NB mappings

Change-Id: Ie97494aff82ded1a8c63d7fcf8adfc215dceeafb
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoMerge "Bug 5270: Fix merging"
Vina Ermagan [Mon, 8 Feb 2016 23:52:34 +0000 (23:52 +0000)]
Merge "Bug 5270: Fix merging"

8 years agoBug 5270: Fix merging 71/34271/6
Florin Coras [Mon, 8 Feb 2016 17:01:46 +0000 (18:01 +0100)]
Bug 5270: Fix merging

1) Fix merge bit parsing in Map-Register/Notify
2) Sort locators in merged mapping record

Change-Id: I25047d1e39f1f4277e8d92bb9611f42b5876f178
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoMerge "Bug 5257: Increase subscriber TTL to 1 day"
Vina Ermagan [Mon, 8 Feb 2016 23:07:25 +0000 (23:07 +0000)]
Merge "Bug 5257: Increase subscriber TTL to 1 day"

8 years agoBug 5259: Fix NPE in serializer when merge is on 70/34270/1
Florin Coras [Sun, 7 Feb 2016 16:26:50 +0000 (17:26 +0100)]
Bug 5259: Fix NPE in serializer when merge is on

Avoid null records in map-notify by ensuring that newly registered
mappings are actually stored before building the map-notify.

Change-Id: Ied01de30a9449b4dbf54dc6da0ee37066be2c164
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoBug 5256: Set correct src EID for src/dst SMRs 14/34214/1
Florin Coras [Sat, 6 Feb 2016 17:17:13 +0000 (18:17 +0100)]
Bug 5256: Set correct src EID for src/dst SMRs

Change-Id: I7e65e782c73d8520b10db2e51223e8e7967fd270
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoBug 5255: Send SMRs on NB mapping creation 10/34210/1
Florin Coras [Sat, 6 Feb 2016 15:05:59 +0000 (16:05 +0100)]
Bug 5255: Send SMRs on NB mapping creation

Change-Id: If96f59dc7ebb8fce0b6890c0eea512e01a4c64ed
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoBug 5258: Fix NPE 99/34199/1
Lorand Jakab [Sat, 6 Feb 2016 01:07:59 +0000 (03:07 +0200)]
Bug 5258: Fix NPE

Change-Id: I6807c3e312deca44e3c56db48a590ce0f15bf930
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 5257: Increase subscriber TTL to 1 day 97/34197/1
Lorand Jakab [Sat, 6 Feb 2016 00:08:18 +0000 (02:08 +0200)]
Bug 5257: Increase subscriber TTL to 1 day

Change-Id: Idc7509531d152132cf3a2ecc4dd506357964f74d
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 5239: Fix IID Source/Dest lookup 46/34146/2
Florin Coras [Fri, 5 Feb 2016 11:12:19 +0000 (12:12 +0100)]
Bug 5239: Fix IID Source/Dest lookup

The issue is that the source EID is passed to the map-cache lookup as an
IP, not as an IP-prefix, and therefore it is not masked accordingly when
performing the longest prefix match. This patch updates the
MaskUtil.normalize() code to convert IPs to an IP-prefixes.

Change-Id: Iafd7bef2ef0911e6cbc61b8315208eb639e41766
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoBug 5228: More SMR fixes 01/34101/1
Lorand Jakab [Thu, 4 Feb 2016 22:27:06 +0000 (00:27 +0200)]
Bug 5228: More SMR fixes

Don't send mapping update notification for southbound originated mapping
changes, since the notifications are used for sending SMRs, and that is
handled elsewhere in MapServer.java's handleMapRegister() method, no
need to handle again in onMappingChanged().

Change-Id: I07ee8110f898e92c17fed0e14fb2f2f121cef143
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "Bug 5209: Fix EID string in URLs"
Florin Coras [Thu, 4 Feb 2016 14:53:34 +0000 (14:53 +0000)]
Merge "Bug 5209: Fix EID string in URLs"

8 years agoBug 5228: Use custom comparator for mappings 75/34075/1
Lorand Jakab [Thu, 4 Feb 2016 13:07:47 +0000 (15:07 +0200)]
Bug 5228: Use custom comparator for mappings

Change-Id: If44444dded1027c2d31e78815df77d88ca8a4cb3
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 5209: Fix EID string in URLs 59/34059/1
Lorand Jakab [Thu, 4 Feb 2016 10:31:09 +0000 (12:31 +0200)]
Bug 5209: Fix EID string in URLs

Change-Id: Ie402cb1ca66ddd468cc2273c8e8bed3e42bce2bc
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "Remove BindingAwareBroker"
Vina Ermagan [Wed, 3 Feb 2016 20:50:51 +0000 (20:50 +0000)]
Merge "Remove BindingAwareBroker"

8 years agoMerge "BUG-5047: switch to using PingPong data broker"
Lori Jakab [Wed, 3 Feb 2016 20:48:13 +0000 (20:48 +0000)]
Merge "BUG-5047: switch to using PingPong data broker"

8 years agoMerge "BUG-5047: close read transactions"
Florin Coras [Wed, 3 Feb 2016 20:32:36 +0000 (20:32 +0000)]
Merge "BUG-5047: close read transactions"

8 years agoRemove BindingAwareBroker 61/33961/7
Robert Varga [Wed, 3 Feb 2016 10:46:08 +0000 (11:46 +0100)]
Remove BindingAwareBroker

This is legacy API and not used in the implementation for any real
purpose. Remove references to it.

Change-Id: I4648c35cdd2a8aedd84c79f517b078fd29cffd23
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoBUG-5047: switch to using PingPong data broker 20/34020/2
Robert Varga [Wed, 3 Feb 2016 19:56:57 +0000 (20:56 +0100)]
BUG-5047: switch to using PingPong data broker

PingPong data broker performs automatic transaction merging and ensures
the data store is not overloaded with small transactions. It works
efficiently with TransactionChains, so let's switch to using it to reap
its benefits.

Change-Id: I0f023b02f2bf2c03da1b542d816cd86b4c99a5a5
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoBUG-5047: close read transactions 21/34021/2
Robert Varga [Wed, 3 Feb 2016 20:05:50 +0000 (21:05 +0100)]
BUG-5047: close read transactions

Read transactions need to be closed as per API contract. While the
datastore can recover, it is rather costly to do so, hence explicitly
close the transaction.

Change-Id: If056a9fe4f851e97a4d7d8f1c0a96aa339310554
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoBug 5217: Fix VNI of SB mappings in RESTCONF 07/34007/2
Lorand Jakab [Wed, 3 Feb 2016 18:06:08 +0000 (20:06 +0200)]
Bug 5217: Fix VNI of SB mappings in RESTCONF

Change-Id: I9ffbd07a0585c3cdea4d67dc8389ed6ac0a339a4
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 5216: Fix Instance ID authentication failure 05/34005/2
Lorand Jakab [Wed, 3 Feb 2016 18:34:16 +0000 (20:34 +0200)]
Bug 5216: Fix Instance ID authentication failure

Change-Id: Ib0f1ab5442c8c7062346522a0b0bbf151b3c08ad
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 5209: Add VNI to EID strings 99/33999/1
Lorand Jakab [Wed, 3 Feb 2016 15:52:11 +0000 (17:52 +0200)]
Bug 5209: Add VNI to EID strings

Change-Id: I2207eae4fce2c8b4df62fa460ce40044ea1c6bb8
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 5207: Fix missing Map-Notify caused NPE 98/33998/1
Lorand Jakab [Wed, 3 Feb 2016 15:47:52 +0000 (17:47 +0200)]
Bug 5207: Fix missing Map-Notify caused NPE

Additionally, change the log level for the missing Map-Notify to DEBUG,
since in case the Want-Map-Notify bit is not set, it is normal not to
have a Map-Notify.

Change-Id: I09262fa5afcb8d769a06af2c94d9ccb180bb867c
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoRemove reference to xtend 60/33960/1
Robert Varga [Wed, 3 Feb 2016 10:27:15 +0000 (11:27 +0100)]
Remove reference to xtend

We do not use xtend, no need to to mention it.

Change-Id: I3e86cdf495531b435e04dda9245780fe7047615b
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoBug 5047: Move to transaction chains and async APIs 92/33692/1
Lorand Jakab [Tue, 26 Jan 2016 19:32:14 +0000 (21:32 +0200)]
Bug 5047: Move to transaction chains and async APIs

This gives ~40% performance increase in NB RPC add-mapping rate on my
local VM.

Change-Id: I92313e6e9bb5994c560a44a3b0024edef05a0c83
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBUG-2625: bump equinox version 67/33667/1
Robert Varga [Wed, 27 Jan 2016 21:29:45 +0000 (22:29 +0100)]
BUG-2625: bump equinox version

This bumps the equinox version to 3.9.1.

Change-Id: I92c867c517fd4acc8f49f13d38575925ff42ce6c
Signed-off-by: Robert Varga <rovarga@cisco.com>
8 years agoBug 5047: Improve soutbound performance 90/33490/2
Lorand Jakab [Mon, 25 Jan 2016 17:35:29 +0000 (19:35 +0200)]
Bug 5047: Improve soutbound performance

This commit resulted in ~40% performance increase for the
Map-Request/Map-Reply tests [1] on my local VM.

[1] https://jenkins.opendaylight.org/releng/view/lispflowmapping/job/lispflowmapping-csit-1node-performance-only-beryllium/plot/#lispflowmapping-csit-1node-performance-only-beryllium-pps.csv-history.csv

Change-Id: I70a8a893a022f958e2ecfaa93271b170473ff8ce
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 5022: Migrate UI to IETF YANG model 01/33401/1
Lorand Jakab [Sat, 23 Jan 2016 00:28:47 +0000 (02:28 +0200)]
Bug 5022: Migrate UI to IETF YANG model

Change-Id: I1a7b64788c5298d7050abd89ff39be6cb0667f99
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 5003: Fixing merging of SB mappings (for reachability) into NB Mappings when... 80/32980/4
vermagan@cisco.com [Tue, 19 Jan 2016 06:09:29 +0000 (22:09 -0800)]
Bug 5003: Fixing merging of SB mappings (for reachability) into NB Mappings when needed.
(not tested)

Change-Id: Ic7992f148bf768f1399213dbd6a2f6da00b0a992
Signed-off-by: vermagan@cisco.com <vermagan@cisco.com>
8 years agoBump yangtools to 1.0.0-SNAPSHOT 78/33278/1
Thanh Ha [Thu, 21 Jan 2016 21:05:09 +0000 (16:05 -0500)]
Bump yangtools to 1.0.0-SNAPSHOT

Change-Id: Ic2f0e237440cd478c081bac92e14c46a9f3f9f5b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoBug 5034: Fix ServicePath normalization 10/33110/2
Florin Coras [Wed, 20 Jan 2016 16:33:52 +0000 (17:33 +0100)]
Bug 5034: Fix ServicePath normalization

Check if VNI is null and build normalized address accordingly.

Change-Id: Ic110664d7d4d78cac8a14bd63e04cee268a901e8
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoBug 5005: Send Map-Notify to all affected xTRs 93/32993/2
Lorand Jakab [Tue, 19 Jan 2016 10:11:07 +0000 (12:11 +0200)]
Bug 5005: Send Map-Notify to all affected xTRs

When merging is on, when a Map-Register is received send Map-Notify
containing the merged locator set to all xTRs that registered the same
prefix.

Change-Id: I50990371a077d2f405d99f0285e113333c9e2e76
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "Bug 5016: Fix VNI for Source and Dest parsing in SourceDestKeyHelper"
Vina Ermagan [Wed, 20 Jan 2016 03:36:34 +0000 (03:36 +0000)]
Merge "Bug 5016: Fix VNI for Source and Dest parsing in SourceDestKeyHelper"

8 years agoBug 5016: Fix VNI for Source and Dest parsing in SourceDestKeyHelper 26/33026/2
Florin Coras [Tue, 19 Jan 2016 18:30:37 +0000 (19:30 +0100)]
Bug 5016: Fix VNI for Source and Dest parsing in SourceDestKeyHelper

Change-Id: Icbdc5e0d17a9b6d4eb21a9c1d6dba7268737b8be
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoBug 4991: Map-Notify with merged record when merging 43/32943/2
Lorand Jakab [Mon, 18 Jan 2016 14:35:18 +0000 (16:35 +0200)]
Bug 4991: Map-Notify with merged record when merging

Change-Id: Ib86db1f836893779cc0144dcf45937a45ff3c499
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 4976: Fix NPE in SimpleMapCache 20/32820/2
Lorand Jakab [Sun, 17 Jan 2016 20:35:33 +0000 (22:35 +0200)]
Bug 4976: Fix NPE in SimpleMapCache

Change-Id: I0647c2b539876f319d71bb2186eee5a07ee3f300
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBump versions by 0.1.0 for next dev cycle 26/32726/1
Thanh Ha [Fri, 15 Jan 2016 05:29:03 +0000 (00:29 -0500)]
Bump versions by 0.1.0 for next dev cycle

Change-Id: I4f9c273f753ce478bfc33c73e2ea65aa479af58e
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoBug 4906: Remove inactive SB mappings after a timeout 93/32293/7
Lorand Jakab [Thu, 14 Jan 2016 17:26:31 +0000 (19:26 +0200)]
Bug 4906: Remove inactive SB mappings after a timeout

Change-Id: I83c28854acde09343b775154f0b2e4b4bbbc94fc
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 4932: Sending SMRs to subscribers after storeing the new record. 68/32468/2
vermagan@cisco.com [Wed, 13 Jan 2016 04:04:38 +0000 (20:04 -0800)]
Bug 4932: Sending SMRs to subscribers after storeing the new record.

Change-Id: I0605cc8858c32f82e87fb8564d3cca3823c8a268
Signed-off-by: vermagan@cisco.com <vermagan@cisco.com>
8 years agoBug 4822: Fix mapping record merging 26/31626/7
Lorand Jakab [Tue, 12 Jan 2016 13:38:16 +0000 (15:38 +0200)]
Bug 4822: Fix mapping record merging

Change-Id: Idee0361f31a5a0cad28ba35d3165683c64126266
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 4932: Sending SMR to the old EID key when a more specific is being registered... 89/32389/2
vermagan@cisco.com [Tue, 12 Jan 2016 05:39:23 +0000 (21:39 -0800)]
Bug 4932:  Sending SMR to the old EID key when a more specific is being registered for the first time.

Change-Id: I6a26c4230a49993ebd3442ffe4b6d46b19b61554
Signed-off-by: vermagan@cisco.com <vermagan@cisco.com>
8 years agoBug 4910: Make use of the StartingServiceIndex constant in the MappingSystem 73/32373/1
Florin Coras [Mon, 11 Jan 2016 22:34:08 +0000 (23:34 +0100)]
Bug 4910: Make use of the StartingServiceIndex constant in the MappingSystem

Change-Id: Ic1e351ce6322a465ebc9072144572e5b23a02e7d
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoBug 4910: Make starting ServiceIndex a constant 08/32308/1
Florin Coras [Sat, 9 Jan 2016 02:17:01 +0000 (03:17 +0100)]
Bug 4910: Make starting ServiceIndex a constant

Change-Id: I947d2676ab043039fde1b755cfc2d8554f5c09fe
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoBug 4909: Fix ServicePath LCAF normalization 07/32307/1
Florin Coras [Sat, 9 Jan 2016 01:52:09 +0000 (02:52 +0100)]
Bug 4909: Fix ServicePath LCAF normalization

Change-Id: Ie30450d4bf5e36aacf88fabc840eadb9a404faae
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoBug 4822: Simplify access to configuration variables 85/32185/1
Lorand Jakab [Wed, 6 Jan 2016 12:09:04 +0000 (14:09 +0200)]
Bug 4822: Simplify access to configuration variables

This patch removes the need to pass on configuration variables as part
of the API. Instead, any class can get access to any configuration
variable by accessing a single static instance of ConfigIni. This opens
up the possibility of adding new knobs to modify behavior of parts of
the code, without the need to change APIs (adding a method call
parameter for each knob).

The patch doesn't change the existing APIs (they should be cleaned up in
Boron timeframe though), but allows new confguration options with no API
changes. The main reason for this patch NOW is Bug 4822, which is
related to the merging of locators, and needs support for a new
configuration option.

Change-Id: I0f3a8680c749034f2b784cd5c24379dc3f589538
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "WIP: Bug 4822: Infra for merging: store source RLOC"
Vina Ermagan [Tue, 5 Jan 2016 16:00:42 +0000 (16:00 +0000)]
Merge "WIP: Bug 4822: Infra for merging: store source RLOC"

8 years agoWIP: Bug 4822: Infra for merging: store source RLOC 54/31854/2
Lorand Jakab [Mon, 4 Jan 2016 14:30:30 +0000 (16:30 +0200)]
WIP: Bug 4822: Infra for merging: store source RLOC

Add support for storing a list of source RLOCs inside a mapping record,
to be used for merging locators, more specificly, to send Map-Notify
messages to the appropriate xTRs on merge.

Change-Id: Ifbea9ba9471e7edb89bae7db3695828a98ad3f51
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoMerge "BUG-4840: drop dependency on org.opendaylight.controller:sal"
Vina Ermagan [Thu, 24 Dec 2015 20:31:53 +0000 (20:31 +0000)]
Merge "BUG-4840: drop dependency on org.opendaylight.controller:sal"

8 years agoBUG-4840: drop dependency on org.opendaylight.controller:sal 67/31867/1
Stephen Kitt [Thu, 24 Dec 2015 11:08:27 +0000 (12:08 +0100)]
BUG-4840: drop dependency on org.opendaylight.controller:sal

Change-Id: Ic63515f25ff773f5fe239530ee52f83535cbf536
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoBug 4832: Add serializer for Service Path LCAF 02/31802/1
Lorand Jakab [Tue, 22 Dec 2015 22:42:13 +0000 (00:42 +0200)]
Bug 4832: Add serializer for Service Path LCAF

Change-Id: Ie4d45e6ec9d2635d14a242c109e0e2d1c00f9cd3
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoAdd support for Service Path mapping records processing 61/31561/1
Florin Coras [Fri, 18 Dec 2015 00:45:27 +0000 (01:45 +0100)]
Add support for Service Path mapping records processing

The patch introduces two important changes for mapping records with
Service Path EIDs. First, it ensures that ServicePath EIDs are
normalized (i.e., Service Index is set to 0) before being used as keys
in mappings caches. Second, when doing lookups, for records with ELP
locator records, the Service Index in the requested EID is used to
select one, next hop, locator that is returned in the map-reply, instead
of the whole ELP.

Change-Id: Id487f3603f89beb5a878d5256709112ef004b4f6
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoAdd support for non-overwriting mapping storage 37/31537/1
Lorand Jakab [Thu, 17 Dec 2015 19:45:31 +0000 (21:45 +0200)]
Add support for non-overwriting mapping storage

When the "lisp.mappingOverwrite" configuration variable is set to
"false" this new mode of operation will allow storing a separate
MappingRecord for each unique xTR-ID from southbound registration. This
is independent from (but in preparation of) the merge functionality, as
rataining all southbound registrations is useful in non-merge mode too,
i.e., for liveness detection and statistics.

Change-Id: I6d322fbb5620815dbfc09dc49770373b48ec91c2
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoPull in hamcrest from odlparent 24/31424/2
Stephen Kitt [Wed, 16 Dec 2015 13:05:41 +0000 (14:05 +0100)]
Pull in hamcrest from odlparent

odlparent provides hamcrest-core; unittest_tools can rely on that as
long as it re-defines the scope (from test to compile).

Change-Id: I2878ef079c550dc58dde4564286704613aa7c01d
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoAdd missing license headers 83/31383/2
Thanh Ha [Tue, 15 Dec 2015 23:38:50 +0000 (18:38 -0500)]
Add missing license headers

Change-Id: Ia97bd156bc15f0022092535bb487183495c44dda
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoAdd ServicePath specific calls to postman collections 54/31354/2
Florin Coras [Tue, 15 Dec 2015 15:03:18 +0000 (16:03 +0100)]
Add ServicePath specific calls to postman collections

Change-Id: Id63cf7ec3978c9a1a7aa4032a131ed8d20236e79
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoAdd LispAddressStringifier support for ServicePath LCAF 53/31353/2
Florin Coras [Tue, 15 Dec 2015 11:37:25 +0000 (12:37 +0100)]
Add LispAddressStringifier support for ServicePath LCAF

Change-Id: I0c8aaaf1d49dd14eae6ac2e8460cc417c60d4cf6
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoAdd xTR-ID and site-ID fields inside MappingRecord 40/31340/2
Lorand Jakab [Tue, 15 Dec 2015 11:02:22 +0000 (13:02 +0200)]
Add xTR-ID and site-ID fields inside MappingRecord

In preparation for locator merging support.

Change-Id: I82b7fc94678af5102a5885cdd67485ac14219c79
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoBug 4778: Add missing service-path-lcaf identity 39/31339/1
Florin Coras [Tue, 15 Dec 2015 10:49:54 +0000 (11:49 +0100)]
Bug 4778: Add missing service-path-lcaf identity

Change-Id: I018ddebf955856fc845a805b5ddbc7dd56c6c358
Signed-off-by: Florin Coras <fcoras@cisco.com>
8 years agoSonar: Don't throw generic exceptions 76/31276/1
Lorand Jakab [Mon, 14 Dec 2015 14:32:51 +0000 (16:32 +0200)]
Sonar: Don't throw generic exceptions

Fix 13 instances of Sonar issue "Generic exceptions Error,
RuntimeException, Throwable and Exception should never be thrown"
labeled as Major. The rule description says: "Using such generic
exception prevents calling methods from handling differently each kind
of error."

Change-Id: I45a65903217375ab470275a2f5346d016ecebcf1
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
8 years agoUse model based Enum for LISP message type 67/31167/1
Lorand Jakab [Thu, 10 Dec 2015 22:38:01 +0000 (00:38 +0200)]
Use model based Enum for LISP message type

... and remove LispMessageEnum.java from lisp-proto.

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