netvirt.git
9 years agoMerge "Return only the Identifier and not the whole Node object"
Flavio Fernandes [Thu, 19 Mar 2015 02:21:45 +0000 (02:21 +0000)]
Merge "Return only the Identifier and not the whole Node object"

9 years agoMerge "Added support for fail-mode."
Sam Hague [Wed, 18 Mar 2015 23:17:56 +0000 (23:17 +0000)]
Merge "Added support for fail-mode."

9 years agoReturn only the Identifier and not the whole Node object
Sam Hague [Wed, 18 Mar 2015 21:49:57 +0000 (17:49 -0400)]
Return only the Identifier and not the whole Node object

The northbound should only return a string like "OVS|192.168.120.1:6640" when returning Node information. In the migration work the mdsal Node.fromString() returns all the Node object information and not just teh identifier as the adsal Node did.

Change-Id: I8bf1b66b5e956d9a7db7f91f79478cc43d8aeba1
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoAdded support for fail-mode.
Ed Warnicke [Wed, 18 Mar 2015 19:50:51 +0000 (14:50 -0500)]
Added support for fail-mode.

Supports both write of fail-mode to config, and also
read of it from operational data-store.

Also updated postman collection

Change-Id: Ie730122f525e6747dfe5e765bd317b95775cd256
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoMinor: minor edits and remove deprecated call for InstanceIdentifierBuilder
Flavio Fernandes [Wed, 18 Mar 2015 13:56:08 +0000 (09:56 -0400)]
Minor: minor edits and remove deprecated call for InstanceIdentifierBuilder

- Make code more readable by removing unecessary class specifiers
- use .build() instead of InstanceIdentifierBuilder.toInstance()

Patch 4, code review:
- move instance creation of flow and node to common functions

Change-Id: Ib2a6c1ef26855a97ce05d27908ec055aaae753b6
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
9 years agoPostman collection for OVSDB Southbound
Ed Warnicke [Tue, 17 Mar 2015 22:09:08 +0000 (17:09 -0500)]
Postman collection for OVSDB Southbound

Patch 2: Change the file contents so that everything is not in a single line.

Change-Id: I5e786a537200705dfe6fd8b983c97a4c83bb6c8b
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoImplement NodeCacheListener to SouthboundHandler
Sam Hague [Wed, 18 Mar 2015 18:56:44 +0000 (14:56 -0400)]
Implement NodeCacheListener to SouthboundHandler

- implemented the NodeCacheLister for SouthboundHandler
- changed FlowCapableNodeDataChangeListener to use the NodeCacheManager
- modified Activator to include the interface
- moved the low frequency logs to info level, moved high-frequency to trace

Change-Id: Ie1c2a17a8e6020bbb475cf2cdbdd149862f96a2d
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoAdd class name to log for better debugging
Sam Hague [Wed, 18 Mar 2015 18:50:51 +0000 (14:50 -0400)]
Add class name to log for better debugging

Change-Id: Ib6731dec37e3fa05ea20363c0c9997e19997e00b
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoFix toString for different events to avoid NPE
Sam Hague [Wed, 18 Mar 2015 18:50:04 +0000 (14:50 -0400)]
Fix toString for different events to avoid NPE

Change-Id: I8641a78c8e6b3e2627025fb76beff1bd01c071e8
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoMerge "Patch to bring us into alignment with skip.karaf.featureTest from odlparent"
Sam Hague [Wed, 18 Mar 2015 19:24:18 +0000 (19:24 +0000)]
Merge "Patch to bring us into alignment with skip.karaf.featureTest from odlparent"

9 years agoAdd controller to bridge
Ed Warnicke [Sun, 15 Mar 2015 22:16:22 +0000 (17:16 -0500)]
Add controller to bridge

You can now write controller info to a bridge and
read it back in the operational store when it comes
back from ovsdb.

Change-Id: I6f7b7b53201da053605fe965908a00785651e46e
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoCleanup adsal remanants from integration tests
Sam Hague [Tue, 17 Mar 2015 23:53:45 +0000 (19:53 -0400)]
Cleanup adsal remanants from integration tests

Change-Id: I2247d46051c14d25050d044368c6297080353530
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoRemove adsal-all from plugin and nsf from openstack feature
Sam Hague [Tue, 17 Mar 2015 23:52:43 +0000 (19:52 -0400)]
Remove adsal-all from plugin and nsf from openstack feature

Change-Id: I6079caffeb4180cd21709f7a95bc2a0f26ff2106
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoRemove last adsal remnants from NeutronL3Adapter
Sam Hague [Tue, 17 Mar 2015 23:50:53 +0000 (19:50 -0400)]
Remove last adsal remnants from NeutronL3Adapter

