genius.git
7 years agoIgnoring new interfacemanager tests added as component style tests. 90/48490/1
Faseela K [Fri, 18 Nov 2016 16:40:36 +0000 (22:10 +0530)]
Ignoring new interfacemanager tests added as component style tests.

Description : Unit test failures introduced after this.
Will be revisited

Change-Id: I2da3c03163f9e858aa236710d9982e5657f5da8c
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoMerge "Cleanup: remove unnecessary boxing/unboxing"
David Suarez [Fri, 18 Nov 2016 12:12:05 +0000 (12:12 +0000)]
Merge "Cleanup: remove unnecessary boxing/unboxing"

7 years agoMerge "Bug Fix: 7203 Wrong handling of binding service to a tunnel"
Faseela K [Fri, 18 Nov 2016 11:36:04 +0000 (11:36 +0000)]
Merge "Bug Fix: 7203 Wrong handling of binding service to a tunnel"

7 years agoMerge "Yang changes for OF Tunnels"
Vivek Srivastava [Fri, 18 Nov 2016 10:16:55 +0000 (10:16 +0000)]
Merge "Yang changes for OF Tunnels"

7 years agoMerge "Add matches and actions for OF Tunnels"
Vivek Srivastava [Fri, 18 Nov 2016 07:35:06 +0000 (07:35 +0000)]
Merge "Add matches and actions for OF Tunnels"

7 years agoBug Fix: 7203 Wrong handling of binding service to a tunnel 65/48465/1
Jose Antonio Baena [Fri, 18 Nov 2016 06:42:42 +0000 (07:42 +0100)]
Bug Fix: 7203 Wrong handling of binding service to a tunnel

The current behaviour implemented for service binding to a tunnel interface is:
- In table 0, the first service bound
- In table 17, the rest of the services bound

When some service is already bound and a new service is going to be
bound and its priority is the highest, then this new service should be
bound in table 0, and the previous service that was bound in table 0
needs to be move to table 17. When the service is moved to table 17, the
priority is not being installed accordingly.

The error is that the entry created in the table 17 related to the service
that is being moved from table 0, has the priority of the new service
bound instead of the service moved from table 0.

This fix needs to go to stable/boron SR2’

Change-Id: Ic72164163371ebf47e61635f16a9d7d31a1875d2
Signed-off-by: Jose Antonio Baena <jose.antonio.baena@ericsson.com>
7 years agoMerge "Spec for OF Tunnels"
Vivek Srivastava [Fri, 18 Nov 2016 06:25:34 +0000 (06:25 +0000)]
Merge "Spec for OF Tunnels"

7 years agoMerge "Blueprint for idmanger, idPoolListener updated"
Faseela K [Thu, 17 Nov 2016 10:12:44 +0000 (10:12 +0000)]
Merge "Blueprint for idmanger, idPoolListener updated"

7 years agoInterfaceManagerTest as a new-style component/API/end2end test 42/47842/13
Michael Vorburger [Wed, 2 Nov 2016 14:59:28 +0000 (15:59 +0100)]
InterfaceManagerTest as a new-style component/API/end2end test

Change-Id: I058b4cdeab4be2b01b4172a5376ad1fe4597ea27
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoCleanup: remove unnecessary boxing/unboxing 91/48391/1
Stephen Kitt [Wed, 16 Nov 2016 10:29:06 +0000 (11:29 +0100)]
Cleanup: remove unnecessary boxing/unboxing

Change-Id: I37ae49738b799daf7278e3027b142c0e48a65943
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoBlueprint for idmanger, idPoolListener updated 56/48356/1
Edwin Anthony [Tue, 15 Nov 2016 10:43:51 +0000 (16:13 +0530)]
Blueprint for idmanger, idPoolListener updated

Change-Id: Id279505538a50ea3afc177c92c2ea8037cbe2702
Signed-off-by: Edwin Anthony <n.edwin.anthony@ericsson.com>
7 years agoCleanup: simplify boolean expressions 29/48329/1
Stephen Kitt [Mon, 14 Nov 2016 17:22:53 +0000 (18:22 +0100)]
Cleanup: simplify boolean expressions

* Avoid comparing with true or false.
* Instead of "if (boolean) { return true; } else { return false; }",
  just "return boolean;".
* Simplify some conditional expressions.

Change-Id: I5bfa96750b6163a06e2f4ce0ee02879d98800330
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoAdd matches and actions for OF Tunnels 14/45014/5
Vishal Thapar [Thu, 1 Sep 2016 15:49:57 +0000 (21:19 +0530)]
Add matches and actions for OF Tunnels

OVS supports OF tunnels where tunnel source and dest IPs can also be set
with OF flows. This patch is first step to add support for OF Tunnels.
This adds following matches and actions:
Matches: nx_tun_src_ip, nx_tun_dst_ip
Actions: set_tunnel_src_ip, set_tunnel_dest_ip

