genius.git
7 years agoSupport for binding multiple egress services on the same interface 12/41712/19
Faseela K [Tue, 26 Jul 2016 18:20:06 +0000 (23:50 +0530)]
Support for binding multiple egress services on the same interface

Description : Adding support for binding multiple egress services on the
same interface. Whenever an egress service is bound on an interface, the
following operations will happen:
1) an entry will be created in Table 220(Egress Dispatcher Table) to match
on the lport tag and service index, and take the packet to the respective
egress table pipeline
2)Based on the service priority, entries in table 220 will be reordered,
so that highest priority service will match first in the pipeline
3)Applications should do a resubmit from their pipeline, back to table
220,if the packet is not destined for their pipeline

Change-Id: I3c027e3dc504682428e040551679fd5db49e9824
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoMerge "Set VRF-ID metadata so it would not to override split-horizon bit"
Sam Hague [Tue, 2 Aug 2016 18:33:45 +0000 (18:33 +0000)]
Merge "Set VRF-ID metadata so it would not to override split-horizon bit"

7 years agoSet VRF-ID metadata so it would not to override split-horizon bit 18/42918/2
Tali [Mon, 1 Aug 2016 14:05:27 +0000 (17:05 +0300)]
Set VRF-ID metadata so it would not to override split-horizon bit

Change-Id: I00fe8f6dd8b8828bfcda0c8d478a5a6619138f28
Signed-off-by: Tali <tali.ben-meir@hpe.com>
7 years agoUsing Table Ids from NwConstants.java 40/42940/1
Suraj Ranjan [Tue, 2 Aug 2016 06:24:39 +0000 (11:54 +0530)]
Using Table Ids from NwConstants.java

This review includes changes in entire genius module, to use table ids
from NwConstants.java.

This thing is already done in netvirt module.
https://git.opendaylight.org/gerrit/#/c/42776/

Change-Id: I2d157f58f2cd19195297ae69ab49c21a5225fd79
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
7 years agoMerge "Updated NwConstants with ACL related constants"
Sam Hague [Mon, 1 Aug 2016 20:41:58 +0000 (20:41 +0000)]
Merge "Updated NwConstants with ACL related constants"

7 years agoMerge "Added phyAddress field in InterfaceInfo"
Sam Hague [Mon, 1 Aug 2016 20:40:08 +0000 (20:40 +0000)]
Merge "Added phyAddress field in InterfaceInfo"

7 years agoUpdated NwConstants with ACL related constants 15/42915/1
Somashekar Byrappa [Mon, 1 Aug 2016 14:05:34 +0000 (19:35 +0530)]
Updated NwConstants with ACL related constants

+ Added new constant INGRESS_ACL_SERVICE_INDEX for egress service.
+ Wanted to rename EGRESS_ACL_NEXT_TABLE_ID to EGRESS_ACL_FILTER_TABLE_ID,
currently deprecated these constants to avoid compilation issues in
netvirt.
+ EGRESS_ACL_NEXT_TABLE_ID and INGRESS_ACL_NEXT_TABLE_ID will be removed
once references are updated in netvirt.

Change-Id: I2663288d701ffcc8226f8347e628e48d3a850e03
Signed-off-by: Somashekar Byrappa <somashekar.byrappa@ericsson.com>
7 years agoMerge "TCP and UDP matches added with mask in the Nicira extension"
Sam Hague [Mon, 1 Aug 2016 13:47:11 +0000 (13:47 +0000)]
Merge "TCP and UDP matches added with mask in the Nicira extension"

7 years agoAdded phyAddress field in InterfaceInfo 94/42894/1
Kency Kurian [Mon, 1 Aug 2016 09:41:58 +0000 (15:11 +0530)]
Added phyAddress field in InterfaceInfo

- Included phyAddress field in InterfaceInfo
- Set this field before returning InterfaceInfo