Change-Id: Ieae2387e5f426de19ed01851f3216027ceba09b9
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoMerge "Remove final remnants of sal.core from net-virt-provider"
Flavio Fernandes [Wed, 18 Mar 2015 16:22:11 +0000 (16:22 +0000)]
Merge "Remove final remnants of sal.core from net-virt-provider"

9 years agoMerge "Remove sal.core from NodeUtils"
Flavio Fernandes [Wed, 18 Mar 2015 16:05:04 +0000 (16:05 +0000)]
Merge "Remove sal.core from NodeUtils"

9 years agoMerge "Remove final bits if adsal from plugin-shell"
Flavio Fernandes [Wed, 18 Mar 2015 16:03:34 +0000 (16:03 +0000)]
Merge "Remove final bits if adsal from plugin-shell"

9 years agoMerge "Update port in operational datastore."
Sam Hague [Wed, 18 Mar 2015 10:05:25 +0000 (10:05 +0000)]
Merge "Update port in operational datastore."

9 years agoRemove final bits if adsal from plugin-shell
Sam Hague [Tue, 17 Mar 2015 17:31:42 +0000 (13:31 -0400)]
Remove final bits if adsal from plugin-shell

Change-Id: I95bfb93cd0fb1ab578f78a4f9dfce9539feae4eb
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoUpdate port in operational datastore.
Sharad Mishra [Fri, 27 Feb 2015 14:20:17 +0000 (06:20 -0800)]
Update port in operational datastore.

This patch updates ports in operational datastore.
There is also a framework for port delete. Future patches will populate this class.

Change-Id: If1b33efcf609d6a0f253c68ed4b20578fc286da9
Signed-off-by: Sharad Mishra <sharad.d.mishra@intel.com>
9 years agoAdd ability to read and write protocols for bridge
Ed Warnicke [Mon, 16 Mar 2015 15:55:49 +0000 (10:55 -0500)]
Add ability to read and write protocols for bridge

Change-Id: Ia76a3513ae99b82c86ce4749321276a210c92958
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoMerge "Add support for datapath"
Sam Hague [Tue, 17 Mar 2015 20:30:59 +0000 (20:30 +0000)]
Merge "Add support for datapath"

9 years agoMerge "Initial write for bridge."
Sam Hague [Tue, 17 Mar 2015 20:30:36 +0000 (20:30 +0000)]
Merge "Initial write for bridge."

9 years agoAdd support for datapath
Ed Warnicke [Mon, 16 Mar 2015 14:14:01 +0000 (09:14 -0500)]
Add support for datapath

Change-Id: Ia8b5fcf4db6f22f86db81472ce4c4c4ba1475ec1
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoInitial write for bridge.
Ed Warnicke [Thu, 26 Feb 2015 15:06:30 +0000 (08:06 -0700)]
Initial write for bridge.

This code does an initial write of a bridge.
It also introduces a simplifying framework for
handling writes to ovsdb in the southbound plugin.

Change-Id: I7aa370b7ce9b976febd87478e1e6ff96c17ba8a4
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoRemove final remnants of sal.core from net-virt-provider
Sam Hague [Tue, 17 Mar 2015 17:17:54 +0000 (13:17 -0400)]
Remove final remnants of sal.core from net-virt-provider

Change-Id: Idb7bf77287ce8a5913041cae419a3a77aeb170fc
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoRemove sal.core from NodeUtils
Sam Hague [Tue, 17 Mar 2015 16:47:56 +0000 (12:47 -0400)]
Remove sal.core from NodeUtils

Change-Id: I87f5c3813818ec80bf59599b436a76969225cf0c
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoMerge "Fix to improve logging of exceptions in TransactionInvokerImpl"
Flavio Fernandes [Tue, 17 Mar 2015 14:31:42 +0000 (14:31 +0000)]
Merge "Fix to improve logging of exceptions in TransactionInvokerImpl"

9 years agoFix to improve logging of exceptions in TransactionInvokerImpl
Ed Warnicke [Sun, 15 Mar 2015 22:17:44 +0000 (17:17 -0500)]
Fix to improve logging of exceptions in TransactionInvokerImpl

Change-Id: I7ae6f5584cbd2b562d682398551214bde5f9a3a8
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoRemove ad-sal from lbaas - part 2
Flavio Fernandes [Sat, 14 Mar 2015 13:36:25 +0000 (09:36 -0400)]
Remove ad-sal from lbaas - part 2

With this change, lbaas handler will be getting notifyNode() callbacks.

Patch 2 (code review):
  - add missing copyright header
  - make node callback more resilient