Change-Id: I4e29f45a72f4326704b9d074153b082f9c3ce141
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoSpec for OF Tunnels 56/48156/7
Vishal Thapar [Wed, 9 Nov 2016 09:54:57 +0000 (15:24 +0530)]
Spec for OF Tunnels

1. Added specification document for OF Tunnels
2. Linked spec to specs/index

Change-Id: I00b753eb396501bb244022890d8b0cccbbd6805b
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoYang changes for OF Tunnels 47/48247/1
Vishal Thapar [Fri, 11 Nov 2016 08:19:01 +0000 (13:49 +0530)]
Yang changes for OF Tunnels

This patch covers yang changes for OF Tunnels as captured in of-tunnels
spec document.

References
----------
https://git.opendaylight.org/gerrit/#/c/48156/

Change-Id: I619bd7daa77f384d172bd6e54cbcc2754200a99f
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoUpstreaming BFD monitoring fixes 88/47388/4
Dimple Jain [Sun, 23 Oct 2016 09:20:49 +0000 (14:50 +0530)]
Upstreaming BFD monitoring fixes

While performing monitoring toggle operation and interval updation,
ITM was not computing all possible tunnels where multiple subnets were
present.
ITM was considering only tunnels within the same subnet.
The fix is to compute all tunnels ie., tunnels between the subnets too.

Change-Id: Id80267f7da4faf3c09e8e405afca20a7dcc79b7b
Signed-off-by: Dimple Jain <dimple.jain@ericsson.com>
7 years agoCleanup: use plain String concatenation 76/48176/4
Stephen Kitt [Wed, 9 Nov 2016 16:25:18 +0000 (17:25 +0100)]
Cleanup: use plain String concatenation

This is the most efficient method of String construction nowadays for
straightfoward concatenation.

Change-Id: I1279ccb58c6cbdcb88ca3a66e768a7649a755651
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoCleanup: various performance issues 75/48175/4
Stephen Kitt [Wed, 9 Nov 2016 16:22:47 +0000 (17:22 +0100)]
Cleanup: various performance issues

* Use Collections.singletonList() instead of single-parameter
  Arrays.asList()
* Remove redundant String::toString() and String::format() calls

Change-Id: I41f69b3f2adf085b1670a7e25f41642b2e6114f2
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoCleanup: remove unnecessary type casts 74/48174/4
Stephen Kitt [Wed, 9 Nov 2016 16:15:28 +0000 (17:15 +0100)]
Cleanup: remove unnecessary type casts

Change-Id: Ic55b47b3f945f5f97974e169ed35b8ece6fbded5
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoCleanup: remove redundant type declarations 71/48171/4
Stephen Kitt [Wed, 9 Nov 2016 16:13:36 +0000 (17:13 +0100)]
Cleanup: remove redundant type declarations

Java 7 and 8 have improved type inference a lot, many type parameters
are no longer necessary.

Change-Id: I89c2d8ecb05d67eabb0b8004b7e69b5e94b85337
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoCleanup: remove redundant modifiers 70/48170/3
Stephen Kitt [Wed, 9 Nov 2016 16:07:57 +0000 (17:07 +0100)]
Cleanup: remove redundant modifiers

