ovsdb.git
9 years agoMerge "Update OpenVSwitch schema to include new datapath and port types."
Sam Hague [Thu, 26 Mar 2015 21:49:04 +0000 (21:49 +0000)]
Merge "Update OpenVSwitch schema to include new datapath and port types."

9 years agoMerge "Add JUnit testing for EventDispatcherImpl class."
Sam Hague [Thu, 26 Mar 2015 20:59:49 +0000 (20:59 +0000)]
Merge "Add JUnit testing for EventDispatcherImpl class."

9 years agoAdd JUnit testing for EventDispatcherImpl class. 99/17199/1
Alexis de Talhouët [Thu, 26 Mar 2015 19:51:11 +0000 (15:51 -0400)]
Add JUnit testing for EventDispatcherImpl class.

Change-Id: I4b382bb681af4e6d805094666657d81688166b9d
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
9 years agoInterface ofport and ofport_request support 55/17155/2
Ryan Goulding [Wed, 25 Mar 2015 18:48:32 +0000 (14:48 -0400)]
Interface ofport and ofport_request support

Added support to yang model for ofport and ofport_request.  These fields are
settable at the time of endpoint creation.  Changed the Interface schema ofport
field to utilize the type Integer; ofport is defined as an integer in the
Open_vSwitch specification.  Changed references to Interface ofport column to
use Integer data type.  Enforced a Yang model range for ofport_request to
ensure the value is in the range [1,65279] as defined by the Open_vSwitch
specification. Future work will persist these settings to the data store.

Change-Id: Ic8f1bab8d8fefe6b102cfceb50ba74f8cfa0b9b7
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
9 years agoMerge "Add JUnit testing for ProviderNetworkManagerImpl."
Sam Hague [Thu, 26 Mar 2015 17:44:59 +0000 (17:44 +0000)]
Merge "Add JUnit testing for ProviderNetworkManagerImpl."

9 years agoMerge "Bug2901: Fix Inventory ofport_request column in schema"
Sam Hague [Thu, 26 Mar 2015 17:43:25 +0000 (17:43 +0000)]
Merge "Bug2901: Fix Inventory ofport_request column in schema"

9 years agoAdd JUnit testing for ProviderNetworkManagerImpl. 77/17177/1
Alexis de Talhouët [Thu, 26 Mar 2015 16:49:07 +0000 (12:49 -0400)]
Add JUnit testing for ProviderNetworkManagerImpl.

Change-Id: Ie195e64d2e6f80fea11dee7ea6bfc1d3635567da
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
9 years agoBug2901: Fix Inventory ofport_request column in schema 53/17153/2
Ryan Goulding [Thu, 26 Mar 2015 11:51:03 +0000 (07:51 -0400)]
Bug2901: Fix Inventory ofport_request column in schema

Fixes ofport_request column setter.  Open_vSwitch defines ofport_request as an
integer, not a String.  The setOpenFlowPortRequest() method was modified to
take Set<Integer> instead of String.

Change-Id: I95e4a015aa53015fee2a9802e4f034951bed2b47
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
9 years agoUpdate OpenVSwitch schema to include new datapath and port types. 01/17201/2
Sharad Mishra [Thu, 26 Mar 2015 13:24:50 +0000 (06:24 -0700)]
Update OpenVSwitch schema to include new datapath and port types.

This update includes OVS schema changes made in http://openvswitch.org/pipermail/dev/2015-March/052794.html
These changes were made to OVS to include DPDK datapath and port types.

Change-Id: Ic45c60b91666f19d993df0bcd3049ca727d43d89
Signed-off-by: Sharad Mishra <sharad.d.mishra@intel.com>
9 years agoMerge "BridgeRemovedCommand"
Sam Hague [Thu, 26 Mar 2015 13:23:40 +0000 (13:23 +0000)]
Merge "BridgeRemovedCommand"

9 years agoAdd copyright to SecurityServicesImplTest and VlanConfigurationCacheImplTest 51/17151/2
Alexis de Talhouët [Thu, 26 Mar 2015 12:18:33 +0000 (08:18 -0400)]
Add copyright to SecurityServicesImplTest and VlanConfigurationCacheImplTest

Change-Id: Ifd7ab76ce7e72eecb0707cb65c63737c43450e1d
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
9 years agoMerge "Add JUnit testing for SecurityServicesImpl class."
Sam Hague [Thu, 26 Mar 2015 03:49:35 +0000 (03:49 +0000)]
Merge "Add JUnit testing for SecurityServicesImpl class."