Change-Id: I58ca64b9fa987f994cdf68bf076fef820092a8ce
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
9 years agoRemove ad-sal from lbaas - part 1
Flavio Fernandes [Sat, 14 Mar 2015 12:26:45 +0000 (08:26 -0400)]
Remove ad-sal from lbaas - part 1

Removing ad-sal inventory listener and switchmanager from lbaas.
With this change, lbaas handler will not be getting notifyNode() callbacks.
That will be addressed on part 2.

Change-Id: I56d37877577320030cb871691e244a725f142152
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
9 years agoBUG: Fix missing creation of initial openflow rules upon node creation
Flavio Fernandes [Sat, 14 Mar 2015 11:06:56 +0000 (07:06 -0400)]
BUG: Fix missing creation of initial openflow rules upon node creation

While using the registerDataChangeListener for createFlowCapableNodePath, we began to
see cases where onDataChanged provided no entries in getCreatedData() when it should.
To deal with that, the code will now pay attention to updates in getUpdatedData() and
treat it as create if this is the first time the listener hears about the nodeId.

Patch 2:
  - listen to operational instead of configuration mdsal tree;
  - check for create/update inside change loop
  - remove redundant [removed/added] words in log
Patch 3:
  - fix notifyNodeUpdated log
Patch 4:
  - change log level for notifyNodeUpdated
Patch 5:
  - undo patch 4. Lots of logs [1]

[1]: https://gist.github.com/67daada34dd91aff3190

Change-Id: Id1b445ec4892f9c8848b6ca5a6739948d87432c9
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
9 years agonet-vir-provider : Remove depdency on sal.utils package.
Anil Vishnoi [Mon, 16 Mar 2015 11:03:10 +0000 (16:33 +0530)]
net-vir-provider : Remove depdency on sal.utils package.

Patch 2 : Removed dependency over sal.actions - not used.

Change-Id: Ide1547143c1623c49eb43e0bc3f6b50a5a086e76
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
9 years agoMerge "Fix typo (Don't know why I wanted indentidentifiers ;)"
Flavio Fernandes [Fri, 13 Mar 2015 21:13:15 +0000 (21:13 +0000)]
Merge "Fix typo (Don't know why I wanted indentidentifiers ;)"

9 years agoMerge "Fixing null pointer error on node delete and executor shutdown."
Flavio Fernandes [Fri, 13 Mar 2015 21:09:48 +0000 (21:09 +0000)]
Merge "Fixing null pointer error on node delete and executor shutdown."

9 years agoFixing null pointer error on node delete and executor shutdown.
Wojciech Dec [Tue, 3 Mar 2015 16:02:59 +0000 (17:02 +0100)]
Fixing null pointer error on node delete and executor shutdown.

Signed-off-by: Wojciech Dec <wdec@cisco.com>
Change-Id: Iebad24357c874bc863ee4c17acb99e2ed29ad9c2

9 years agoMove NodeUtils.java to ovsdb.utils
Flavio Fernandes [Fri, 13 Mar 2015 14:51:39 +0000 (10:51 -0400)]
Move NodeUtils.java to ovsdb.utils

Patch 2: implement code review comments.

Change-Id: I8c730fbb252d7462b43a4ffb28c3e06cf54aaee1
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
9 years agoPatch to bring us into alignment with skip.karaf.featureTest from odlparent
Ed Warnicke [Fri, 13 Mar 2015 17:43:30 +0000 (10:43 -0700)]
Patch to bring us into alignment with skip.karaf.featureTest from odlparent

Sam Hague was kind enough to point out the use of skip.karaf, which is a
brilliant idea incorporated into the odlparent by this patch:

https://git.opendaylight.org/gerrit/#/c/16493/

This patch simply makes sure that -Dskip.karaf.featureTest does the right
thing in ovsdb.

Change-Id: I68f047decfb042c5191d4370400e81bf3a792e8c
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoProvide FlowCapableNodeDataChangeListener to openstack.netvirt via NodeCacheManager
Flavio Fernandes [Fri, 13 Mar 2015 10:56:50 +0000 (06:56 -0400)]
Provide FlowCapableNodeDataChangeListener to openstack.netvirt via NodeCacheManager

With this change, netvirt will have a thread safe cache of all flowCapable nodes.
This is needed for the lbaas handler, so it can efficiently find the nodes it needs
to configure, w/out using ad-sal switch manager.

Patch 2:
- add missing Copyright headers
- add code review comments

Note: NodeUtils has been duplicated and needs to be moved to .utils pkg
This will be taken care in gerrit: https://git.opendaylight.org/gerrit/#/c/16487/