* Replace <? extends Object> with <?>
* Remove public from interface members (they're public by default).
* Remove static and final from interface attributes (they're static
  final by default).
* Remove unnecessary semi-colons.
* Remove private from enum constructors (they're private by default).
* Remove static from enum declarations (they're static by default).

Change-Id: I863d0cc1bba35562bf461b2f7a75abbe01a1ca33
Signed-off-by: Stephen Kitt <skitt@redhat.com>
7 years agoMerge "move interface utilities from ElanUtils and undeprecate Genius IIM"
Faseela K [Thu, 10 Nov 2016 17:08:38 +0000 (17:08 +0000)]
Merge "move interface utilities from ElanUtils and undeprecate Genius IIM"

7 years agoMerge "Add egress split horizon drop flows for external interfaces"
Faseela K [Thu, 10 Nov 2016 17:03:33 +0000 (17:03 +0000)]
Merge "Add egress split horizon drop flows for external interfaces"

7 years agoMerge "Refactor and checkstyle changes."
Faseela K [Thu, 10 Nov 2016 17:02:59 +0000 (17:02 +0000)]
Merge "Refactor and checkstyle changes."

7 years agoTestDataStoreJobCoordinator with waitForAllJobs() methods req. in tests 61/48061/4
Michael Vorburger [Mon, 7 Nov 2016 15:56:34 +0000 (16:56 +0100)]
TestDataStoreJobCoordinator with waitForAllJobs() methods req. in tests

Change-Id: Id0b4087b3417bbe8098eac0322164fd5752292ab
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoMerge "Checkstyle compliance for DataStoreJobCoordinator, incl. clean JavaDoc"
Faseela K [Thu, 10 Nov 2016 12:32:04 +0000 (12:32 +0000)]
Merge "Checkstyle compliance for DataStoreJobCoordinator, incl. clean JavaDoc"

7 years agoMerge "ClusteringUtils Collections.singletonList instead Lists.newArrayList()"
Faseela K [Thu, 10 Nov 2016 12:31:37 +0000 (12:31 +0000)]
Merge "ClusteringUtils Collections.singletonList instead Lists.newArrayList()"

7 years agoRefactor and checkstyle changes. 99/48199/2
David Suarez [Wed, 9 Nov 2016 23:30:18 +0000 (00:30 +0100)]
Refactor and checkstyle changes.

Change-Id: Icdbb507c06e677ff0968105f26f717261af0fa65
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
7 years agoAdd pipeline doc for Genius and dependent projects 66/48166/2
Vishal Thapar [Wed, 9 Nov 2016 15:04:13 +0000 (20:34 +0530)]
Add pipeline doc for Genius and dependent projects

1. Adds pipeline.rst to capture current OF Pipeline as used by genius and
projects using Genius for app-coexistence.
2. Links pipeline.rst to genius/index

Change-Id: Id0523ed3d4b8b27f86c1744d2123b1665818a59f
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoMerge "Link specs to genius/index"
Faseela K [Wed, 9 Nov 2016 18:03:08 +0000 (18:03 +0000)]
Merge "Link specs to genius/index"

7 years agomove interface utilities from ElanUtils and undeprecate Genius IIM 57/48157/2
Alon Kochba [Wed, 9 Nov 2016 10:35:56 +0000 (12:35 +0200)]
move interface utilities from ElanUtils and undeprecate Genius IIM

Moving utilities currently in ElanUtils into genius.
Removing deprecate flag from InterfaceManager, since performance
issues were discovered with the RPC-only approach.

Change-Id: I9433820c876875b1a3f3cf5eed5de3bc26f14986
Signed-off-by: Alon Kochba <alonko@hpe.com>
7 years agoMerge "Migrate arputilimpl moudule to Blueprint."
Faseela K [Wed, 9 Nov 2016 17:26:16 +0000 (17:26 +0000)]
Merge "Migrate arputilimpl moudule to Blueprint."

7 years agoMerge "Blueprint migration for idmanager"
Faseela K [Wed, 9 Nov 2016 17:25:56 +0000 (17:25 +0000)]
Merge "Blueprint migration for idmanager"

7 years agoLink specs to genius/index 69/48169/1
Vishal Thapar [Wed, 9 Nov 2016 15:57:17 +0000 (21:27 +0530)]
Link specs to genius/index

Change-Id: I6adae1833f6b37a15b88a69a0e0a19ca41ecb24c
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoMerge "Add template for design spec documents"
Faseela K [Wed, 9 Nov 2016 07:25:48 +0000 (07:25 +0000)]
Merge "Add template for design spec documents"

7 years agoBlueprint migration for idmanager 42/48042/3
N Edwin Anthony [Mon, 7 Nov 2016 09:33:51 +0000 (15:03 +0530)]
Blueprint migration for idmanager

Change-Id: I38243b5944467a434ef4155b31d9817180409c7b
Signed-off-by: N Edwin Anthony <n.edwin.anthony@ericsson.com>
7 years agoAdd template for design spec documents 38/48138/1
Vishal Thapar [Tue, 8 Nov 2016 19:14:08 +0000 (00:44 +0530)]
Add template for design spec documents

Refer: https://git.opendaylight.org/gerrit/#/c/47966/

Change-Id: If507ea67d5f896406fd2d631c932248e0ff0793b
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoAdd .tox to .gitignore 36/48136/1
Vishal Thapar [Tue, 8 Nov 2016 18:34:46 +0000 (00:04 +0530)]
Add .tox to .gitignore

Running tox in docs folder generates .tox as output directory.

Change-Id: I212732620540b2f862f9249324a61d1bf84bc490
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoMigrate arputilimpl moudule to Blueprint. 36/48036/4
David Suarez [Sun, 6 Nov 2016 15:53:03 +0000 (16:53 +0100)]
Migrate arputilimpl moudule to Blueprint.

Change-Id: I3b839233e00ebf6d8ce717ee03719fcef60a4a1a
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
7 years agoMerge "BUG 6726 : Loss of traffic during ODL Cluster reboot"
Faseela K [Tue, 8 Nov 2016 12:57:23 +0000 (12:57 +0000)]
Merge "BUG 6726 : Loss of traffic during ODL Cluster reboot"

7 years agoBUG 6726 : Loss of traffic during ODL Cluster reboot 88/47888/7
karthik.prasad [Thu, 3 Nov 2016 13:19:29 +0000 (18:49 +0530)]
BUG 6726 : Loss of traffic during ODL Cluster reboot

Since all ARP Traffics are punted to controller, when controller reboots
the packets are lost. The changes fixes traffic loss during cluster
reboot by adding ARP flows on DPN.
The changes includes addition of all NICIRA ARP Extension Actions to
ActionType.java
PS1: Removed Tabs
PS2: Incorporation of review comments
PS3: Incorporation of review comments
PS5: Removed Deprecated method and also removed whitespace.
PS6: Removal of whitespace
PS7: Incorporation of review comments
Change-Id: Ida59553187ba20b10bbc4e08d20e491d5dd72200
Signed-off-by: karthik.prasad <karthik.p@altencalsoftlabs.com>
7 years agoAdd missing odl-infrautils-inject to features.xml 14/48114/1
Michael Vorburger [Tue, 8 Nov 2016 11:09:42 +0000 (12:09 +0100)]
Add missing odl-infrautils-inject to features.xml

This is required as Genius is starting to use adopt
https://wiki.opendaylight.org/view/BestPractices/DI_Guidelines with
AbstractLifecycle e.g. in https://git.opendaylight.org/gerrit/#/c/47426/
and https://git.opendaylight.org/gerrit/#/c/48036/

Change-Id: I67f18b2c867c6db614cd576ca93fea783510d3ba
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoAdd Docs for Genius 63/48063/1
Vishal Thapar [Mon, 7 Nov 2016 16:23:04 +0000 (21:53 +0530)]
Add Docs for Genius

This patch just initializes sphinx for Genius

Refer: https://git.opendaylight.org/gerrit/#/c/39142/

Change-Id: Id851cd18a9f4d6c28f0995e7d7956b2c9e75f0d3
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
7 years agoMerge "Prepare for enabling checkstyle fail on error"
Faseela K [Mon, 7 Nov 2016 15:33:58 +0000 (15:33 +0000)]
Merge "Prepare for enabling checkstyle fail on error"

7 years agoCheckstyle compliance for DataStoreJobCoordinator, incl. clean JavaDoc 59/48059/1
Michael Vorburger [Mon, 7 Nov 2016 14:13:35 +0000 (15:13 +0100)]
Checkstyle compliance for DataStoreJobCoordinator, incl. clean JavaDoc

Change-Id: Ie60453350cfee5fa5f5abbfd2d7aa1820cc9f99f
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoClusteringUtils Collections.singletonList instead Lists.newArrayList() 51/48051/1
Michael Vorburger [Mon, 7 Nov 2016 13:14:41 +0000 (14:14 +0100)]
ClusteringUtils Collections.singletonList instead Lists.newArrayList()

This is clearer, shorter and AFAIK will save a little bit of memory,
because AFAIK an ArrayList will allocate at least DEFAULT_CAPACITY (10)
if not otherwise specified.

Also includes some otherwise unrelated minor ClusteringUtils CS cleanu.

Change-Id: I0ff8ab50702cc90696e45e5f3fcf2a8850690460
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoalarmmanager Checkstyle clean-up (incl. exception handling fixes) 11/48011/1
Michael Vorburger [Fri, 4 Nov 2016 19:00:20 +0000 (20:00 +0100)]
alarmmanager Checkstyle clean-up (incl. exception handling fixes)

Change-Id: I10a09756e4d89f4f9e573cfda82dee4456f32991
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoPrepare for enabling checkstyle fail on error 10/48010/1
Sam Hague [Fri, 4 Nov 2016 18:03:58 +0000 (14:03 -0400)]
Prepare for enabling checkstyle fail on error

This patch adds the checkstyle plugin config to
fail on checkstyle errors. Uncomment the checkstyle.violationSeverity
line when ready to enable.

If just adding one bundle at a time rather than all the bundles using
the commons/parents, then copy the same plugin section to the bundle
poms and uncomment the severity. As all bundles are completed then
remove the bundle sections and just use the one in the commons/pom.xml.

Change-Id: I68919f619d84676c5c22a949283f9788dbd4da8e
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoAdd egress split horizon drop flows for external interfaces 94/47794/9
Alon Kochba [Tue, 1 Nov 2016 11:36:07 +0000 (13:36 +0200)]
Add egress split horizon drop flows for external interfaces

Add drop flows to egress dispatcher to drop packets originating from
an external interface, marked by SH metadata bit, if the packet is
being sent to an external interface.

Change-Id: I028bd5a795b35613bb27b61577a5056e9a109188
Signed-off-by: Alon Kochba <alonko@hpe.com>
7 years agoMerge "Add info to log message with ARP response details on transmit"
Faseela K [Thu, 3 Nov 2016 09:04:38 +0000 (09:04 +0000)]
Merge "Add info to log message with ARP response details on transmit"

7 years agoAdd info to log message with ARP response details on transmit 04/47804/4
Alon Kochba [Tue, 1 Nov 2016 18:31:06 +0000 (20:31 +0200)]
Add info to log message with ARP response details on transmit

Change-Id: I1b09b27d7dea657da9085f8076ce4c2009f68e30
Signed-off-by: Alon Kochba <alonko@hpe.com>
7 years agoIntro. @Inject @Singleton etc. in some helper services, for testability 30/47830/1
Michael Vorburger [Wed, 2 Nov 2016 10:18:28 +0000 (11:18 +0100)]
Intro. @Inject @Singleton etc. in some helper services, for testability

This should not have any impact to real runtime code, and is hopefully
low risk. In particular, this alone does *NOT* yet actually exploit
these annotations for auto. generating blueprint XML (because I'm not
activating the blueprint-maven-plugin here, yet).

But adding these is useful already, because it allows these helper
services to be easily used in dependency injection via Guice in
Component Tests.

These annotation can however, later also be used by the
blueprint-maven-plugin - once the respective projects fully switch.

This change also includes a bunch of otherwise completely unrelated
automated formatting and code clean-up which happened automatically as I
was touching these files.

Change-Id: If1c3fe6d03f089bbeee0453742fe5cea8f4f098d
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoMerge "BUG 6626 Packet IN handler thread in deadlock after high ARP rate"
Faseela K [Wed, 2 Nov 2016 07:21:51 +0000 (07:21 +0000)]
Merge "BUG 6626 Packet IN handler thread in deadlock after high ARP rate"

7 years agoMerge "Bug 6836 - No access to external network"
Faseela K [Wed, 2 Nov 2016 07:13:43 +0000 (07:13 +0000)]
Merge "Bug 6836 - No access to external network"

7 years agoBug 6836 - No access to external network 03/47803/3
Tali [Tue, 1 Nov 2016 15:18:04 +0000 (17:18 +0200)]
Bug 6836 - No access to external network

1) Additional race fix
2) Move future creation to be per worker

Change-Id: I02fe765021489c71a9c3549d2d41767c65578a50
Signed-off-by: Tali <tali.ben-meir@hpe.com>
7 years agoMerge "target-ide/ on .gitignore"
Sam Hague [Tue, 1 Nov 2016 20:52:29 +0000 (20:52 +0000)]
Merge "target-ide/ on .gitignore"

7 years agoMerge "Migrate Resource Manager service to BluePrint"
Faseela K [Tue, 1 Nov 2016 09:17:08 +0000 (09:17 +0000)]
Merge "Migrate Resource Manager service to BluePrint"

7 years agotarget-ide/ on .gitignore 85/47785/1
Michael Vorburger [Mon, 31 Oct 2016 17:37:52 +0000 (18:37 +0100)]
target-ide/ on .gitignore

Change-Id: I5006d521cc46191a3a88ec162e970ced453d424a
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoBug 6836 - No access to external network 67/47667/4
Tali [Thu, 27 Oct 2016 11:05:18 +0000 (13:05 +0200)]
Bug 6836 - No access to external network

Upon first neutron network VLAN provider creation with a defined physnet
both VLAN trunk VLAN member are created for each compute node in the ietf-interface config DS.
As a result ietf-interface state for the VLAN member is attampted to be created simultaneously by

1) InterfaceConfigListener - triggered as a result of VLAN trunk creation in the config DS
2) VlanMemberConfigListener - triggered as a result of VLAN member creation in the config DS