Change-Id: Id1011ced05801948071279b5aa0e125f8ffdfd46
Signed-off-by: Kency Kurian <kency.kurian@ericsson.com>
7 years agoTCP and UDP matches added with mask in the Nicira extension 84/42884/3
Aswin Suryanarayanan [Mon, 1 Aug 2016 07:14:55 +0000 (12:44 +0530)]
TCP and UDP matches added with mask in the Nicira extension

Change-Id: I17ad700a1287e00136a7711c24d1f03f6b18457a
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
7 years agoSet split-horizon bit to ingress table for external ports 45/42845/1
Tali [Sun, 31 Jul 2016 10:46:22 +0000 (13:46 +0300)]
Set split-horizon bit to ingress table for external ports

Change-Id: I9895f0657e1da6c798eb4d4842ce1a8a68d45a56
Signed-off-by: Tali <tali.ben-meir@hpe.com>
7 years agoMerge "Fix and renable FlowBasedServicesConfigurationtTest tests"
Sam Hague [Sat, 30 Jul 2016 10:33:41 +0000 (10:33 +0000)]
Merge "Fix and renable FlowBasedServicesConfigurationtTest tests"

7 years agoMerge "Add support for physical network on flat/vlan provider networks"
Sam Hague [Sat, 30 Jul 2016 10:33:29 +0000 (10:33 +0000)]
Merge "Add support for physical network on flat/vlan provider networks"

7 years agoFix and renable FlowBasedServicesConfigurationtTest tests 98/42798/1
Sam Hague [Fri, 29 Jul 2016 17:19:11 +0000 (13:19 -0400)]
Fix and renable FlowBasedServicesConfigurationtTest tests

Change-Id: I0170f91745fab8970cddcd82952495a39d843a3e
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoNew Table ids in NwConstants.java 77/42777/1
Suraj Ranjan [Fri, 29 Jul 2016 11:46:22 +0000 (17:16 +0530)]
New Table ids in NwConstants.java

This review includes few new table ids in NwConstants.java file, so that
we can use these table ids globally across all module.

Change-Id: Iabf2389c22443560a3da21e17a498218723fe844
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
7 years agoMerge "Addition of new table ids in NwConstants.java"
Faseela K [Fri, 29 Jul 2016 11:14:38 +0000 (11:14 +0000)]
Merge "Addition of new table ids in NwConstants.java"

7 years agoAddition of new table ids in NwConstants.java 67/42767/2
Suraj Ranjan [Fri, 29 Jul 2016 08:55:05 +0000 (14:25 +0530)]
Addition of new table ids in NwConstants.java

To keep all the table ids at the common place, adding few new constants
from CloudServiceChainConstants.java to NwConstants.java file.

Change-Id: Ie3091bfd263b4b7491972e83e900a701a9557a88
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
7 years agoUse short for the ServiceIndex constants 74/42774/1
Sridhar Gaddam [Fri, 29 Jul 2016 09:55:48 +0000 (15:25 +0530)]
Use short for the ServiceIndex constants

The ServiceIndex in the yang file is a short, whereas the serviceIndex
constants in the NWConstants file are defined as int. This patch updates
the constants accordingly.

Change-Id: I8ac56b551d19a806940c8e5c006c6b06b1c62b93
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
7 years agoUpdate NWConstants with IPv6 table-id and cookie 64/42764/1
Sridhar Gaddam [Fri, 29 Jul 2016 07:14:01 +0000 (12:44 +0530)]
Update NWConstants with IPv6 table-id and cookie

Change-Id: I334a433bfa8e6d40fad97d8f48f58399caf4b70b
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
7 years agoMerge "Addition of new Table in NwConstants.java"
Faseela K [Fri, 29 Jul 2016 04:59:51 +0000 (04:59 +0000)]
Merge "Addition of new Table in NwConstants.java"

7 years agoFix and renable FlowBasedServicesConfigurationtTest tests 49/42749/1
Sam Hague [Thu, 28 Jul 2016 22:38:49 +0000 (18:38 -0400)]
Fix and renable FlowBasedServicesConfigurationtTest tests