Change-Id: Id3e98e8e4fb735c4a1cba8e325dd7a1c44a6d192
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
9 years agoFix typo (Don't know why I wanted indentidentifiers ;)
Ed Warnicke [Tue, 10 Mar 2015 18:54:03 +0000 (11:54 -0700)]
Fix typo (Don't know why I wanted indentidentifiers ;)

Change-Id: Iea4f517b2a25079930774111165778ef5cd2cc15
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoAdded convenience method for ops.mutate(TypedTable)
Ed Warnicke [Tue, 10 Mar 2015 14:15:37 +0000 (07:15 -0700)]
Added convenience method for ops.mutate(TypedTable)

Many other ops methods handled TypedTable, so decided
mutate should too :)

Change-Id: Ib83e086c6e1967e3fdffb79115f7a57acad5aef8
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoAdded convenience method to TyperUtils for creating typed row
Ed Warnicke [Tue, 10 Mar 2015 14:12:24 +0000 (07:12 -0700)]
Added convenience method to TyperUtils for creating typed row

The existing convenience method would only wrap an existing row,
this method simply wraps around a newly created row.

Change-Id: I6c5604f2494e87bbe4104b3f513c0e0379eabae5
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoMerge "Renaming ovsdb-managed-node-augmentation to ovsdb-bridge-augmentation."
Flavio Fernandes [Tue, 10 Mar 2015 20:30:15 +0000 (20:30 +0000)]
Merge "Renaming ovsdb-managed-node-augmentation to ovsdb-bridge-augmentation."

9 years agoRenaming ovsdb-managed-node-augmentation to ovsdb-bridge-augmentation.
Sharad Mishra [Tue, 10 Mar 2015 07:57:16 +0000 (00:57 -0700)]
Renaming ovsdb-managed-node-augmentation to ovsdb-bridge-augmentation.

ovsdb yang model was using ovsdb-managed-node for bridges. This was causing confusion and was renamed to ovsdb-bridge.

Change-Id: I73477cd62f4c361738fa5cb10cfbff7e1ebe1cd7
Signed-off-by: Sharad Mishra <sharad.d.mishra@intel.com>
9 years agoRemove sal IInventoryListener from Southboundhandler
Sam Hague [Tue, 10 Mar 2015 02:14:22 +0000 (22:14 -0400)]
Remove sal IInventoryListener from Southboundhandler

Change-Id: Ia9bf01f5ff13e6bfa164b3e9477cc62927cbe478
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoAdd option to skip karaf tests for southbound
Sam Hague [Mon, 9 Mar 2015 16:38:43 +0000 (12:38 -0400)]
Add option to skip karaf tests for southbound

The karaf test is enabled by default and can only be disabled by explicitly add -Dskip.karaf=true to the mvn build command.

Change-Id: I524d2494568dae61a5112191cb889e28dfb7a073
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoMerge changes I00b761de,I6b7440b3,Id4a96515
Flavio Fernandes [Mon, 9 Mar 2015 20:29:42 +0000 (20:29 +0000)]
Merge changes I00b761de,I6b7440b3,Id4a96515

* changes:
  Add utils.servicehelper to netvirt
  Add utils.servicehelper to northbound
  Add utils.servicehelper to integration tests

9 years agoUse service dependency injection rather than ServiceHelper.
Sam Hague [Mon, 9 Mar 2015 16:08:33 +0000 (12:08 -0400)]
Use service dependency injection rather than ServiceHelper.

This removes the need for sal.utils.

Change-Id: I0a0fb611eb1063a00844fc4beab78a16b2e0e16e
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoAdd utils.servicehelper to netvirt
Sam Hague [Mon, 9 Mar 2015 16:35:19 +0000 (12:35 -0400)]
Add utils.servicehelper to netvirt

Change-Id: I00b761de45f242ced5b1c56740471b8f7b40ab0e
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoAdd utils.servicehelper to northbound
Sam Hague [Mon, 9 Mar 2015 16:34:32 +0000 (12:34 -0400)]
Add utils.servicehelper to northbound

Change-Id: I6b7440b3e6d7ee165da0faa1d76a494874618816
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoAdd utils.servicehelper to integration tests
Sam Hague [Mon, 9 Mar 2015 16:33:23 +0000 (12:33 -0400)]
Add utils.servicehelper to integration tests

Change-Id: Id4a96515ee0918f4c713f1cbd906fbc21fbb5621
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoRevert "Revert "Make utils.servicehelper a bundle""
Sam Hague [Mon, 9 Mar 2015 18:39:20 +0000 (18:39 +0000)]
Revert "Revert "Make utils.servicehelper a bundle""

This reverts commit b1ac36f07fadb9ce0651714653b8d0817f882760.

Change-Id: I2a9dd7f2afcaa80afee31c92b0614f7a9b8e46d9
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoRevert "Make utils.servicehelper a bundle"
Sam Hague [Mon, 9 Mar 2015 17:56:55 +0000 (17:56 +0000)]
Revert "Make utils.servicehelper a bundle"

This reverts commit 933dcb0728022a5d20fc1eafea5ed8e83edf83f8.

Change-Id: Iae3d935d926dc206a5c85a20d34dc16ec295fa47
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoAdd ovsdb-features to karaf distribution
Sam Hague [Mon, 9 Mar 2015 17:33:35 +0000 (13:33 -0400)]
Add ovsdb-features to karaf distribution

The karaf distribution does not currently have any dependencies defined so it is building before some of the ovsdb modules are built. Adding the features dependency ensures that the other modules will build first.

Change-Id: Icc366d7c3decc5bf041babc2bf2f651ed3fa6a17
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoMake utils.servicehelper a bundle
Sam Hague [Mon, 9 Mar 2015 16:31:40 +0000 (12:31 -0400)]
Make utils.servicehelper a bundle

The integration tests had trouble with an inline jar so changed it to a bundle.

Change-Id: I85fdd49b95d8198f6e9e808d1e4608b1228a63ef
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoInitial patch to deprecate sal utils Servicehelper
Sam Hague [Fri, 6 Mar 2015 03:20:11 +0000 (22:20 -0500)]
Initial patch to deprecate sal utils Servicehelper

Change-Id: I952e22647bf64f0bd889e1151536751f935bc0eb
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoAdd root pom for utils modules.
Sam Hague [Thu, 5 Mar 2015 22:08:37 +0000 (17:08 -0500)]
Add root pom for utils modules.

Change-Id: Ie79324278f7588a7516c0aa82e0d0e00fe4ccf5c
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoMigrate net-virt from adsal Node to mdsal Node
Sam Hague [Thu, 5 Mar 2015 01:25:23 +0000 (20:25 -0500)]
Migrate net-virt from adsal Node to mdsal Node

Change-Id: I99e437d04e2dedf4f8cbe0b8059f7421177ecae6
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoRe-order feature dependency, so that neutron-service comes before nsf-service for...
Flavio Fernandes [Wed, 4 Mar 2015 20:54:31 +0000 (15:54 -0500)]
Re-order feature dependency, so that neutron-service comes before nsf-service for ovsdb-openstack

Change-Id: I3a12f3d718aca392abbd54c33525b4db61308832
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
9 years agoMigrate from adsal Node to mdsal Node
Sam Hague [Wed, 4 Mar 2015 00:41:13 +0000 (19:41 -0500)]
Migrate from adsal Node to mdsal Node

This is a large commit becuase the sal Node is used all over the code. There is no way to build without doing it all in once shot.

Patch Set 2,3: No changes, just testing openstack integration. Something was broken in controller code causing failures. A rebuild this morning pulled in numerous new artifacts and cleared up the issue.

Change-Id: I9e53f61ad82dc0c6c1c447d9a7d4f2bcf11dbca0
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoSwitch node-id's for ovsdb-managed-nodes
Ed Warnicke [Fri, 27 Feb 2015 00:30:02 +0000 (17:30 -0700)]
Switch node-id's for ovsdb-managed-nodes

Is now

ovsdb://${ip}:${port}/bridge/${bridgeName}

Change-Id: Ia74b1a51d551648545ceee3662ef4012a4faccba
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoMerge "Make BridgeName strongly typed"
Sam Hague [Tue, 3 Mar 2015 15:36:30 +0000 (15:36 +0000)]
Merge "Make BridgeName strongly typed"

9 years agoMake BridgeName strongly typed
Ed Warnicke [Thu, 26 Feb 2015 22:41:30 +0000 (15:41 -0700)]
Make BridgeName strongly typed

Change-Id: I77142202ac42ae1b5cf55cc50e071c14b97db9e4
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoRemove <repositories> and <pluginRepositories> sections
Thanh Ha [Sun, 1 Mar 2015 20:46:02 +0000 (15:46 -0500)]
Remove <repositories> and <pluginRepositories> sections

It is recommended that developers and servers configure this locally via
settings.xml.

https://lists.opendaylight.org/pipermail/discuss/2015-January/004482.html

Change-Id: I9e2b2e640bdc788ee355066c5bf40cc8cf813ac6
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
9 years agoPull Maven surefire plugin for offline builds
Thanh Ha [Mon, 2 Mar 2015 21:27:24 +0000 (16:27 -0500)]
Pull Maven surefire plugin for offline builds

Change-Id: If6ed6d4f2c37f75dab52f0c30849727cce206493
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
9 years agoMerge "Fix placement of config file"
Sam Hague [Mon, 2 Mar 2015 16:45:39 +0000 (16:45 +0000)]
Merge "Fix placement of config file"

9 years agoFix placement of config file
Ed Warnicke [Mon, 2 Mar 2015 15:39:42 +0000 (07:39 -0800)]
Fix placement of config file

Change-Id: I2c7c74898e6d3f3313728c64860bfc2ccf666507
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoMerge "Bug 2438: No serializer found for class.. BooleanBaseType"
Flavio Fernandes [Mon, 2 Mar 2015 12:31:09 +0000 (12:31 +0000)]
Merge "Bug 2438: No serializer found for class.. BooleanBaseType"

9 years agoBug 2438: No serializer found for class.. BooleanBaseType
Sam Hague [Mon, 2 Mar 2015 02:40:21 +0000 (21:40 -0500)]
Bug 2438: No serializer found for class.. BooleanBaseType

When using the OVSDB Northbound v3 APIs the below error is returned when GET'ting tables that contain boolean columns.

http://{{controllerHost}}:{{controllerPort}}/ovsdb/nb/v3/node/OVS|192.168.120.31:48161/database/Open_vSwitch/table/Bridge

No serializer found for class org.opendaylight.ovsdb.lib.schema.BaseType$BooleanBaseType and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: org.opendaylight.ovsdb.lib.schema.GenericTableSchema["columnSchemas"]->java.util.HashMap["stp_enable"]->org.opendaylight.ovsdb.lib.schema.ColumnSchema["type"]->org.opendaylight.ovsdb.lib.schema.AtomicColumnType["baseType"])

