genius.git
7 years agoUpstreaming MdSalUtil interal code changes to ODL 20/42120/1
HemaTG [Wed, 20 Jul 2016 06:32:58 +0000 (12:02 +0530)]
Upstreaming MdSalUtil interal code changes to ODL

Description :- Compared the MdSalUtil module between the internal code
base and ODL master and upstreaming the code that has not yet been pushed
to ODL master

Change-Id: I56fa1366f3154b2a870502d103a297995b9ba297
Signed-off-by: HemaTG <hema.gopalkrishnan@ericsson.com>
7 years agoMerge "Changes in different modules"
Vivek Srivastava [Wed, 20 Jul 2016 05:15:01 +0000 (05:15 +0000)]
Merge "Changes in different modules"

7 years agoMerge "Enabling interfacemanager-shell"
Sam Hague [Tue, 19 Jul 2016 21:38:29 +0000 (21:38 +0000)]
Merge "Enabling interfacemanager-shell"

7 years agoMerge "Monitor interval range change."
Sam Hague [Tue, 19 Jul 2016 18:20:35 +0000 (18:20 +0000)]
Merge "Monitor interval range change."

7 years agoMerge "Upstream : Performance Improvements"
Faseela K [Tue, 19 Jul 2016 17:18:01 +0000 (17:18 +0000)]
Merge "Upstream : Performance Improvements"

7 years agoMerge "Avoid deletion for the interface while adding"
Faseela K [Tue, 19 Jul 2016 15:16:24 +0000 (15:16 +0000)]
Merge "Avoid deletion for the interface while adding"

7 years agoMerge "Portname was dispalying somestring and now updating with actual port name...
Faseela K [Tue, 19 Jul 2016 15:14:03 +0000 (15:14 +0000)]
Merge "Portname was dispalying somestring and now updating with actual port name from parentref"

7 years agoChanges in different modules 41/42041/1
Suraj Ranjan [Tue, 19 Jul 2016 11:27:55 +0000 (16:57 +0530)]
Changes in different modules

This commit deals with upstream changes in ITM and Interfacemanager module
that was done for bug CSC cluster reboot failure for 100 VPN scenario

Change-Id: I59930870823d01661b9c9c00d3d2440e4d30909a
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
7 years agoEnabling interfacemanager-shell 28/42028/4
Abhinav Gupta [Tue, 19 Jul 2016 07:36:10 +0000 (13:06 +0530)]
Enabling interfacemanager-shell

few dependencies, etc. were missing to enable the shell bundle at runtime,
fixed it.

Change-Id: Ib8266e7131c31300860b88c9c368e7dbf0e1baee
Signed-off-by: Abhinav Gupta <abhinav.gupta@ericsson.com>
7 years agoMonitor interval range change. 34/42034/2
Dimple Jain [Tue, 19 Jul 2016 10:12:01 +0000 (15:42 +0530)]
Monitor interval range change.

Min interval value changed from 100 to 1000.

Change-Id: I3865d0ffba58b48cd76a58e0d8cd9f20ae318ede
Signed-off-by: Dimple Jain <dimple.jain@ericsson.com>
7 years agoAddition of new constants in mdsal 49/41949/7
Suraj Ranjan [Mon, 18 Jul 2016 08:02:36 +0000 (13:32 +0530)]
Addition of new constants in mdsal

Following commit includes few additional constants in following file:

1> MetaDataUtil.Java

Change-Id: I96c47f0cd92986ae57479c3a7269b2e22e3b9c05
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
7 years agoPortname was dispalying somestring and now updating with actual port name from parentref 12/41812/5
Sharath Kumar V [Thu, 14 Jul 2016 09:27:01 +0000 (14:57 +0530)]
Portname was dispalying somestring and now updating with actual port name from parentref

Change-Id: Ie7b5043116a1ed1c16c3897de689c7dc220f8da5
Signed-off-by: Sharath Kumar V <sharath.kumar.v@ericsson.com>
7 years agoUpstream : Performance Improvements 13/41813/3
Kency Kurian [Thu, 14 Jul 2016 09:26:34 +0000 (14:56 +0530)]
Upstream : Performance Improvements

IDMANAGER

- Allocating Id block to child pool when the pool is created
- The childPool entry updated for that particular instance for which lock
  manager is not required.
- Added a check before debug log messages
- The id entry in parent pool is updated directly so lock manager is not
  required
- Batching transactions where ever posssible

DATASTOREJOBCOORDINATOR

- The JobQueueHandler waits until a new job is enqueued. Earlier it used
  to sleep for 1 second and again check for new jobs.

Change-Id: I5edfb2b6782bf3a752dc09702d11c1d80f7ff474
Signed-off-by: Kency Kurian <kency.kurian@ericsson.com>
7 years agoMerge "Supporting DHCP as a service"
Sam Hague [Mon, 18 Jul 2016 18:48:45 +0000 (18:48 +0000)]
Merge "Supporting DHCP as a service"