Due to race condition in ietf-interface state for the VLAN memeber creation,
OptimisticLockFailedException can be sporadically get thrown and ietf-interface state
will not be added to the oper DS.

Suggested solution:
When renderers triggered by InterfaceConfigListener on the VLAN trunk call OvsInterfaceConfig*Helpers
to update VLAN member state, these jobs will be queued based on the trunk name to the DjC to prevent
concurrent write of VLAN member ietf-interface state with VlanMemberConfigListener

Change-Id: I0a89e73c6ff0acb9bdc369ab73e16df43e2f727b
Signed-off-by: Tali <tali.ben-meir@hpe.com>
7 years agoMigrate Resource Manager service to BluePrint 26/47426/6
David Suarez [Mon, 24 Oct 2016 08:26:37 +0000 (10:26 +0200)]
Migrate Resource Manager service to BluePrint

Migration of the resourcemanager-impl module to use BluePrint
framework.

Change-Id: I6b6ff7fa70fa4e1ba2831bcee74428658a4bd0d4
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
7 years agoMerge "Bug 7048 - Update to OF port does not change 220 flow"
Vivek Srivastava [Fri, 28 Oct 2016 09:09:34 +0000 (09:09 +0000)]
Merge "Bug 7048 - Update to OF port does not change 220 flow"