9 years agoBridgeRemovedCommand 14/17114/3
Ed Warnicke [Wed, 25 Mar 2015 15:11:34 +0000 (11:11 -0400)]
BridgeRemovedCommand

We can now delete bridges

Change-Id: I2c89b65c5410172cdb4f5e103bfa0da5b6ab8915
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoAdd JUnit testing for SecurityServicesImpl class. 26/17126/2
Alexis de Talhouët [Wed, 25 Mar 2015 21:19:55 +0000 (17:19 -0400)]
Add JUnit testing for SecurityServicesImpl class.

Change-Id: I9fa3af98acc89d4ea10764f573c0bcc2050f0e09
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
9 years agoMerge "Allow port/interface creation via MDSAL without supplying options"
Sam Hague [Wed, 25 Mar 2015 21:12:43 +0000 (21:12 +0000)]
Merge "Allow   port/interface creation via MDSAL without supplying options"

9 years agoMerge "Add JUnit testing for VlanConfigurationCacheImpl class."
Sam Hague [Wed, 25 Mar 2015 21:10:16 +0000 (21:10 +0000)]
Merge "Add JUnit testing for VlanConfigurationCacheImpl class."

9 years agoMerge "Add JUnit testing of TenantNetworkManagerImpl class"
Sam Hague [Wed, 25 Mar 2015 21:06:59 +0000 (21:06 +0000)]
Merge "Add JUnit testing of TenantNetworkManagerImpl class"

9 years agoAdded version leaf to ovsdb-node-attributes of type yang::uuid 02/17002/8
Gabriel Robitaille-Montpetit [Mon, 23 Mar 2015 15:22:47 +0000 (11:22 -0400)]
Added version leaf to ovsdb-node-attributes of type yang::uuid

Signed-off-by: Gabriel Robitaille-Montpetit <grmontpetit@inocybe.com>
Change-Id: I51b913cd6be634f240e158334715e150da4b4bf0

9 years agoAdd JUnit testing for VlanConfigurationCacheImpl class. 15/17115/5
Alexis de Talhouët [Wed, 25 Mar 2015 15:53:54 +0000 (11:53 -0400)]
Add JUnit testing for VlanConfigurationCacheImpl class.

Change-Id: Ia29f89d8e2bc68da6d6dbcd4e7c4587918e3776a
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
9 years agoAdd JUnit testing of TenantNetworkManagerImpl class 76/17076/8
Alexis de Talhouët [Tue, 24 Mar 2015 20:06:19 +0000 (16:06 -0400)]
Add JUnit testing of TenantNetworkManagerImpl class

Change-Id: I305ddb0dbdea8b214ed7dcd041ac9f2d585bb9db
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
9 years agoAdd the bridge datapath_type to the operational MDSAL 38/17138/1
Eric Multanen [Wed, 25 Mar 2015 16:24:52 +0000 (09:24 -0700)]
Add the bridge datapath_type to the operational MDSAL

Update the operational MDSAL with the bridge datapath_type.

Change-Id: I68664746daf771535c5bc157badb4e216e62aba4
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
9 years agoMerge "Updated postman collection with port/interface creation related restconf...
Sam Hague [Wed, 25 Mar 2015 16:02:29 +0000 (16:02 +0000)]
Merge "Updated postman collection with port/interface creation  related restconf requests"

9 years agoAllow port/interface creation via MDSAL without supplying options 23/17123/1
Eric Multanen [Wed, 25 Mar 2015 12:30:22 +0000 (05:30 -0700)]
Allow   port/interface creation via MDSAL without supplying options

Allow a port/interface to be created if the options are not supplied
in the MDSAL config request.

Change-Id: I25dd62d30708bd67d7bb2bd9f49b750e1eb9f1f2
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
9 years agoRemoved termination-point reference list from bridge-arrtibutes 02/17102/1
Anil Vishnoi [Wed, 25 Mar 2015 12:00:46 +0000 (17:30 +0530)]
Removed termination-point reference list from bridge-arrtibutes

Termination point reference is not required becuase termination point attributes will be augmented on the brige node itself.

Change-Id: I0c7571df251e20d8f92a5a2ea33f963c0c542663
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
9 years agoUpdated postman collection with port/interface creation 90/17090/4
Anil Vishnoi [Wed, 25 Mar 2015 08:59:53 +0000 (14:29 +0530)]
Updated postman collection with port/interface creation
related restconf requests