Test was failing because the cache was returning an interfaceState
object from a different test.

Change-Id: I675d731aaa45c80cd0fb0857ec892dead63fb0b5
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoAdd ICMPv6 nd_target match 04/42704/2
Sridhar Gaddam [Thu, 28 Jul 2016 10:40:44 +0000 (16:10 +0530)]
Add ICMPv6 nd_target match

Change-Id: I274079ed234beb2823e12c7fcaf19dc7418b33ad
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
7 years agoAdd support for physical network on flat/vlan provider networks 43/41943/14
Tali [Sun, 17 Jul 2016 07:50:40 +0000 (10:50 +0300)]
Add support for physical network on flat/vlan provider networks

Change-Id: Ia7383eeb108ae295836f1ae9da091f4a88279beb
Signed-off-by: Tali <tali.ben-meir@hpe.com>
7 years agoAddition of new Table in NwConstants.java 07/42607/4
Suraj Ranjan [Wed, 27 Jul 2016 07:43:14 +0000 (13:13 +0530)]
Addition of new Table in NwConstants.java

This review includes addition of new Tables in NwConstants.java file so
that these constants can be used universally across all module.

Change-Id: Iecf3c7e3bca107f5d638c6ebf88ad5fbb2fb1f99
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
7 years agoFixes build breakage caused by change 41849 20/42720/2
Vishal Thapar [Thu, 28 Jul 2016 15:11:16 +0000 (20:41 +0530)]
Fixes build breakage caused by change 41849

Change-Id: I0072ffa3897d56682bc558bfb856cb11d4031c01
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoMerge "Make ActionInfo immutable"
David Suarez [Wed, 27 Jul 2016 20:05:27 +0000 (20:05 +0000)]
Merge "Make ActionInfo immutable"

7 years agoIncrease max service-binding's to 7 43/42643/1
Sridhar Gaddam [Wed, 27 Jul 2016 14:10:38 +0000 (19:40 +0530)]
Increase max service-binding's to 7

With new services coming up and using the ServiceBinding framework,
the existing limit of 3 needs to be appropriately updated.
This patch increases the max-service binding value to the maximum
supported value.

Change-Id: I590d810b0f86a1d6be1acc3b7bd2537f3ddb996d
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
7 years agoDocument method and format changes 89/42589/3
David Suarez [Tue, 26 Jul 2016 15:36:41 +0000 (17:36 +0200)]
Document method and format changes

Minor changes: Javadoc for a method and formatting changes. Remove an useless null assignment.

Change-Id: If6d3950e243284608af0537393b350557df50bd0
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
7 years agoMerge "Added Ipv6 source and destination match."
Sam Hague [Tue, 26 Jul 2016 19:51:20 +0000 (19:51 +0000)]
Merge "Added Ipv6 source and destination match."

7 years agoMerge "Modification in ResourceBatchingManager.java"
Sam Hague [Tue, 26 Jul 2016 16:33:14 +0000 (16:33 +0000)]
Merge "Modification in ResourceBatchingManager.java"

7 years agoRemove wildcard imports 84/41884/2
David Suarez [Fri, 15 Jul 2016 09:06:57 +0000 (11:06 +0200)]
Remove wildcard imports

Remove wildcard imports to comply with Open Daylight's coding
guidelines.

Change-Id: I124280cc006ffff63946dbf4963b76e22d30a659
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
7 years agoModification in ResourceBatchingManager.java 40/42540/1
Suraj Ranjan [Tue, 26 Jul 2016 06:56:18 +0000 (12:26 +0530)]
Modification in ResourceBatchingManager.java

This change is done to support a change in netvirt that deals with
VPN Engine concurrency fixes.