7 years agoMerge "Added postman collections for id-manager"
Faseela K [Fri, 28 Oct 2016 09:00:39 +0000 (09:00 +0000)]
Merge "Added postman collections for id-manager"

7 years agoBug 7048 - Update to OF port does not change 220 flow 74/47674/2
Faseela K [Thu, 27 Oct 2016 13:41:09 +0000 (19:11 +0530)]
Bug 7048 - Update to OF port does not change 220 flow

Description : Wrong instance identifier was being used for unbind service.
Also, DJC synchronization key for unbind service should be parent interface, rather
than interface-name, else this will cause race conditions while deleting 220 flow.

Change-Id: I632791ed131cab96e1967542c1fa7e18fa92c519
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoAdded postman collections for id-manager 14/47714/1
N Edwin Anthony [Fri, 28 Oct 2016 06:01:35 +0000 (11:31 +0530)]
Added postman collections for id-manager

Change-Id: I0ac1ca0c739aa436ffc2886308e6be220c327666
Signed-off-by: N Edwin Anthony <n.edwin.anthony@ericsson.com>
7 years agoBUG 6626 Packet IN handler thread in deadlock after high ARP rate 23/47623/3
shlomi [Wed, 26 Oct 2016 15:50:26 +0000 (17:50 +0200)]
BUG 6626 Packet IN handler thread in deadlock after high ARP rate