Change-Id: Ic77b8c581daca03d9f1074ca03e5afa477795602
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
9 years agoDefine Models for Port/Interface attributes and implemented 63/17063/4
Anil Vishnoi [Mon, 23 Mar 2015 12:08:36 +0000 (17:38 +0530)]
Define Models for Port/Interface attributes and implemented
port/interface create operation to configure port/interface
on the ovsdb managed bridge. This patch only enables creation
of port/interface with optional inputs.

Change-Id: I8b000fe02a2818bef7646e4f11bbecd2517af6de
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
9 years agoAdd dpdkvhost interface type 73/17073/1
Eric Multanen [Tue, 24 Mar 2015 11:12:08 +0000 (04:12 -0700)]
Add dpdkvhost interface type

Add the dpdkvhost interface type to the list of
OVSDB interface types in the SB model.

Change-Id: I29b1dee8edbaf6ed167d002102c97c19907c04bf
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
9 years agoChanged tp to terminationpoint to make it look meaningful and appropriate 34/17034/1
Praveen Mala [Tue, 24 Mar 2015 00:32:29 +0000 (20:32 -0400)]
Changed tp to terminationpoint to make it look meaningful and appropriate

Change-Id: I489b59f43ec1b19c4b8849c0c64905a5ebcf8a41
Signed-off-by: Praveen Mala <praveen.mala@intel.com>
9 years agoMerge "Add bridge port when creating a bridge via OVSDB SB MDSAL"
Sam Hague [Tue, 24 Mar 2015 00:27:12 +0000 (00:27 +0000)]
Merge "Add bridge port when creating a bridge via OVSDB SB MDSAL"

9 years agoAdd node callback to flow capable listener from ovsdb southbound 65/16965/3
Flavio Fernandes [Sun, 22 Mar 2015 20:55:47 +0000 (16:55 -0400)]
Add node callback to flow capable listener from ovsdb southbound

Use Bridge events in the ovsdb southbound to callback into flowCapableListener.
This callback can be used together (or instead of) the mdsal callback. Also,
protect the nodeCache by using a synchronization object.

Patch 2 (code review):
  - Use Constants.OPENFLOW_NODE_PREFIX instead of duplicate internal copy
  - Make code consistent when removing node form local cache (sync access)
  - Remove check for dpid value (not needed)

Patch 3 (Sonar issue):
  - No need to check for null before an instanceof; the instanceof keyword returns
    false when given a null argument.

Change-Id: Id93cd5f17366e499b7edf2db29164d6f6e586eda
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
9 years agoAdd bridge port when creating a bridge via OVSDB SB MDSAL 22/17022/1
Eric Multanen [Mon, 23 Mar 2015 11:42:00 +0000 (04:42 -0700)]
Add bridge port when creating a bridge via OVSDB SB MDSAL

When a bridge is created via SB MDSAL, also create the
associated internal port and interface.

Change-Id: I4d942b52611c1c444e811bfdea05d4eaa45996d5
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
9 years agoMerge "Update ovsdb model to support DPDK ports and datapath types"
Sam Hague [Fri, 20 Mar 2015 22:26:57 +0000 (22:26 +0000)]
Merge "Update ovsdb model to support DPDK ports and datapath types"

9 years agoMerge "Changed the constant name logger to LOGGER to comply with the naming convention"
Flavio Fernandes [Fri, 20 Mar 2015 21:38:01 +0000 (21:38 +0000)]
Merge "Changed the constant name logger to LOGGER to comply with the naming convention"

9 years agoUpdate ovsdb model to support DPDK ports and datapath types 35/16935/1
Praveen Mala [Fri, 20 Mar 2015 20:41:17 +0000 (16:41 -0400)]
Update ovsdb model to support DPDK ports and datapath types

This patch removes dpdk.yang and datapath-port-types.yang in favor of a simpler change to ovsdb.yang

Change-Id: Ifdea8d2e5d1a5e455ca887e4e65619e88099bf46
Signed-off-by: Praveen Mala <praveen.mala@intel.com>
9 years agoChanged the constant name logger to LOGGER to comply with the naming convention 30/16930/1
Praveen Mala [Tue, 17 Feb 2015 19:21:44 +0000 (14:21 -0500)]
Changed the constant name logger to LOGGER to comply with the naming convention

Signed-off-by: Praveen Mala <praveen.mala@intel.com>
9 years agoAdd other interface types to OVSDB SB MDSAL 08/16908/1
Eric Multanen [Thu, 19 Mar 2015 20:16:53 +0000 (13:16 -0700)]
Add other interface types to OVSDB SB MDSAL

Fill out the list of OVSDB interface types.