The boolean type does not have a public getter/setter since it doesn't need one but this error comes from that.

Configure the object mapper to safely ignore the error.

Change-Id: I1fc0cca6b48a698f711dc61b4a33763ff2fa521d
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoMerge "OVSDB V3 northbound failed to find node"
Sam Hague [Mon, 2 Mar 2015 02:15:52 +0000 (02:15 +0000)]
Merge "OVSDB V3 northbound failed to find node"

9 years agoMerge "getNode fails when id contains |"
Sam Hague [Mon, 2 Mar 2015 02:15:43 +0000 (02:15 +0000)]
Merge "getNode fails when id contains |"

9 years agoMerge "Ovsdb plugin compatibility layer"
Sam Hague [Mon, 2 Mar 2015 00:04:04 +0000 (00:04 +0000)]
Merge "Ovsdb plugin compatibility layer"

9 years agoOVSDB V3 northbound failed to find node
Sam Hague [Sun, 1 Mar 2015 22:56:43 +0000 (17:56 -0500)]
OVSDB V3 northbound failed to find node

The Node.fromString(id) no longer works with the latest adsal deprecation changes.

A new helper method getNode() was previously created as a workaround but the v3 code was not using it. This commit fixes that.

Also added unit test for the v3 northbound.

Change-Id: I3bdffe52b8ba63b6bd52da482b0a3b1a162b6db8
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agogetNode fails when id contains |
Sam Hague [Sun, 1 Mar 2015 22:53:04 +0000 (17:53 -0500)]
getNode fails when id contains |