use offerNotification instead of putNotification. this will reject messages over the queue limit

Change-Id: Ia43ce75a8a6e7e3b1ed9e90704e03656e7cfdc11
Signed-off-by: shlomi <shlomi.alfasi@hpe.com>
7 years agoMerge "Enhancing service binding logic to support more services"
Vivek Srivastava [Thu, 27 Oct 2016 08:34:18 +0000 (08:34 +0000)]
Merge "Enhancing service binding logic to support more services"

7 years agoEnhancing service binding logic to support more services 23/47423/2
Faseela K [Mon, 24 Oct 2016 12:27:15 +0000 (17:57 +0530)]
Enhancing service binding logic to support more services

Description : Currently Genius supports only a maximum of 7 services per interface.
Enhancing this logic to support maximum 16 services per interface by making use of one
more bit from metadata field.

Change-Id: I711c03529b78924f2089300b2a52e9daa7aa5ed8
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoMerge "SFC table addition; Offset the other SFC tables."
Vivek Srivastava [Thu, 27 Oct 2016 05:17:12 +0000 (05:17 +0000)]
Merge "SFC table addition; Offset the other SFC tables."

7 years agoSFC table addition; Offset the other SFC tables. 24/47624/1
Miguel Duarte [Wed, 26 Oct 2016 16:06:14 +0000 (18:06 +0200)]
SFC table addition; Offset the other SFC tables.

Added one missing SFC table. All other SFC tables had to be offset by 1.
(now they are using indexes 82 to 87, inclusive)

Change-Id: I691ec349c47b96db182b88bf6df51110bd72504e
Signed-off-by: Miguel Duarte <miguel.duarte.de.mora.barroso@ericsson.com>
7 years agoAdding resourcemanager postman collection 95/47595/2
Edwin Anthony [Wed, 26 Oct 2016 09:48:28 +0000 (15:18 +0530)]
Adding resourcemanager postman collection

Change-Id: I6336049f498b1b6bcf32fdb55900ab63f0f37fa2
Signed-off-by: Edwin Anthony <n.edwin.anthony@ericsson.com>
7 years agoFix for fcaps application module config push error 81/47581/1
Viji J [Wed, 26 Oct 2016 07:11:48 +0000 (12:41 +0530)]
Fix for fcaps application module config push error

Change-Id: I9f13377d332502317563bf46c8477c2fda53f238
Signed-off-by: Viji J <viji.j@ericsson.com>
7 years agoMerge "Bug 6765: Overriding in_port in table0 with Zero value"
Vivek Srivastava [Sun, 23 Oct 2016 15:06:36 +0000 (15:06 +0000)]
Merge "Bug 6765: Overriding in_port in table0 with Zero value"

7 years agoMerge "Fixes for IT base"
Sam Hague [Sat, 22 Oct 2016 20:56:51 +0000 (20:56 +0000)]
Merge "Fixes for IT base"

7 years agoMerge "Add pom for commons"
Sam Hague [Sat, 22 Oct 2016 20:56:22 +0000 (20:56 +0000)]
Merge "Add pom for commons"

7 years agoMerge "Bug 6278: Switch to use odlparent's karaf-parent"
Sam Hague [Sat, 22 Oct 2016 20:55:41 +0000 (20:55 +0000)]
Merge "Bug 6278: Switch to use odlparent's karaf-parent"

7 years agoBug 6765: Overriding in_port in table0 with Zero value 89/47189/9
xcheara [Thu, 20 Oct 2016 07:13:46 +0000 (12:43 +0530)]
Bug 6765: Overriding in_port in table0 with Zero value

Description :(Review Re-raised) OVS split-horizon logic will drop pkts
by default if value of in_port and out_port is same. But, if we have two
vlan-trunk member VM for which trunk interface is same, the connectivity
between these two VM cannot be established as OVS drops such packets.
So, it is required to override the value of in_port so that split_horizon
check is bypassed. The in_port value will be overrriden using load(ex:
load:0->NXM_OF_IN_PORT[]).

Change-Id: I3d7c457bd030b9d386037c4b6002284a83802b09
Signed-off-by: xcheara <chetan.arakere@altencalsoftlabs.com>
7 years agoMerge "IdManager Performance Improvements"
Sam Hague [Sat, 22 Oct 2016 15:33:03 +0000 (15:33 +0000)]
Merge "IdManager Performance Improvements"

7 years agoFixes for IT base 50/47350/1
Sam Hague [Thu, 20 Oct 2016 17:49:05 +0000 (13:49 -0400)]
Fixes for IT base

Change-Id: Idce92e17acabc948e599e992a0e669ad41198341
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoAdd pom for commons 18/47218/1
Sam Hague [Thu, 20 Oct 2016 17:22:15 +0000 (13:22 -0400)]
Add pom for commons