Change-Id: I6e95549e17a500726fa1ce0c9d4812bcb58056fe
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
7 years agoAdded Ipv6 source and destination match. 39/42539/1
Aswin Suryanarayanan [Tue, 26 Jul 2016 06:27:30 +0000 (11:57 +0530)]
Added Ipv6 source and destination match.

Change-Id: I7cd8d66e68a9ca32a3c9de5f90fa27b352dff8b3
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
7 years agoRemove static block from ResourceManagerUtils 59/42359/3
Michael Vorburger [Fri, 22 Jul 2016 23:44:45 +0000 (01:44 +0200)]
Remove static block from ResourceManagerUtils

These are usually not a good idea for anything but very trivial code -
just in case anything goes wrong within the static, it leads to hard to
find problems, because they'll occur during class loading instead of
when methods are called. See e.g.
https://git.opendaylight.org/gerrit/#/c/39715/ for an example.

On a separate note, it is also wrong to use e.getMessage() in a LOGGER.

Change-Id: Ic982aac97f0aa5c41da801ab0c35880cf5e7f2e2
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoMerge "Fix icmpv6 matchbuilder"
Sam Hague [Mon, 25 Jul 2016 13:18:39 +0000 (13:18 +0000)]
Merge "Fix icmpv6 matchbuilder"

7 years agoMerge "Checkstyle fix"
David Suarez [Sat, 23 Jul 2016 07:19:42 +0000 (07:19 +0000)]
Merge "Checkstyle fix"

7 years agoMerge "Checkstyle clean-up src/test/java "
Sam Hague [Sat, 23 Jul 2016 00:16:05 +0000 (00:16 +0000)]
Merge "Checkstyle clean-up src/test/java "

7 years agoCheckstyle fix 58/42358/1
Michael Vorburger [Fri, 22 Jul 2016 23:38:18 +0000 (01:38 +0200)]
Checkstyle fix

preparing for https://git.opendaylight.org/gerrit/#/c/41305/ with:

* Utility classes should have private constructor

Change-Id: Id38840d9d200a0fe98844aabcc95c8e75dd4274a
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoFix icmpv6 matchbuilder 28/42328/1
Sridhar Gaddam [Fri, 22 Jul 2016 16:57:48 +0000 (22:27 +0530)]
Fix icmpv6 matchbuilder

This patch addresses a typo in matchbuilder and allows us to
program an icmpv6 flow specifying icmpv6-type/code value.

Change-Id: I693b2fdbe58acadff4ca1fa5403901b13dedf23e
Signed-off-by: Sridhar Gaddam <sgaddam@redhat.com>
7 years agoMDSAL module sync-up 08/42308/1
Suraj Ranjan [Fri, 22 Jul 2016 11:54:39 +0000 (17:24 +0530)]
MDSAL module sync-up

Providing a simple batching infrastructure
for modules that use MDSAL DataStores

Change-Id: Ifd8df37ef74b26d98da07d8a5c33c3ae93279e5c
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
7 years agoMerge "Modification in JUnit test case file"
Sam Hague [Thu, 21 Jul 2016 18:28:14 +0000 (18:28 +0000)]
Merge "Modification in JUnit test case file"

7 years agoMerge "Load config system files in etc/opendaylight/karaf"
Sam Hague [Thu, 21 Jul 2016 18:26:38 +0000 (18:26 +0000)]
Merge "Load config system files in etc/opendaylight/karaf"

7 years agoModification in JUnit test case file 45/42245/1
Suraj Ranjan [Thu, 21 Jul 2016 15:30:08 +0000 (21:00 +0530)]
Modification in JUnit test case file

After few merges went in InterfaceManager module, JUnit test case for
vlanInterfaceConfigurationTest.java started failing. For Jenkins build to
pass commit https://git.opendaylight.org/gerrit/#/c/42216/ ignored those
test cases.

This review again considers those test cases and gives a fix to pass all
of them.

Change-Id: Id4d1e2d1dae99ff9d1ff5b3993117be12dc4ea38
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
7 years agoMerge "Increase max service-binding's"
Sam Hague [Thu, 21 Jul 2016 14:37:02 +0000 (14:37 +0000)]
Merge "Increase max service-binding's"