The split delimiter was not used correctly. The | is the OR operater so it needed to be escaped.

Also added getNode unit test

Change-Id: I94623198e1ab10ea6b37ec05f09196e6a298ac0e
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoOvsdb plugin compatibility layer
Anil Vishnoi [Fri, 20 Feb 2015 20:57:48 +0000 (02:27 +0530)]
Ovsdb plugin compatibility layer

As of now this layer just proxy API calls to plugin and relay the notification back to all the listener.
All the modules who want to consume to existing plugin interfaces, should move to the compatibility layer,
because plugin interface will change due to it's migration to md-sal.

*.* Although this layer is just proxy, but classes are moved under new package name to avoid conflict
with plugin code. As of now net-virt code is changed to depend on compatibility layer.
*.* Add new feature ovsdb-compatibility-layer to karaf-feature
*.* All integration tests are passing

Patch 3: Rebased and addressed reviewers comment
Patch 4: Fix single feature test for compatibility layer
Patch 5: Fixed integration tests
Patch 6: Added api back that was deleted accidently. Comments and pom.xml cleanup.

Change-Id: Id2587914c63651f067dbef1f7ba0bcb22a7a3fd4
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
9 years agoMerge "Fix for failed to parse versions like 2.3.1-git3282e51"
Flavio Fernandes [Fri, 27 Feb 2015 17:42:48 +0000 (17:42 +0000)]
Merge "Fix for failed to parse versions like 2.3.1-git3282e51"

9 years agoMerge "OVSDB SB model for port and interface"
Sam Hague [Fri, 27 Feb 2015 16:56:35 +0000 (16:56 +0000)]
Merge "OVSDB SB model for port and interface"