7 years agoMerge "Implement missing equals() & hashCode() for FlowEntity & Co."
David Suarez [Mon, 18 Jul 2016 17:49:13 +0000 (17:49 +0000)]
Merge "Implement missing equals() & hashCode() for FlowEntity & Co."

7 years agoImplement missing equals() & hashCode() for FlowEntity & Co. 00/41600/5
Michael Vorburger [Fri, 8 Jul 2016 22:13:06 +0000 (00:13 +0200)]
Implement missing equals() & hashCode() for FlowEntity & Co.

PLEASE CAREFULLY CODE REVIEW BY SEVERAL PEOPLE.

This is required to compare FlowEntity instances e.g. in tests.  It's
also a Good Idea in general to have all "value" objects always properly
implement equals() & hashCode() ..

The MoreObjects2 is just a novel pattern I came up with for how to keep
equals() implementations short and concise.

Change-Id: I269bec061b1f8baf1caf36bcb0a46aef7100569f
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoAvoid deletion for the interface while adding 14/41814/3
D Arunprakash [Thu, 14 Jul 2016 09:34:14 +0000 (15:04 +0530)]
Avoid deletion for the interface while adding

Avoid deletion for the interface when add comes
from the same dpn.

Change-Id: I0fc66ba7943e0e83c8bfee57baa6ec1dacea63f8
Signed-off-by: D Arunprakash <d.arunprakash@ericsson.com>
7 years agoupdate even when original schema has no DPNs 23/41923/1
Dimple Jain [Sun, 17 Jul 2016 11:05:25 +0000 (16:35 +0530)]
update even when original schema has no DPNs

Change-Id: Iee9692ce18445e7b9a7af08b75e581c892bd6f43
Signed-off-by: Dimple Jain <dimple.jain@ericsson.com>
7 years agoSupporting DHCP as a service 05/41705/6
epgoraj [Tue, 12 Jul 2016 11:12:08 +0000 (16:42 +0530)]
Supporting DHCP as a service

Change-Id: Ie282296c6e79abe7c49a1976100ec4f23cef4a7c
Signed-off-by: epgoraj <p.govinda.rajulu@ericsson.com>
7 years agoMerge "ArpUtil module sync up"
Faseela K [Fri, 15 Jul 2016 05:36:17 +0000 (05:36 +0000)]
Merge "ArpUtil module sync up"

7 years agoMerge "Add convenience syntactic constructors and setter"
David Suarez [Thu, 14 Jul 2016 19:36:24 +0000 (19:36 +0000)]
Merge "Add convenience syntactic constructors and setter"

7 years agoArpUtil module sync up 17/41817/3
Abhinav Gupta [Thu, 14 Jul 2016 11:12:55 +0000 (16:42 +0530)]
ArpUtil module sync up

Change-Id: I0a948a75193f896426b403fc2dc50a866ebff7f8
Signed-off-by: Abhinav Gupta <abhinav.gupta@ericsson.com>
7 years agoMerge "IFM: InterfaceStatecache not updated correctly"
Faseela K [Thu, 14 Jul 2016 18:58:52 +0000 (18:58 +0000)]
Merge "IFM: InterfaceStatecache not updated correctly"

7 years agoMerge "ITM: Fix for tunnel ports not getting deleted."
Faseela K [Thu, 14 Jul 2016 10:49:31 +0000 (10:49 +0000)]
Merge "ITM: Fix for tunnel ports not getting deleted."

7 years agoIFM: InterfaceStatecache not updated correctly 03/41803/3
Vishal Thapar [Thu, 14 Jul 2016 07:00:47 +0000 (12:30 +0530)]
IFM: InterfaceStatecache not updated correctly

1. CacheInterfaceStateListener is listening on CONFIGURATION DS changes
but it should be Operational as state changes are only made on operational
DS.
2.cache.remove() methods in InterfaceManagerCommonUtils use remove(key,
oject) to delete from cache. This is not an accurate representation of
deletes on DS where we only use key and leads to inconsistent behavior.
This fix changes those methods to only use key [interface name] to remove
from cache.

Change-Id: I322a3c5df9631cda2f5bdc4b46adf886a18bf88b
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoMerge "Utility method to get port termination point is added in HwvtepUtils.java"
Faseela K [Thu, 14 Jul 2016 06:31:52 +0000 (06:31 +0000)]
Merge "Utility method to get port termination point is added in HwvtepUtils.java"

7 years agoUpgrade ietf-{inet,yang}-types to 2013-07-15 82/41782/1
Lorand Jakab [Wed, 13 Jul 2016 17:48:00 +0000 (12:48 -0500)]
Upgrade ietf-{inet,yang}-types to 2013-07-15

Change-Id: Ia762d7514d2426b3062a4e8d79ca7c9c5d35226f
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
7 years agoMerge "Upgrade ietf-{inet,yang}-types to 2013-07-15"
Colin Dixon [Wed, 13 Jul 2016 17:23:15 +0000 (17:23 +0000)]
Merge "Upgrade ietf-{inet,yang}-types to 2013-07-15"

7 years agoUtility method to get port termination point is added in HwvtepUtils.java 53/41753/1
unknown [Wed, 13 Jul 2016 09:28:35 +0000 (14:58 +0530)]
Utility method to get port termination point is added in HwvtepUtils.java