Change-Id: I3faa6f4c36efe209b30676d96c3d56af1f615f29
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoEnhancements to improve DJC transaction retry mechanisms 01/47201/2
unknown [Thu, 20 Oct 2016 13:01:29 +0000 (18:31 +0530)]
Enhancements to improve DJC transaction retry mechanisms

Description : Adding linear time delay for each retries in case of job
execution failure in datastorejobcordinator

Change-Id: Icd2bd50b3dd80236f32c5be0fd371ce508dbbbf3
Signed-off-by: Faseela K <faseela.k@ericsson.com>
7 years agoIdManager Performance Improvements 96/46296/4
Kency Kurian [Thu, 29 Sep 2016 12:30:06 +0000 (18:00 +0530)]
IdManager Performance Improvements

In order to avoid the wait time to write to the DS during allocation of id
each local id pool(pool per cluster) can be stored in memory using
concurrent hash map. This can be later synced with the DS using
DatastoreJobCoordinator. In order to achieve this the following has been
done:

- Created 5 new jobs to update the local pool info DS.
  * LocalPoolCreateJob - Writes the entire local pool content from the
    cache to the DS.
  * IdHolderSyncJob - Updates either of the idHolder(Available/Released)
  * CleanUpJob - Used to return back excessive ids if any to the parent
    pool. This will be scheduled after IDLE_TIME whenever an id is
    released since that is the only time there are chances of excessive
    ids to be present in the local pool.
  * UpdateIdEntryJob - To add/delete the idEntry in the parentPool.
  * LocalPoolDeleteJob - Deletes the local pool from DS.
- New classes to hold local id pool objects.
  * IdHolder - An interface which provides methods to allocateId, addId
    etc. which is implemented by AvailableIdHolder and ReleaseIdHolder.
  * IdLocalPool - Holds the local pool name and IdHolders for each pool.
- JUnits test cases have also been updated.
- Added a CLI for printing the local cache values.

Change-Id: Ic39cae3b4c01ce44d1624187d2bf3099e707611e
Signed-off-by: Kency Kurian <kency.kurian@ericsson.com>
7 years agoBug 6278: Switch to use odlparent's karaf-parent 47/47147/1
Ryan Goulding [Wed, 19 Oct 2016 17:26:14 +0000 (13:26 -0400)]
Bug 6278: Switch to use odlparent's karaf-parent

Change-Id: Iad5fc802e638963d547e535eace90f07ce0f8519
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
7 years agoMerge "Upstreaming ITM cache impl and monitoring bug fix"
Faseela K [Wed, 19 Oct 2016 08:34:19 +0000 (08:34 +0000)]
Merge "Upstreaming ITM cache impl and monitoring bug fix"

7 years agoAdd alivenessmonitor rpc 97/47097/1
Sam Hague [Tue, 18 Oct 2016 20:53:21 +0000 (16:53 -0400)]
Add alivenessmonitor rpc

Change-Id: Icc8414bf23dc28d797ab7038629d056754cf0989
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoUpstreaming ITM cache impl and monitoring bug fix 49/46649/4
Hema Gopalkrishnan [Fri, 7 Oct 2016 05:57:46 +0000 (11:27 +0530)]
Upstreaming ITM cache impl and monitoring bug fix

Removed the Add and Remove External End Point CLI from this review
Fixed caches related failures in JUnit Tests
Retaining the oper-state along with tunnel-state in tunnels_state

Change-Id: Idb783c185ce349309c8e089013302f3dc76b2d97
Signed-off-by: Hema Gopalkrishnan <hema.gopalkrishnan@ericsson.com>
7 years agoMerge "Adds abstract base for Jobs that must be validated"
David Suarez [Sat, 15 Oct 2016 16:26:47 +0000 (16:26 +0000)]
Merge "Adds abstract base for Jobs that must be validated"

7 years agoBug 6791 Introduction of Async & Clustere listner 78/46878/1
Akash [Thu, 13 Oct 2016 11:07:29 +0000 (16:37 +0530)]
Bug 6791 Introduction of Async & Clustere listner

Two new listners are introducled which will be responsible for listning to
HA changes. Clustered Listner and normal Listner.
If its HA childen node or normal node then the particular
add/remove/update node will be executed accordingly.

Change-Id: Ie28137644e4fd91790fb5af697c16dcb5aec216a
Signed-off-by: Akash <a.k.sahu@ericsson.com>
7 years agoMerge "blueprint for alivenessmonitor"
Faseela K [Thu, 13 Oct 2016 05:25:21 +0000 (05:25 +0000)]
Merge "blueprint for alivenessmonitor"

7 years agoblueprint for alivenessmonitor 89/46689/3
Sam Hague [Fri, 7 Oct 2016 17:14:02 +0000 (13:14 -0400)]
blueprint for alivenessmonitor