9 years agoFix for failed to parse versions like 2.3.1-git3282e51
Sam Hague [Fri, 27 Feb 2015 16:50:52 +0000 (11:50 -0500)]
Fix for failed to parse versions like 2.3.1-git3282e51

Existing code was matching using the pattern major.minor.patch and would fail if anythign extra was in the string. This was because the code used an exact match across the whole string. Chaning to only find the major.minor.patch pattern fixes the issue by ingoring the extra characters.

Change-Id: I1cefb545bdc571a18727851a791a47a6c6158afa
Signed-off-by: Sam Hague <shague@redhat.com>
9 years agoAdd Data Change Listeners for Managed Nodes and Ports
Eric Multanen [Thu, 26 Feb 2015 15:49:15 +0000 (07:49 -0800)]
Add Data Change Listeners for Managed Nodes and Ports

Instantiate data change listeners in the OVSDB
SoutboundProvider for the OVSDB Managed Node and
Port Termination Point augmentations.

v2 - updated against merged OVSDB Termination Point augmentation

v3 - fixed log message in OvsdbTerminationPoint listener

v4 - remove unused imports

Change-Id: I699ed9522a5efef5d209c2361583bf0d248239bb
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
9 years agoOVSDB SB model for port and interface
Eric Multanen [Mon, 23 Feb 2015 13:19:08 +0000 (05:19 -0800)]
OVSDB SB model for port and interface

Initial augmentation of termination-point to add
OVSDB port and interface support.  No doubt additional
fields will need to be added.

Looking for feedback on the approach.

v2 - flatten out the model so both ovsdb port and interface
attributes will be present in the ovsdb termination-point
augmentation.  More attributes to be added.

v3 - use identity types for the interface type

Change-Id: Ifbff6060c8f6dae3caa49c43fbaf18e5060031b1
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
9 years agoFix critical Sonar Issue: OvsdbConnectionService.java
Flavio Fernandes [Fri, 27 Feb 2015 12:50:35 +0000 (07:50 -0500)]
Fix critical Sonar Issue: OvsdbConnectionService.java

Fix for the following issue:
- Throwable.printStackTrace(...) should never be called

Ref link on logging:
https://wiki.opendaylight.org/view/Logging_Best_Practices

Change-Id: I283f44deb8822b7f445a7cf48b89bec14d3c7df6
Ref: http://sonar.opendaylight.org/component/index#component=org.opendaylight.ovsdb%3Alibrary%3Asrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fovsdb%2Flib%2Fimpl%2FOvsdbConnectionService.java&currentIssue=3c103a64-c1a4-421a-9f4a-17979810815b
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
9 years agoMinor fix - typo in log.
Sharad Mishra [Fri, 27 Feb 2015 07:28:43 +0000 (23:28 -0800)]
Minor fix - typo in log.

Change-Id: I67a656d3a16377f76927019d2e9adc2215766368
Signed-off-by: Sharad Mishra <sharad.d.mishra@intel.com>
9 years agoProvide a getter for the dbSchema of a TransactionBuilder
Ed Warnicke [Thu, 26 Feb 2015 14:28:19 +0000 (07:28 -0700)]
Provide a getter for the dbSchema of a TransactionBuilder

This allows code to know whether or not this is a TransactionBuilder
that is of interest to a piece of code based on the schema it
supports.

Change-Id: I1e9985acf531e7cadd214c37d9f54ae6b06891ea
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoAdd getters for OvsdbConnectionInstance to ConnectionManager
Ed Warnicke [Thu, 26 Feb 2015 14:41:59 +0000 (07:41 -0700)]
Add getters for OvsdbConnectionInstance to ConnectionManager

Change-Id: Ifcf77fcf423a25b2fcee34b9f95786a3d3ce55bd
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoMerge "MD-SAL OVSDB SB - handle update to ovsdb node."
Sam Hague [Thu, 26 Feb 2015 19:49:57 +0000 (19:49 +0000)]
Merge "MD-SAL OVSDB SB - handle update to ovsdb node."

9 years agoMerge "Slight simplification in OvsdbConnectionInstance"
Flavio Fernandes [Thu, 26 Feb 2015 19:43:15 +0000 (19:43 +0000)]
Merge "Slight simplification in OvsdbConnectionInstance"

9 years agoMerge "Minor fix to change log message from OvsdbNodeDataChangeListener to OvsdbManag...
Flavio Fernandes [Thu, 26 Feb 2015 19:39:15 +0000 (19:39 +0000)]
Merge "Minor fix to change log message from OvsdbNodeDataChangeListener to OvsdbManagedNodeDataChangeListener"