This utility method is used in netvirt project

Change-Id: Iff23f3011d9c06a4f854ad22d653a8c822149899
Signed-off-by: Shashidhar R <shashidhar.raja@ericsson.com>
7 years agoIFM: Add caching to optimize DS reads 49/41749/1
Vishal Thapar [Wed, 13 Jul 2016 07:57:11 +0000 (13:27 +0530)]
IFM: Add caching to optimize DS reads

This adds caching for Interface and InterfaceState to avoid reads on
Config and OperationalDS. For now it deprecates use of API that needs
InterfaceKey/InstanceIdentifier, a later cleanup activity should remove
all references to them.

This also adds a minor change to retry when submitting to DSJobCoordinator

Change-Id: Id46b191a8b73a95eecc8bf4c7996101986e13b17
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoMerge "Remove genius_checkstyle.xml fork"
Faseela K [Wed, 13 Jul 2016 07:20:46 +0000 (07:20 +0000)]
Merge "Remove genius_checkstyle.xml fork"

7 years agoMerge "ITM: Dont use IdManager to generate tunnel name"
Faseela K [Wed, 13 Jul 2016 07:02:11 +0000 (07:02 +0000)]
Merge "ITM: Dont use IdManager to generate tunnel name"

7 years agoMerge "Added new matches and constants."
Sam Hague [Tue, 12 Jul 2016 18:51:32 +0000 (18:51 +0000)]
Merge "Added new matches and constants."

7 years agoRemove genius_checkstyle.xml fork 17/41717/2
Michael Vorburger [Tue, 12 Jul 2016 14:19:19 +0000 (16:19 +0200)]
Remove genius_checkstyle.xml fork

Let's just use the shared one from odl-parent by inheritance.  As almost
no
projects in Genius currently "enforce" Checkstyle anyway, this change
will just cause people to see probably slightly different Checkstyle
messages, but nothing on the build should fail.

Only resourcemanager-impl already enforced Checkstyle compliance to fail
the build.  This change thus includes two CS related fixups to it.

Subsequently people, incl. perhaps me, may then start fixing more
projects, and turn on enforcement of Checkstyle in (more) Genius
projects, gradually.

Change-Id: I2c463d0dbe1572e58480a05562eabd502882bb1c
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoITM: Dont use IdManager to generate tunnel name 10/41710/2
Vishal Thapar [Tue, 12 Jul 2016 12:46:48 +0000 (18:16 +0530)]
ITM: Dont use IdManager to generate tunnel name

This replaces call to IdManage to get Id part of Tunnel name with
generated uuid. IdKey becomes the seed for generated uuid. Tunnel
interface name is 'tun' followed by first 11 alphanumeric characters of
uuid generated.

Change-Id: I72b4663121df20839c6ac478a4f9bfd181285345
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoInitializing bean List fields with empty lists make them easier to use 23/41523/2
Michael Vorburger [Fri, 8 Jul 2016 01:59:13 +0000 (03:59 +0200)]
Initializing bean List fields with empty lists make them easier to use

Change-Id: I9db3d3b49837ad5954b4df0ceedf2d4d8d9a0e34
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoITM: Fix for tunnel ports not getting deleted. 59/41659/2
Somashekar Byrappa [Mon, 11 Jul 2016 14:19:17 +0000 (19:49 +0530)]
ITM: Fix for tunnel ports not getting deleted.

During deletion of transport zone, tunnel ports (on ovs) connecting to
l2gw devices were not getting deleted.

Root cause: During deletion of transport zone, there was a logic fetching
transport zone from config DS which actually doesn't exist.

Fix: Changed the logic to pass transport zone object from
TransportZoneListener to the worker.

Change-Id: I27dc944c43b83f1b6c17cf9ccbacc76201243ed4
Signed-off-by: Somashekar Byrappa <somashekar.byrappa@ericsson.com>
7 years agoMerge "JUnit test case for ITM"
Faseela K [Tue, 12 Jul 2016 06:21:27 +0000 (06:21 +0000)]
Merge "JUnit test case for ITM"

7 years agoJUnit test case for ITM 92/41692/1
Suraj Ranjan [Tue, 12 Jul 2016 04:29:06 +0000 (09:59 +0530)]
JUnit test case for ITM

JUnit test cases for TepCommandHelper.java

Change-Id: I8b37ec109781af4040336cce09f80879317434bd
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
7 years agoMerge "Monitor Interval range changed. Min value 1 sec."
Faseela K [Mon, 11 Jul 2016 19:13:36 +0000 (19:13 +0000)]
Merge "Monitor Interval range changed. Min value 1 sec."

7 years agoMonitor Interval range changed. Min value 1 sec. 57/41457/7
Dimple Jain [Thu, 7 Jul 2016 06:55:25 +0000 (12:25 +0530)]
Monitor Interval range changed. Min value 1 sec.