7 years agoMerge "ITM module sync-up"
Sam Hague [Thu, 21 Jul 2016 14:36:55 +0000 (14:36 +0000)]
Merge "ITM module sync-up"

7 years agoMerge "Multilple fixes in InterfaceManager module"
Sam Hague [Thu, 21 Jul 2016 14:36:21 +0000 (14:36 +0000)]
Merge "Multilple fixes in InterfaceManager module"

7 years agoMerge "Implementation files for resourcemanager bundle"
Sam Hague [Thu, 21 Jul 2016 14:36:08 +0000 (14:36 +0000)]
Merge "Implementation files for resourcemanager bundle"

7 years agoMerge "add MatchFieldType for tcp flags"
Sam Hague [Thu, 21 Jul 2016 14:33:39 +0000 (14:33 +0000)]
Merge "add MatchFieldType for tcp flags"

7 years agoMerge "Multiple match support for nicira extension"
Sam Hague [Thu, 21 Jul 2016 14:33:16 +0000 (14:33 +0000)]
Merge "Multiple match support for nicira extension"

7 years agoIncrease max service-binding's 35/42235/1
Sam Hague [Thu, 21 Jul 2016 13:26:11 +0000 (09:26 -0400)]
Increase max service-binding's

Change-Id: I7226117f066821860d3e5abcacb8be9bb299bb5d
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoCheckstyle clean-up src/test/java 95/42195/3
Michael Vorburger [Thu, 21 Jul 2016 02:27:07 +0000 (04:27 +0200)]
Checkstyle clean-up src/test/java

Required to be able to run (enforce) CS on src/test as well.

Change-Id: I0947ccdf24aee935c7899b47eb79215e868c9297
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoITM module sync-up 28/42228/2
Suraj Ranjan [Thu, 21 Jul 2016 10:31:23 +0000 (16:01 +0530)]
ITM module sync-up

Below review gives a fix for the following issue:

FIB and Routes are not re-written on TEP Changes

Change-Id: Ia628bac6e44bef4c3e44bd4cc136386143c126e9
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
7 years agoMultilple fixes in InterfaceManager module 16/42216/2
Suraj Ranjan [Thu, 21 Jul 2016 08:42:02 +0000 (14:12 +0530)]
Multilple fixes in InterfaceManager module

This review deals with following fixes:

1> VM Migration Flows are not installing.
2> Elan flows are not getting installed
3> Fix for live provisioning of neutron ports.
4> Ignored 3 test cases in VlanInterfaceConfigurationTest.java file.

Beacuse of one of the previous merges in InterfaceManager module, these
JUnit test cases started failing. Because of that all Jenkins build were
failing. Ignored for now and later will fix for the same.

Change-Id: Ibc8b3b7efb83a9b193ac3fd87b3061a02a84ab3d
Signed-off-by: Suraj Ranjan <suraj.ranjan@ericsson.com>
7 years agoMerge "Upstreaming MdSalUtil interal code changes to ODL"
Vivek Srivastava [Thu, 21 Jul 2016 08:07:51 +0000 (08:07 +0000)]
Merge "Upstreaming MdSalUtil interal code changes to ODL"

7 years agoSupport for same OF port Name across different DPN 71/41971/3
echegow [Mon, 18 Jul 2016 13:52:03 +0000 (19:22 +0530)]
Support for same OF port Name across different DPN

Description: Dpnid is prefixed to the Parent Inte-
-rfaces(<dpnid>:<interfacename>) in the Interface
State Operational DS, that fixes issue of,if two
compute nodes are managed by a single ODL and both
define "eth1" as the interface for external
network, their entries will overlap and the
interface-state subtree will contain only one
entry.