Change-Id: I7a3c25ace7b8b26bbea0dc84983336c0531d8403
Signed-off-by: Sam Hague <shague@redhat.com>
7 years agoODL Bug: 6095, 24/46824/1
Chintan Apte [Wed, 12 Oct 2016 10:36:11 +0000 (16:06 +0530)]
ODL Bug: 6095,
bundle:diag failing for ITM bundle.
UT:-
RemoveExternalEndpoint is pointing to a vpnservice package which is
causing the issue,
Started the Karaf and checked the bundle status and diag. coming up jjst
fine.

Change-Id: I76613223e5819154e6f505e42ba435500a8f5a28
Signed-off-by: Chintan Apte <chintan.apte@ericsson.com>
7 years agoCheckstyle and formatting. 57/46657/1
David Suarez [Fri, 7 Oct 2016 09:35:52 +0000 (11:35 +0200)]
Checkstyle and formatting.

Change-Id: I27c12fa9bae2333431acee6c4f7acbcc03550f2c
Signed-off-by: David Suarez <david.suarez.fuentes@ericsson.com>
7 years agoSFC table addition + relocation 05/46605/2
Diego Granados [Wed, 5 Oct 2016 14:34:33 +0000 (16:34 +0200)]
SFC table addition + relocation

Added one missing SFC table. All SFC tables had to be rellocated
(now they are using indexes 82 to 86, both included) in order
to fit.

Change-Id: I0994994c89f751c533d16c56abe1280af7300098
Signed-off-by: Diego Granados <diego.jesus.granados.lopez@ericsson.com>
7 years agoDefault transport zone creation during the bootup 53/45053/15
Sathish Kumar Tippeshappa [Fri, 2 Sep 2016 05:38:39 +0000 (11:08 +0530)]
Default transport zone creation during the bootup

CSC to create a default transport zone at bootup
-Any switch that connects via OVSDB with no transport zone
configured will get added into the default transport zone
-This transport zone will have default monitoring and tunnel type
settings as per default values kept in the YANG file

Testcases:-
 1.Switch is connected with TZNAME="" and that node info is added to
 defaultTransport zone
 2.Once ODL controller is booted default transportzone is created

Change-Id: I3e510238e097e3a2eb3ab36d871477c46f01509a
Signed-off-by: Sathish Kumar Tippeshappa <sathishkumar.bt@altencalsoftlabs.com>
7 years agoMerge "BUG 6726 : Loss of traffic during ODL Cluster reboot"
Faseela K [Thu, 6 Oct 2016 09:26:11 +0000 (09:26 +0000)]
Merge "BUG 6726 : Loss of traffic during ODL Cluster reboot"

7 years agoMerge "Make local variables creation and assignment in a single statement. Some other...
Faseela K [Thu, 6 Oct 2016 04:50:28 +0000 (04:50 +0000)]
Merge "Make local variables creation and assignment in a single statement. Some other minor formatting (removing commented code, etc.)"

7 years agoBUG 6726 : Loss of traffic during ODL Cluster reboot 91/46191/14
karthik.prasad [Mon, 26 Sep 2016 14:09:51 +0000 (19:39 +0530)]
BUG 6726 : Loss of traffic during ODL Cluster reboot

Since all ARP Traffics are punted to controller, when controller reboots
the packets are lost. The changes fixes traffic loss during cluster
reboot by adding ARP flows on DPN.

PS10: Added actionKey as an optional parameter for
getEgressActionForInterface
PS:11: Removed white spaces
PS12: Added description for RPC Yang field
Change-Id: Id75c6bc4f68e88b56a7b5b5722866161a8590dec
Signed-off-by: karthik.prasad <karthik.p@altencalsoftlabs.com>
7 years agoMerge "Arp cache feature changes"
Faseela K [Thu, 6 Oct 2016 04:48:33 +0000 (04:48 +0000)]
Merge "Arp cache feature changes"

7 years agoMerge "Refactoring: MoreObjects2 is now in yangtools.utils"
David Suarez [Wed, 5 Oct 2016 20:37:43 +0000 (20:37 +0000)]
Merge "Refactoring: MoreObjects2 is now in yangtools.utils"

7 years agoAdds abstract base for Jobs that must be validated 52/46552/3
Miguel Perez [Tue, 4 Oct 2016 16:23:50 +0000 (18:23 +0200)]
Adds abstract base for Jobs that must be validated

 + Includes some state-checking stateful methods

 + Inheriting from Observable so that classes that enqueued the
   job can be informed about job changes.

Change-Id: I249b50b6b719e13a5e3e70988c05cb11d0293465
Signed-off-by: Miguel Perez <francisco.miguel.perez@ericsson.com>
7 years agoRefactoring: MoreObjects2 is now in yangtools.utils 12/42512/2
Michael Vorburger [Mon, 25 Jul 2016 23:22:03 +0000 (01:22 +0200)]
Refactoring: MoreObjects2 is now in yangtools.utils

Change-Id: I2748b021c9c77d856b692445134beb70435f38d4
Signed-off-by: Michael Vorburger <vorburger@redhat.com>