Change-Id: I44a52c36fbf4c7df13f4ff8c94cdab648e3ed0cb
Signed-off-by: Dimple Jain <dimple.jain@ericsson.com>
7 years agoIssue : BFD Session with 100ms interval is not getting established 48/41648/2
Vyshakh Krishnan CH [Mon, 11 Jul 2016 11:45:21 +0000 (17:15 +0530)]
Issue : BFD Session with 100ms interval is not getting established

Analysis:

As per ovs code & bfd rfc :
 /* RFC 5880 Section 6.8.3
  * When bfd.SessionState is not Up, the system MUST set
  * bfd.DesiredMinTxInterval to a value of not less than one
  * second
  * (1,000,000 microseconds).  This is intended to ensure
  * that the
  * bandwidth consumed by BFD sessions that are not Up
  * is negligible,
  * particularly in the case where a neighbor may
  * not be running BFD. */

   whatever Tx interval we configure less than a second, ovs is taking 1
sec.
  So this is an expected behavior

Fix:
  Since its an expected behavior no need of fix.
  But we don’t provide options to configure Rx interval and decay min
  rx in ODL, making changes just to pass enable and min_tx instead of
  passing all the unconfigured parameters as well. And let the ovs
  take the default min_rx and decay_interval.

Change-Id: I3dbcd466da98e00f716103678d1607e53ae8235b
Signed-off-by: Vyshakh Krishnan CH <vyshakh.krishnan.c.h@ericsson.com>
7 years agoUpgrade ietf-{inet,yang}-types to 2013-07-15 26/40826/4
Lorand Jakab [Fri, 24 Jun 2016 18:23:51 +0000 (13:23 -0500)]
Upgrade ietf-{inet,yang}-types to 2013-07-15

Change-Id: Ifb05f4be62744715a6f2726416827d2db9e04670
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
7 years agoMerge "Making all these fields final and explicitly initialize to null"
David Suarez [Mon, 11 Jul 2016 08:44:35 +0000 (08:44 +0000)]
Merge "Making all these fields final and explicitly initialize to null"

7 years agoMerge "Getters of List<T> in Beans should not return List<? extends T>"
David Suarez [Sat, 9 Jul 2016 09:54:09 +0000 (09:54 +0000)]
Merge "Getters of List<T> in Beans should not return List<? extends T>"

7 years agoMaking all these fields final and explicitly initialize to null 24/41524/2
Michael Vorburger [Fri, 8 Jul 2016 02:07:50 +0000 (04:07 +0200)]
Making all these fields final and explicitly initialize to null

This makes the intention of the code in these classes much clearer to
read (the idea of the API as-is seems to be that always only either of
the 3 is set).

Removal of setInstructionValues in InstructionInfo is only consistent
then.

Change-Id: I4a0c540df0a4526f6ff326b5386260e291085275
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoMerge "Implement VxLAN-GPE tunnels in Genius"
Faseela K [Fri, 8 Jul 2016 11:10:40 +0000 (11:10 +0000)]
Merge "Implement VxLAN-GPE tunnels in Genius"

7 years agoMerge "lport-tag interface map information lost during cluster reboot"
Faseela K [Fri, 8 Jul 2016 08:57:35 +0000 (08:57 +0000)]
Merge "lport-tag interface map information lost during cluster reboot"

7 years agolport-tag interface map information lost during cluster reboot 40/41540/1
Faseela K [Fri, 8 Jul 2016 06:11:44 +0000 (11:41 +0530)]
lport-tag interface map information lost during cluster reboot

Change-Id: I2d27c94092a76931fe83bea06fbea360c4556b9b
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoGetters of List<T> in Beans should not return List<? extends T> 22/41522/1
Michael Vorburger [Fri, 8 Jul 2016 01:48:17 +0000 (03:48 +0200)]
Getters of List<T> in Beans should not return List<? extends T>

see
http://blog2.vorburger.ch/2016/07/generics-in-list-fields-of-beans.html

Change-Id: I4a714e03413bf766ae7ebc5ae4fcccbbabcc5afd
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoAdd convenience syntactic constructors and setter 19/41519/2
Michael Vorburger [Thu, 7 Jul 2016 23:46:42 +0000 (01:46 +0200)]
Add convenience syntactic constructors and setter

For long instead of BigInteger, and int instead of short.

Both are handy e.g. when programmatically creating FlowEntity
instances in test code.  I don't see any downside to alternatively
offering this, to make test code quicker to write and less verbose to
read.

Change-Id: Ifaa936c659d669e551de523a1c0f2067093faa2d
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoFix Flow/GroupEntity & Co. toString() to be useful 18/41518/1
Michael Vorburger [Thu, 7 Jul 2016 21:44:08 +0000 (23:44 +0200)]
Fix Flow/GroupEntity & Co. toString() to be useful

Fixes a number of strictly speaking slightly separate problems:

  1. FlowEntity/GroupEntity: The way the parent class super.toString()
was appended at the end instead of at the start was visually just very
ugly and confusing.  Removal of toString in AbstractSwitchEntity
accordingly, because .. that can never get called now.

  2. The use of the private internal "polish notation prefix" instead of