Change-Id: I2bf4f4462d9b440e86523f15f3770aecd4059799
Signed-off-by: echegow <chetan.arakere.gowdru@ericsson.com>
7 years agoImplementation files for resourcemanager bundle 35/42035/3
karanrajsingh [Thu, 14 Jul 2016 11:26:55 +0000 (16:56 +0530)]
Implementation files for resourcemanager bundle

This change contains all the implementation files for resourcemanager.

Change-Id: I4278cc9cd121a9d32c48b8f83e1a3e7ff5965ec8
Signed-off-by: karanrajsingh <karan.raj.s.singh@ericsson.com>
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 "Introducing Builders for FlowEntity & Co. beans"
David Suarez [Wed, 20 Jul 2016 05:57:11 +0000 (05:57 +0000)]
Merge "Introducing Builders for FlowEntity & Co. beans"

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 agoIntroducing Builders for FlowEntity & Co. beans 97/41797/6
Michael Vorburger [Wed, 13 Jul 2016 17:39:21 +0000 (19:39 +0200)]
Introducing Builders for FlowEntity & Co. beans

I need this for tests I'm writing, and it seems like a good idea anyway,
for consistency with the YANG generated beans.  (Doing all this recent
work on FlowEntity & Co. fixing equals() & hashCode() and toString()
etc. and now this, I'm starting to seriously wonder if all this stuff
shouldn't just simply also be YANG modeled... thoughts?)

Change-Id: Ie8b0e49f4c0e5dbdc6f7a59a58f09b32beda7ac1
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
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 agoadd MatchFieldType for tcp flags 32/41932/3
shlomi [Sun, 17 Jul 2016 16:20:41 +0000 (19:20 +0300)]
add MatchFieldType for tcp flags

Change-Id: I76ba008dca37423f036987513d434245dea5307c
Signed-off-by: shlomi <shlomi.alfasi@hpe.com>
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 agoMultiple match support for nicira extension 52/41652/3
Aswin Suryanarayanan [Mon, 11 Jul 2016 13:11:42 +0000 (18:41 +0530)]
Multiple match support for nicira extension

Modfied nicira match types to support multiple nicira extension matches
in the same flow.

Change-Id: Iae98334e977811c6dd0da09c0d8086e392e94966
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
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 agoMake ActionInfo immutable 49/41849/1
Michael Vorburger [Thu, 14 Jul 2016 17:08:44 +0000 (19:08 +0200)]
Make ActionInfo immutable

This subtly changes the behaviour of ActionInfo's actionKey. Please
carefully code review to make sure that no code anywhere assumes that
ActionInfo's actionKey gets automagically updated when FlowEntity's
getFlowBuilder() is used.  From a pure Java development point of view
this seems logical, because you created the ActionInfo with a certain
actionKey given to the ActionInfo (or the default 0), and would not
expect it to just change by itself!  (Or is it perhaps simply wrong to
have actionKey in ActionInfo all together, and this numeric index should
only be present in Action?)

Immutable objects are a Good Thing(TM).  They are clear and thread safe
by default.  All YANG gen. objects are immutable, and created by
*Builder, for a very good reason.  We should make all hand-crafted beans
the same (or, ideally, better, just code generate them all as well, use
YANG, or using Google AutoValue; if YANG for simple Beans is somehow not
good; see
https://github.com/google/auto/blob/master/value/userguide/index.md).

This solves a specific problem I ran into when writing tests, where I
found it very un-intutive that what looked like a "getter", the
getFlowBuilder(), would change objects.  The new
ActionInfoImmutableTest illustrates the specific problem I ran into, and
which originally motived me to do this - but immutable beans is a good
idea generally anyway.

This also 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
String actionValues or BI bigActionValues is set; never both). Removal
of setActionKey is only consistent then.

Similar to what was already done in
https://git.opendaylight.org/gerrit/#/c/41524/ for InstructionInfo and
(Nx)MatchInfo.

Change-Id: Id0619b1ab6013bee53f392603acb85f9c4f18f7c
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
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>