9 years agoFix for incorrect generation of NodeId which was preventing cleanup of nodes
Ed Warnicke [Thu, 26 Feb 2015 17:23:14 +0000 (10:23 -0700)]
Fix for incorrect generation of NodeId which was preventing cleanup of nodes
correctly.

Change-Id: I4344f0a3629350f02958b953bbf7985291cd7a42
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoSlight simplification in OvsdbConnectionInstance
Ed Warnicke [Thu, 26 Feb 2015 14:21:40 +0000 (07:21 -0700)]
Slight simplification in OvsdbConnectionInstance

Change-Id: If5b2350ec2d2cb228d17add95133cd4cc69602eb
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoMinor fix to change log message from OvsdbNodeDataChangeListener to OvsdbManagedNodeD...
Sharad Mishra [Thu, 26 Feb 2015 10:44:21 +0000 (02:44 -0800)]
Minor fix to change log message from OvsdbNodeDataChangeListener to OvsdbManagedNodeDataChangeListener

Change-Id: I6dd2a493b9e709931e52f5c0b452178202c85a35
Signed-off-by: Sharad Mishra <sharad.d.mishra@intel.com>
9 years agoUse neutron from new repo
Ed Warnicke [Wed, 25 Feb 2015 21:11:37 +0000 (16:11 -0500)]
Use neutron from new repo

Change-Id: I03757e2cebacb3f819e5e8ea7ab0c545ea4053ae
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoFix TransactionBuilder to take OvsdbClient rather than OvsdbClientImpl
Ed Warnicke [Wed, 25 Feb 2015 18:41:47 +0000 (11:41 -0700)]
Fix TransactionBuilder to take OvsdbClient rather than OvsdbClientImpl

Change-Id: Ife31f77ca624e25e51bcf9f2e64e198eb136641b
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoMD-SAL OVSDB SB - handle update to ovsdb node.
Sharad Mishra [Wed, 11 Feb 2015 18:13:18 +0000 (10:13 -0800)]
MD-SAL OVSDB SB - handle update to ovsdb node.

Patch to handle ovsdb node update.

Change-Id: Ia8a279de1ec17e7149794f4ef6e0b5900e04dccc
Signed-off-by: Sharad Mishra <sharad.d.mishra@intel.com>
9 years agoMoved extract* methods to TyperUtils
Ed Warnicke [Tue, 24 Feb 2015 23:42:55 +0000 (16:42 -0700)]
Moved extract* methods to TyperUtils

This was discussed with shague on #opendaylight-ovsdb

Change-Id: I5b5eff8eae5644695fe7a6a2eb9e2030621bff35
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoChange signature of TransactionUtils to returns Maps keyed by UUID.
Ed Warnicke [Tue, 24 Feb 2015 23:01:54 +0000 (16:01 -0700)]
Change signature of TransactionUtils to returns Maps keyed by UUID.

Change-Id: I1e1f47914b91bcb524b76f405d5c7ca76b918659
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoMade TransactionUtils easier to use
Ed Warnicke [Tue, 24 Feb 2015 18:37:41 +0000 (11:37 -0700)]
Made TransactionUtils easier to use

Change-Id: I74da5442f81f40312a62f161a74f303559f16a52
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoIntroducing AbstractTransactionCommand to make it easier to do commands
Ed Warnicke [Tue, 24 Feb 2015 18:25:59 +0000 (11:25 -0700)]
Introducing AbstractTransactionCommand to make it easier to do commands

I found myself writing a lot of repetative code for TransactionCommands,
and so pulled it up into an AbstractTransactionCommand

Change-Id: Iddd6995146e9ddc4002b7e8c6791b1332198c361
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoAdded Removal of bridges from operational store
Ed Warnicke [Tue, 24 Feb 2015 17:17:21 +0000 (10:17 -0700)]
Added Removal of bridges from operational store

Change-Id: I48d830e619fe982724d11ca66283bfd77ad5bf15
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoSwitch to command pattern and using transaction chains
Ed Warnicke [Mon, 23 Feb 2015 21:55:49 +0000 (14:55 -0700)]
Switch to command pattern and using transaction chains

This patch does a few things:

1)  Switch to using command pattern with transaction chains
    to provider robust writing to the operational store
2)  Moved over the existing operational writing to using the command
    pattern
3)  Removed the bridges from the ovsdb node as they need to be
    separate topological nodes.

Change-Id: I9796d90a7cee483271134dc5abbc6097df4ce567
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoRevert "Removing ovsdb plugin dependency on sal.utils classes"
Sam Hague [Tue, 24 Feb 2015 04:06:43 +0000 (04:06 +0000)]
Revert "Removing ovsdb plugin dependency on sal.utils classes"

This reverts commit 9ab94103db38d59905e8706e9848ce992721e0eb.

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