the classes public (as in getter and setter) field names  was just ugly
and confusing.

  3. ActionInfo, NxMatchInfo, MatchInfo, InstructionInfo and BucketInfo
were all simply completely missing a toString().  This is very bad
because they are contained in FlowEntity (GroupEntity), and thus need
toString as well.

  4. The use of Arrays.deepToString & Arrays.toString is because Guava
18 which ODL uses as of now does not do this automatically (so you get
"[J@493968a9" etc.).  With the switch to Guava 19 proposed in
https://git.opendaylight.org/gerrit/#/c/41515/ this will not be required
anymore.  It doesn't hurt either then, so for now to make this proposed
change not require that upgrade yet and keep things separate, we must
use it for all array (but not List) type fields.  FTR: The minor
disadvantage of Arrays.(deep)ToString is that it renders
omitNullValues() ineffective, so once we are successfully on Guava 19 on
master, it would leader to shorter = nicer toString() output to remove
them again.

This overall change should, of course, not have any impact anywhere,
because toString methods are ONLY supposed to be used for debugging and
logs; any code that relies on e.g. parsing their output would be a bug.

Change-Id: I942842c13670a7d9ce4adb19581cdf1cebf43087
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoAdded new matches and constants. 84/41484/1
Sam Hague [Thu, 7 Jul 2016 13:35:25 +0000 (19:05 +0530)]
Added new matches and constants.

1)Added ICMP and ARP Mathes
2)Added new constants.

Change-Id: I8d47970f6c71bef320bb9e647ccdcb2ec2970f4b
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
7 years agoImplement VxLAN-GPE tunnels in Genius 34/41334/1
David Suarez [Tue, 5 Jul 2016 13:56:32 +0000 (15:56 +0200)]
Implement VxLAN-GPE tunnels in Genius

Now Genius can create Transport Zones using VxLAN-GPE tunnels. The
new type is defined as "odl-interface:tunnel-type-vxlan-gpe". The creation
of VxLAN-GPE tunnels requires a switch with that capability implemented,
as the unofficial OVS v2.5.90.

Change-Id: I135014ee2d24ce706708e4ba9d75a59842db6fd2
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
7 years agoAdding new API's to MDSAL manager 60/41260/4
epgoraj [Mon, 4 Jul 2016 04:11:18 +0000 (09:41 +0530)]
Adding new API's to MDSAL manager

Change-Id: I9419ca62124bb608ac97cd5fe3419e7c749afe7a
Signed-off-by: epgoraj <p.govinda.rajulu@ericsson.com>
7 years agoMerge "Ingress/Egress Service Binding Renderers"
Faseela K [Mon, 4 Jul 2016 19:03:14 +0000 (19:03 +0000)]
Merge "Ingress/Egress Service Binding Renderers"

7 years agoImplementation yangs for resourcemanager 35/41235/1
karanrajsingh [Thu, 30 Jun 2016 06:52:52 +0000 (12:22 +0530)]
Implementation yangs for resourcemanager

This patch contains implementation yangs and starter files for resource
manager bundle.

Change-Id: I1ecd8073efbb64045ddf4785651b32c7035d968e
Signed-off-by: karanrajsingh <karan.raj.s.singh@ericsson.com>
7 years agoIngress/Egress Service Binding Renderers 01/41201/4
Faseela K [Fri, 1 Jul 2016 20:18:43 +0000 (01:48 +0530)]
Ingress/Egress Service Binding Renderers

Description: Adding a generic model, so that based on the
service mode, specific renderers can be invoked
to do bind/unbind service.
eg : If service-mode is ingress,
FlowBasedIngressServicesConfigBindHelper.bindService()
will be executed.

Change-Id: I6940cda095f7ff2b839b3b6db27d17a8b1f08b80
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoRework LockManager.getLock() in iterative fashion 83/40883/2
Stephen Kitt [Mon, 27 Jun 2016 15:22:17 +0000 (17:22 +0200)]
Rework LockManager.getLock() in iterative fashion

getLock currently uses recursion, which limits the retries to the
available stack depth and causes some code duplication. Rewriting them
using loops feels clearer to me and simplifies the code.

Change-Id: I1134bcf653dce3d519b2002af5e78850e41ff284
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoMerge "Drop Apache Felix gogo packages"
Sam Hague [Fri, 1 Jul 2016 18:58:28 +0000 (18:58 +0000)]
Merge "Drop Apache Felix gogo packages"

7 years agoMerge "Drop LockManagerUtils.convertToMillis()"
Sam Hague [Fri, 1 Jul 2016 18:56:23 +0000 (18:56 +0000)]
Merge "Drop LockManagerUtils.convertToMillis()"

7 years agoMerge "Use odlparent-lite for aggregator"
Sam Hague [Fri, 1 Jul 2016 18:55:26 +0000 (18:55 +0000)]
Merge "Use odlparent-lite for aggregator"

8 years agoMerge "Nova Evacuation doesn't program Flows and groups"
Faseela K [Fri, 1 Jul 2016 05:11:48 +0000 (05:11 +0000)]
Merge "Nova Evacuation doesn't program Flows and groups"