Change-Id: Idb838ed1498b0ce74639b5509a8ed39ccf79c776
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
9 years agoMerge "Support writing datapath_type to OVSDB bridge in SB MD-SAL"
Sam Hague [Thu, 19 Mar 2015 21:13:13 +0000 (21:13 +0000)]
Merge "Support writing datapath_type to OVSDB bridge in SB MD-SAL"

9 years agoChange listener registration to Operation Data Store and DataChangeScope to Base 51/16851/1
Anil Vishnoi [Thu, 19 Mar 2015 20:43:57 +0000 (02:13 +0530)]
Change listener registration to Operation Data Store and DataChangeScope to Base

Changing data change listener registration from config data store to operational
data store, because when ovs node connects to controller inventory manager write
node information to operational data store. I changed the scope of DataChange
from ONE to BASE, because with ONE we are receiving flood of DataChange events,
because of statistics manager write operation to operational data store.

Change-Id: I77b3facc99f375779898d85d42c9f2d4822d4f99
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
9 years agoMerge "Patch to update interface in operational datastore."
Sam Hague [Thu, 19 Mar 2015 20:33:20 +0000 (20:33 +0000)]
Merge "Patch to update interface in operational datastore."

9 years agoMerge "Add proper response extraction to allow assertEquals"
Flavio Fernandes [Thu, 19 Mar 2015 17:57:09 +0000 (17:57 +0000)]
Merge "Add proper response extraction to allow assertEquals"

9 years agoCleaned up excessive logging at INFO level. 29/16829/1
Ed Warnicke [Thu, 19 Mar 2015 14:28:02 +0000 (09:28 -0500)]
Cleaned up excessive logging at INFO level.

Some INFO level logs crept in at places that are completely
natural during dev... but not OK long term ;)

I pulled those back to debug level.

Please note, some INFO logs that are probably long term non-appropriate
*where* left in the termination-point stuff, because I presume they
are still helping the folks working on that... we should eventually
fix those to, but when the time is right :)

Change-Id: I5d0fc76096bea701a0c40ec803d574114fa453d5
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoSupport writing datapath_type to OVSDB bridge in SB MD-SAL 91/16791/5
Eric Multanen [Wed, 18 Mar 2015 13:45:55 +0000 (06:45 -0700)]
Support writing datapath_type to OVSDB bridge in SB MD-SAL

Add 'system' and 'netdev' datapath_types to the model to allow
creation of userspace (netdev) bridges via the OVSDB SB MDSAL.

v2 - remove tabs
v3 - resolve comments (return "system" by default")
v4 - rebase
v5 - remove white space
v6 - rebase

Change-Id: Ic6ccef1c3943c961e29b3ab7c605e5e8c0e1e42f
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
9 years agoPatch to update interface in operational datastore. 46/16846/3
Sharad Mishra [Wed, 18 Mar 2015 19:12:42 +0000 (12:12 -0700)]
Patch to update interface in operational datastore.

This patch adds interface updates to ovsdb operational datastore.

Signed-off-by: Sharad Mishra <sharad.d.mishra@intel.com>
Change-Id: I1fdd77382de1b9c3ee99304598d52dd3b3ed8ac8

9 years agoAdd proper response extraction to allow assertEquals 96/16796/1
Sam Hague [Thu, 19 Mar 2015 02:42:17 +0000 (22:42 -0400)]
Add proper response extraction to allow assertEquals

Change-Id: I4cf759f27523751796534ac594f4b5978827235f
Signed-off-by: Sam Hague <shague@redhat.com>
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 92/16792/1
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. 89/16789/3
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 69/16769/4
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 22/16722/4
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 87/16787/2
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 86/16786/2
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 85/16785/2
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 00/16700/5
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 34/16734/2
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 33/16733/2
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 32/16732/2
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 30/16730/2
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. 32/15832/5
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 52/16652/3
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 47/16647/3
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. 83/16283/7
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 29/16729/1
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 28/16728/1
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 51/16551/2
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 16/16516/4
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 15/16515/3
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 14/16514/6
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. 31/16631/3
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. 79/15979/4
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 87/16487/2
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 94/16494/1
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 82/16482/3
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 ;) 82/16282/2
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) 65/16265/2
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 64/16264/2
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. 76/16276/1
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 22/16222/1
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 07/16207/3
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. 02/16202/2
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 06/16206/3
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 05/16205/3
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 04/16204/3
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"" 13/16213/1
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" 12/16212/2
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 10/16210/1
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 03/16203/2
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 25/16125/2
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>