8 years agofix mdsal set ips ActionTypes to use netmask 16/41116/2
Slava [Thu, 30 Jun 2016 07:17:05 +0000 (10:17 +0300)]
fix mdsal set ips ActionTypes to use netmask

Change-Id: Ie0b58ce2f6f804265ab0bd9f5d5e5bb82f38fc33
Signed-off-by: Slava Radune <slava.radune@hpe.com>
8 years agoNova Evacuation doesn't program Flows and groups 13/41113/1
D Arunprakash [Thu, 30 Jun 2016 06:11:22 +0000 (11:41 +0530)]
Nova Evacuation doesn't program Flows and groups

Nova Host Evaucation doesn't program flows and
groups on target host.
Interfaces state will be set to unkown if the connection
is lost between controller and swith.

Even in evacuation case, switch will lose connectivity
with the controller and the VM present in those Switch
will be evacuated to the new switch.

So, all the flows and groups should be in the new switch.
Events comes from new switch is updating existing entry
instead of deleting and add.

Change-Id: I4b85035b3b36dd4112dd477c3d73730203f1cdd4
Signed-off-by: D Arunprakash <d.arunprakash@ericsson.com>
8 years agoDrop Apache Felix gogo packages 24/41024/1
Stephen Kitt [Wed, 29 Jun 2016 14:27:28 +0000 (16:27 +0200)]
Drop Apache Felix gogo packages

These appear to be unused in Genius, and are obsolete anyway.

Change-Id: Icdb547f53a4c7b1a0f84e110be17090afa994ed1
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoChange OFP feature dependency 10/41010/2
Andrej Leitner [Wed, 29 Jun 2016 08:58:18 +0000 (10:58 +0200)]
Change OFP feature dependency

 - changed odl-openflowplugin-all to odl-openflowplugin-flow-services-ui
   since it installs same features/bundles and we would like to remove
   OFP-all feature

Change-Id: I9c6b879a4e483d7e747ebc811a4ffce07a14fd82
Signed-off-by: Andrej Leitner <anleitne@cisco.com>
8 years agoMerge "Datamodel changes for Egress Service Binding Support"
Vivek Srivastava [Wed, 29 Jun 2016 10:22:39 +0000 (10:22 +0000)]
Merge "Datamodel changes for Egress Service Binding Support"

8 years agoDatamodel changes for Egress Service Binding Support 67/40767/2
Faseela K [Thu, 23 Jun 2016 11:33:35 +0000 (17:03 +0530)]
Datamodel changes for Egress Service Binding Support

Change-Id: I1740129fa31ed22822cc89c651913de90bcb8d50
Signed-off-by: Faseela K <faseela.k@ericsson.com>
8 years agoMerge "DC Gateway IP Persistence"
Faseela K [Wed, 29 Jun 2016 09:17:42 +0000 (09:17 +0000)]
Merge "DC Gateway IP Persistence"

8 years agoDC Gateway IP Persistence 22/40922/1
karanrajsingh [Tue, 28 Jun 2016 07:31:52 +0000 (13:01 +0530)]
DC Gateway IP Persistence

Building external tunnels to DC Gateway for new TEP addition to an
existing mesh.
Deleting external tunnels from DPN when the last available tep is deleted.

Change-Id: I2ab0014416e74783238fe6611f758eb750fe0b99
Signed-off-by: karanrajsingh <karan.raj.s.singh@ericsson.com>
8 years agoDrop LockManagerUtils.convertToMillis() 73/40873/1
Stephen Kitt [Mon, 27 Jun 2016 13:47:41 +0000 (15:47 +0200)]
Drop LockManagerUtils.convertToMillis()

It's simpler (and shorter) to use the underlying TimeUnit method.

Change-Id: I96f9a151570b23fff937b099616914c38baaa75a
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoNew resourcemanager bundle with yang models 10/40810/1
karanrajsingh [Fri, 24 Jun 2016 06:50:12 +0000 (12:20 +0530)]
New resourcemanager bundle with yang models

This review contains initial changes for resource manager and relevant
yang models.

Change-Id: Ibe4834479b746ec53b80fe5635adaa7e25e753e2
Signed-off-by: karanrajsingh <karan.raj.s.singh@ericsson.com>
8 years agoAdding RPCs in ITM which will be made use of by L3VPN 49/40749/1
Chintan Apte [Thu, 23 Jun 2016 06:36:57 +0000 (12:06 +0530)]
Adding RPCs in ITM which will be made use of by L3VPN
for handling ITM tunnel state events.

Change-Id: I5cee3945acb27569f0a4f048d8aa9121f5b9757b
Signed-off-by: Chintan Apte <chintan.apte@ericsson.com>
8 years agoMerge "Removing Table 0 entry for the vm migrated to new dpn."
Faseela K [Thu, 23 Jun 2016 05:07:44 +0000 (05:07 +0000)]
Merge "Removing Table 0 entry for the vm migrated to new dpn."

8 years agoMerge "Modified Match and Action utilities to support Nicira extension required for...
Sam Hague [Tue, 21 Jun 2016 13:04:32 +0000 (13:04 +0000)]
Merge "Modified Match and Action utilities to support Nicira extension required for connection tracking."

8 years agoRemoving Table 0 entry for the vm migrated to new dpn. 02/40602/1
D Arunprakash [Tue, 21 Jun 2016 10:16:41 +0000 (15:46 +0530)]
Removing Table 0 entry for the vm migrated to new dpn.

Description: After VM migration, table 0 entry for VM
exists in older dpn as well. NodeConnector for older
DPN is passed for OvsInterfaceStateRemoveHelper

Change-Id: If8b01940f116f40042157ad33efc076959851b8a
Signed-off-by: D Arunprakash <d.arunprakash@ericsson.com>
8 years agoUse odlparent-lite for aggregator 28/38828/3
Alexis de Talhouët [Thu, 12 May 2016 21:06:26 +0000 (17:06 -0400)]
Use odlparent-lite for aggregator

Change-Id: Ia505280cf494b810357178b44b3889a0809b37fb
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
8 years agoDynamic resource-ids allocation 22/40022/7
karanrajsingh [Mon, 6 Jun 2016 06:13:37 +0000 (11:43 +0530)]
Dynamic resource-ids allocation

This patch handles the dynamic allocation of a range of resource-IDs. The
allocateIdRange rpc call returns an ordered list of resource-IDs as per the number
of IDs requested.

Change-Id: Ibca94704967ff1bc31343c013579c83b2a908689
Signed-off-by: karanrajsingh <karan.raj.s.singh@ericsson.com>
8 years agoMerge "Add support for vxlan-gpe in YANG files"
Faseela K [Wed, 15 Jun 2016 04:36:15 +0000 (04:36 +0000)]
Merge "Add support for vxlan-gpe in YANG files"

8 years agoFixing issues with tunnel deletion when switch is disconnected 94/40294/2
Faseela K [Tue, 14 Jun 2016 23:32:09 +0000 (05:02 +0530)]
Fixing issues with tunnel deletion when switch is disconnected

Change-Id: I5a06a4d52ad7f9e7de8cb84ef45e22c7f0230e5a
Signed-off-by: Faseela K <faseela.k@ericsson.com>
8 years agoModified Match and Action utilities to support Nicira extension required 33/40233/2
Aswin Suryanarayanan [Mon, 13 Jun 2016 10:11:16 +0000 (15:41 +0530)]
Modified Match and Action utilities to support Nicira extension required
for connection tracking.

Change-Id: Id92c251d0b8379e23aa99a013ec7c10e6818bc3e
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
8 years agoITM: Implementation of BFD monitoring 18/40218/1
Dimple Jain [Mon, 13 Jun 2016 08:30:49 +0000 (14:00 +0530)]
ITM: Implementation of BFD monitoring

Change-Id: I2b7cf9402029916383c6bdd44fda4b31e28037a1
Signed-off-by: Dimple Jain <dimple.jain@ericsson.com>
8 years agoAdd support for vxlan-gpe in YANG files 17/40117/1
David Suarez [Fri, 3 Jun 2016 12:13:38 +0000 (14:13 +0200)]
Add support for vxlan-gpe in YANG files

Change-Id: I649298f507a91b8d091bb0df8465087cdba96a31
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
8 years agoMerge "Fixed reverse tunnel delete on TEP delete and NPE"
Faseela K [Thu, 9 Jun 2016 14:05:11 +0000 (14:05 +0000)]
Merge "Fixed reverse tunnel delete on TEP delete and NPE"

8 years agoBFD monitoring support for internal tunnels 25/40025/4
Faseela K [Wed, 8 Jun 2016 17:08:28 +0000 (22:38 +0530)]
BFD monitoring support for internal tunnels

Description : Currently Genius uses only LLDP monitoring for internal
tunnels. Enabling the flexibility to configure tunnel of choice, either
LLDP or BFD

Change-Id: Ie645cfd7638c69e499d39957e943354382a44413
Signed-off-by: Faseela K <faseela.k@ericsson.com>
8 years agoFixing Tunnel Delete Issues and some RACE conditions 12/39212/2
Faseela K [Sat, 21 May 2016 18:14:57 +0000 (23:44 +0530)]
Fixing Tunnel Delete Issues and some RACE conditions
Description:
   1. Releasing if-index on tunnel-deletion
   2. Removing transaction batching across shards for tunnel deletion
   3. Handling tunnel deletion while a switch is stopped.
   4. Interface-manager southbound events were synchronized on tap port
      name, and northbound events were synchronized on interface-name.
      However in a nova delete VM cases, both the northbound and
      southbound
      events can be triggered in any order, and this can cause
      RACE conditions.

   5. Handling the same for port update scenarios

   6. Optimization to handle interface
      creation/deletion/updation
      parallelly on southbound events

Change-Id: I97793cfc7664b7d76b288cb4ba66fbf42f553de1
Signed-off-by: Faseela K <faseela.k@ericsson.com>
8 years agoFix for the Bug 5533 - NumberFormatException in AlivenessProtocolHandlerLL.java 37/39637/8
Dhevendran [Tue, 31 May 2016 10:23:40 +0000 (15:53 +0530)]
Fix for the Bug 5533 - NumberFormatException in AlivenessProtocolHandlerLL.java

Problem Statement : The NumberFormatException was observed in VPN service if 3 node cluster are started at the same time in the class AlivenessProtocolHandlerLL.java. This was reported in vpnservice and genius.

Analysis :  By looking at the implemenation of AlivenessProtocolHandlerLLDP.java, there is a unused local variable (i.e. packetId ) in handlePacketIn() mentod which caused the issue. This will be definitly fixed if the assignment is removed since the

Fix Detail: The unused variable (i.e. packetId ) in handlePacketIn() from the class AlivenessProtocolHandlerLLDP.java is removed to avoid this issue

Change-Id: Idbca6a6ba31626842ded7d82f00e9693a0dcbf5f
Signed-off-by: Dhevendran <dhevendran.k@tcs.com>
8 years agoFixed reverse tunnel delete on TEP delete and NPE 20/39520/1
HemaTG [Fri, 27 May 2016 09:58:10 +0000 (15:28 +0530)]
Fixed reverse tunnel delete on TEP delete and NPE

Change-Id: I4ae3d58e4d21ab98505cde40f661f4760ffa4091
Signed-off-by: HemaTG <hema.gopalkrishnan@ericsson.com>
8 years agoMove fcapsmanager and application to genius 07/39107/2
Vishal Thapar [Thu, 19 May 2016 12:19:39 +0000 (17:49 +0530)]
Move fcapsmanager and application to genius

These two need to be in genius, not vpnservice or netvirt.

Change-Id: Ia9b186dea4a06efb3febcd9d8a219b44915a6d18
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
8 years agoAdding ITM unit testcases and syncing mdsalutil changes from vpnservice 54/38754/2
Faseela K [Thu, 12 May 2016 10:20:29 +0000 (15:50 +0530)]
Adding ITM unit testcases and syncing mdsalutil changes from vpnservice

Change-Id: I9a55b785c83d9d2414230d2f16094a9b79dc41b7
Signed-off-by: Faseela K <faseela.k@ericsson.com>
8 years agoPostman collection for l2vlan interfaces, tunnel interfaces and ITM 40/38640/1
Faseela K [Tue, 10 May 2016 16:52:26 +0000 (22:22 +0530)]
Postman collection for l2vlan interfaces, tunnel interfaces and ITM
transport zone CRUD operations

Change-Id: I7c0d3cd60b2ff6dd108281f9a076e2692e781df0
Signed-off-by: Faseela K <faseela.k@ericsson.com>
8 years agoMerge "Syncing the bug fixes that went in vpnservice after the initial porting of...
Vivek Srivastava [Tue, 10 May 2016 05:15:26 +0000 (05:15 +0000)]
Merge "Syncing the bug fixes that went in vpnservice after the initial porting of modules to Genius"

8 years agoSyncing the bug fixes that went in vpnservice after the initial porting of 43/38543/1
Faseela K [Sun, 8 May 2016 02:15:55 +0000 (07:45 +0530)]
Syncing the bug fixes that went in vpnservice after the initial porting of
modules to Genius

Change-Id: I44449e65e7f0420f6d6eef71d8d1d3f3a251393e
Signed-off-by: Faseela K <faseela.k@ericsson.com>
8 years agoMerge "Add menu link for Java apidocs"
Vivek Srivastava [Fri, 29 Apr 2016 04:49:26 +0000 (04:49 +0000)]
Merge "Add menu link for Java apidocs"

8 years agofixed the directory structure for mdsalutil module 12/38012/1
Vivek Srivastava [Fri, 22 Apr 2016 11:58:48 +0000 (17:28 +0530)]
fixed the directory structure for mdsalutil module

Signed-off-by: Vivek Srivastava <vivek.v.srivastava@ericsson.com>
8 years agoMerge "Porting the modules from vpnservice to genius"
Vivek Srivastava [Wed, 20 Apr 2016 05:29:04 +0000 (05:29 +0000)]
Merge "Porting the modules from vpnservice to genius"

8 years agoPorting the modules from vpnservice to genius 17/37617/12
Faseela K [Thu, 14 Apr 2016 13:56:16 +0000 (19:26 +0530)]
Porting the modules from vpnservice to genius

Change-Id: I8b4e63b28761485ef1d9bfe2f7e5171d0cb6a352
Signed-off-by: Faseela K <faseela.k@ericsson.com>
8 years agoAdd menu link for Java apidocs 65/37465/1
Thanh Ha [Tue, 12 Apr 2016 01:22:57 +0000 (21:22 -0400)]
Add menu link for Java apidocs

The site.xml allows you to control your left menu bar for your Maven
Site.

Change-Id: Ibed4c3652de1d7aaa06dbec340c4a93fe79e02bd
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoAdd .gitignore 24/37324/1
Sam Hague [Fri, 8 Apr 2016 12:59:39 +0000 (08:59 -0400)]
Add .gitignore

Signed-off-by: Sam Hague <shague@redhat.com>