controller.git
9 years agoMerge "Having InMemoryDOMDatastore in its own bundle.To make it configurable using...
Tony Tkacik [Wed, 25 Jun 2014 13:06:39 +0000 (13:06 +0000)]
Merge "Having InMemoryDOMDatastore in its own bundle.To make it configurable using the config subystem. patch 5 changes: md-sal/pom.xml correction"

9 years agoMerge "Bug:1238 - Revert changes to SshClientAdapter."
Tony Tkacik [Wed, 25 Jun 2014 09:51:20 +0000 (09:51 +0000)]
Merge "Bug:1238 - Revert changes to SshClientAdapter."

9 years agoMerge "BUG 1179 - rpcResult = false but response 200"
Tony Tkacik [Wed, 25 Jun 2014 09:48:07 +0000 (09:48 +0000)]
Merge "BUG 1179 - rpcResult = false but response 200"

9 years agoHaving InMemoryDOMDatastore in its own bundle.To make it configurable 65/8165/7
Basheeruddin Ahmed [Fri, 20 Jun 2014 06:34:15 +0000 (23:34 -0700)]
Having InMemoryDOMDatastore in its own bundle.To make it configurable
using the config subystem.
patch 5 changes:
md-sal/pom.xml correction

patch 4 changes:
Moved data tree api and impl to yang-tools based on earlier comment

Patch 3 changes:
1. Included sal-inmemory-datastore dependency in TestHelper.java for PaxExam
integration test cases [Weird that it was working earlier and my local controller full build were passing]

Patch 2 changes:
1. Keeping schema service as part of opendaylight-dom-broker-impl for backward comptability scenario
2. Initializing InMemoryDOMDataStore by default if config-dom-datastore and
operation-dom-datastore are not found
3. Updated 01-md-sal.xml based on 1.
4. Regarding the comment of moving data tree in yangtools. It shall be done in
separate patch.

This is done to replace InMemoryDOMDatastore with distributed-datastore

The changes done are:
1. Created a new sal-inmemory-datastore bundle and moved the
store/impl source files from sal-dom-broker and the corresponding
InMemoryDOMDatastore test cases.

2. Created two yang config models in sal-dom-spi that represent
the configurable config-dom-datastore and operational-dom-datastore, that
are of service type DOMStore

3. In opendaylight-dom-broker-impl.yang of sal-dom-broker, in the augment of dom-inmemory-data-broker added two container config-data-store and operational-data-store that refer the service implementations of service defined in sal-dom-spi

4.In sal-inmemory-datastore bundle, created a yang model opendaylight-inmemory-datastore that provide the implementation of the sal-dom-spi service definitions mentioned in 2 -- The implementaions are augmented to have schema-service container required by InMemoryDOMDatastore for registering itself for scheam changes

5. Updated the 01-md-sal.xml with the above changes

6. Update the distribution pom.xml to include sal-inmemory-datastore.

Change-Id: Ib2f0f0556869981e7e60b3eeae9b1e5e6cc96a0f
Signed-off-by: Basheeruddin Ahmed <syedbahm@cisco.com>
9 years agoMerge "Helium: improve contract with ListenerRegistration"
Tony Tkacik [Wed, 25 Jun 2014 07:04:50 +0000 (07:04 +0000)]
Merge "Helium: improve contract with ListenerRegistration"

9 years agoBUG 1179 - rpcResult = false but response 200 36/8236/2
Jozef Gloncak [Mon, 23 Jun 2014 08:59:15 +0000 (10:59 +0200)]
BUG 1179 - rpcResult = false but response 200

Case for case when collection of errors is returned was added to
RestPostOperationTest.

Change-Id: Iea6c830d957001b01996e2640d8869105cf805ca
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoMerge "Introducing Protocol Buffers Encoding Required for Distributed Datastore Messa...
Moiz Raja [Wed, 25 Jun 2014 01:07:54 +0000 (01:07 +0000)]
Merge "Introducing Protocol Buffers Encoding Required for Distributed Datastore Messages Serialization"

9 years agoIntroducing Protocol Buffers Encoding 81/8281/5
Basheeruddin Ahmed [Tue, 24 Jun 2014 06:50:49 +0000 (23:50 -0700)]
Introducing Protocol Buffers Encoding
Required for Distributed Datastore Messages Serialization

Change-Id: I9276eb229af464061c149dfb008848ace4f51470
Signed-off-by: Basheeruddin Ahmed <syedbahm@cisco.com>
9 years agoMerge "Bug 1212: Values of VLAN match fields were wrong."
Alessandro Boch [Tue, 24 Jun 2014 23:01:04 +0000 (23:01 +0000)]
Merge "Bug 1212: Values of VLAN match fields were wrong."

9 years agoBug 1129 - POM Versioning changes for automated weekly releases - Moved all ommon... 96/7996/12
Surekha Bejgam [Fri, 13 Jun 2014 17:57:08 +0000 (10:57 -0700)]
Bug 1129 - POM Versioning changes for automated weekly releases -  Moved all ommon third party dependencies to odlparent

${nexusproxy} variable does not get replaced after introducing odlparent. This is a known bug in maven 2 & 3 where property replacement does not work reliably.

http://stackoverflow.com/questions/1363514/maven-does-not-replace-a-variable-in-settings-xml-when-it-is-invoked

As a workaround, I had to use complete url for nexus in repository and distribution management sections.

Change-Id: I78f31e0446cebec6f84b9d3959645ad7e440989e
Signed-off-by: Surekha Bejgam <sbejgam@cisco.com>
9 years agoRemove remoterpc dead code. 04/8304/1
Ed Warnicke [Tue, 24 Jun 2014 18:59:16 +0000 (13:59 -0500)]
Remove remoterpc dead code.

Change-Id: I4b16a179a93d3ccc65021aafccc2ed9f9e00b7e9
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoMerge "BUG 484 Anyxml normalized node"
Tony Tkacik [Tue, 24 Jun 2014 15:27:52 +0000 (15:27 +0000)]
Merge "BUG 484 Anyxml normalized node"

9 years agoBug:1238 - Revert changes to SshClientAdapter. 93/8293/1
Tomas Olvecky [Tue, 24 Jun 2014 10:57:14 +0000 (12:57 +0200)]
Bug:1238 - Revert changes to SshClientAdapter.

Fix bug introduced in 412e6b4 by reverting back to previous state.
Also fix a resource leak in writeImpl.

Change-Id: If43741071d1471280491888078f342bc33269c5f
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
9 years agoMerge "Bug 1176: Lower log level when netconf ssh connection fails"
Tony Tkacik [Tue, 24 Jun 2014 09:08:25 +0000 (09:08 +0000)]
Merge "Bug 1176: Lower log level when netconf ssh connection fails"

9 years agoBUG 484 Anyxml normalized node 62/8062/4
Jozef Gloncak [Mon, 16 Jun 2014 12:22:41 +0000 (14:22 +0200)]
BUG 484 Anyxml normalized node

- DataNormalizationOperation: added AnyXmlNormalization for
  AnyXmlSchemaNode

- Moved DataNormalizerTest to sal-common-impl where the source code
  resides and added more tests including coverage for anyxml.

Originally commited under patch set 9
https://git.opendaylight.org/gerrit/#/c/7337/9 by Tom Pantelis

This commit depends (therefore is commited as draft) on commits:
- Add Anyxml normalized node to yang-data-api -
https://git.opendaylight.org/gerrit/#/c/7771/1
- Implementation of Anyxml builder -
  https://git.opendaylight.org/gerrit/#/c/8061/

Change-Id: I8f6febd1738cde3139cc32d8199d1a87c464ba34
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoMerge "BUG 484 - XmlReader improve readability"
Tony Tkacik [Tue, 24 Jun 2014 07:34:49 +0000 (07:34 +0000)]
Merge "BUG 484 - XmlReader improve readability"

9 years agoFixed concurrency bug in DOMTransactionChainTest 82/8282/1
Tony Tkacik [Tue, 24 Jun 2014 07:31:00 +0000 (09:31 +0200)]
Fixed concurrency bug in DOMTransactionChainTest

Delete transaction was commited before read was verified
since transaction commit was done in other thread
there was race-condition between allocating transactions
to verify datastore state.

Change-Id: I1717efbe160e59f42c3baca2f5a5f053d703350e
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoBUG-944 Remove backwards compatibility config from sal-netconf- 70/8170/7
Maros Marsalek [Fri, 20 Jun 2014 11:14:27 +0000 (13:14 +0200)]
BUG-944 Remove backwards compatibility config from sal-netconf-
connector.

BREAKS BACKWARDS COMPATIBILITY FOR CONNECTOR CONFIGURATION.
SEND EMAIL TO MAILING LIST ABOUT BREAKING COMPATIBILITY FOR NETCONF CONNECTOR BEFORE MERGE!
ALL DISTRIBUTIONS THAT USE NETCONF-CONNECTOR NEED TO UPDATE CONFIGURATION OF CONNECTORS ACCORDING TO 99-netconf-connector INITIAL CONFIG FILE

Deprecated config attributes and code removed.

Extracted common connector modules(threadfactory, threadpool and client dispatcher) from config file 99-netconf-connector into 01-netconf

Change-Id: I77a93a1dc6845414474632f85c93d8a940449ac6
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoMerge "Fix netconf ssh client"
Tony Tkacik [Tue, 24 Jun 2014 07:18:05 +0000 (07:18 +0000)]
Merge "Fix netconf ssh client"

9 years agoBut 1129: Removing hard coded versions from MD-SAL 58/8158/4
Vaishali Mithbaokar [Thu, 19 Jun 2014 21:48:44 +0000 (14:48 -0700)]
But 1129: Removing hard coded versions from MD-SAL

Change-Id: Ic4ea06f1fd644808946dd5111d38152d19b9bf35
Signed-off-by: Vaishali Mithbaokar <vmithbao@cisco.com>
9 years agoMerge "Bug 1129: Removing hard coded versions from config subsystem"
Ed Warnicke [Mon, 23 Jun 2014 20:18:52 +0000 (20:18 +0000)]
Merge "Bug 1129: Removing hard coded versions from config subsystem"

9 years agoMerge "BUG 1129:Removed hard coded version from netconf project as part of the automa...
Ed Warnicke [Mon, 23 Jun 2014 20:17:53 +0000 (20:17 +0000)]
Merge "BUG 1129:Removed hard coded version from netconf project as part of the automated release changes for controller"

9 years agoMerge "Cleanup: Removed unused inventory-config model."
Devin Avery [Mon, 23 Jun 2014 18:48:42 +0000 (18:48 +0000)]
Merge "Cleanup: Removed unused inventory-config model."

9 years agoMerge "API Clarity: Documented Async Data Broker APIs."
Devin Avery [Mon, 23 Jun 2014 16:12:43 +0000 (16:12 +0000)]
Merge "API Clarity: Documented Async Data Broker APIs."

9 years agoMerge "BUG-961 Fix Resource leak error from netty."
Tony Tkacik [Mon, 23 Jun 2014 15:48:17 +0000 (15:48 +0000)]
Merge "BUG-961 Fix Resource leak error from netty."

9 years agoCleanup: Removed unused inventory-config model. 50/8250/1
Tony Tkacik [Mon, 23 Jun 2014 15:43:07 +0000 (17:43 +0200)]
Cleanup: Removed unused inventory-config model.

Change-Id: I67240df394000107025a23d070784f8ed8d25f7f
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoMerge "Fixed yangtools feature repo, bug with base and lang3 property version"
Ed Warnicke [Mon, 23 Jun 2014 14:53:39 +0000 (14:53 +0000)]
Merge "Fixed yangtools feature repo, bug with base and lang3 property version"

9 years agoFixed yangtools feature repo, bug with base and lang3 property version 98/7998/3
Mathieu Lemay [Fri, 13 Jun 2014 19:03:01 +0000 (15:03 -0400)]
Fixed yangtools feature repo, bug with base and lang3 property version

Change-Id: Ibd5095501b0f9fbe585ad1c6389e0385448f9321
Signed-off-by: Mathieu Lemay <mlemay@inocybe.com>
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoMerge "Inventory manager: get rid of synchronized blocks"
Tony Tkacik [Mon, 23 Jun 2014 12:24:43 +0000 (12:24 +0000)]
Merge "Inventory manager: get rid of synchronized blocks"

9 years agoMerge "BUG-1138 - wrong value in OFPXMT_OFB_VLAN_VID in FLOW_MOD"
Ed Warnicke [Mon, 23 Jun 2014 12:21:26 +0000 (12:21 +0000)]
Merge "BUG-1138 - wrong value in OFPXMT_OFB_VLAN_VID in FLOW_MOD"

9 years agoMerge "Bug 1112: Updated toaster-it configuration to use InMemory Data Store."
Ed Warnicke [Mon, 23 Jun 2014 11:38:14 +0000 (11:38 +0000)]
Merge "Bug 1112: Updated toaster-it configuration to use InMemory Data Store."

9 years agoMerge "Bug 1144: Fixed mising DataChangeEvents for leaf listeners."
Ed Warnicke [Mon, 23 Jun 2014 11:37:23 +0000 (11:37 +0000)]
Merge "Bug 1144: Fixed mising DataChangeEvents for leaf listeners."

9 years agoBUG-1138 - wrong value in OFPXMT_OFB_VLAN_VID in FLOW_MOD 72/8172/3
Michal Rehak [Fri, 20 Jun 2014 11:52:25 +0000 (13:52 +0200)]
BUG-1138 - wrong value in OFPXMT_OFB_VLAN_VID in FLOW_MOD

- vlanPresent set to true if setting vlanId value
- checkstyle whitespace fix

Change-Id: I667fb667af8d5dcd1bc7216ce1fab9e78b6d2f51
Signed-off-by: Michal Rehak <mirehak@cisco.com>
9 years agoMerge changes I0df1f18f,I4f635329
Ed Warnicke [Mon, 23 Jun 2014 11:24:02 +0000 (11:24 +0000)]
Merge changes I0df1f18f,I4f635329

* changes:
  Introduce ShardStrategy and related code
  Initial implementation of ListenerRegistration actor and all related messages

9 years agoMerge "Initial implementation of ShardTransaction and all the messages it handles"
Ed Warnicke [Mon, 23 Jun 2014 11:23:35 +0000 (11:23 +0000)]
Merge "Initial implementation of ShardTransaction and all the messages it handles"

9 years agoMerge "Implement basic ShardTransactionChain#CloseTransactionChain"
Ed Warnicke [Mon, 23 Jun 2014 11:23:06 +0000 (11:23 +0000)]
Merge "Implement basic ShardTransactionChain#CloseTransactionChain"

9 years agoMerge "Initial implementation of ShardTransactionChain"
Ed Warnicke [Mon, 23 Jun 2014 11:20:24 +0000 (11:20 +0000)]
Merge "Initial implementation of ShardTransactionChain"

9 years agoMerge "Add message to update the schema context of the InMemoryDOMDataStore"
Ed Warnicke [Mon, 23 Jun 2014 11:19:19 +0000 (11:19 +0000)]
Merge "Add message to update the schema context of the InMemoryDOMDataStore"

9 years agoMerge "Initial implementation of the Shard Actor"
Ed Warnicke [Mon, 23 Jun 2014 11:18:35 +0000 (11:18 +0000)]
Merge "Initial implementation of the Shard Actor"

9 years agoAPI Clarity: Documented Async Data Broker APIs. 46/8046/10
Devin Avery [Mon, 16 Jun 2014 16:52:14 +0000 (18:52 +0200)]
API Clarity: Documented Async Data Broker APIs.

Documented AsyncDataBroker APIs, which are
base abstract APIs from which Binding and DOM
data broker APIs are derived.

Introduced code-examples illustrating
transaction isollation and conflict detection.

Change-Id: I3c881b1fceb0b68c0cc28a1caa7780b9b6c2af3f
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
Signed-off-by: Devin Avery <devin.avery@brocade.com>
9 years agoBUG 484 - XmlReader improve readability 37/8037/2
Jozef Gloncak [Mon, 16 Jun 2014 11:43:38 +0000 (13:43 +0200)]
BUG 484 - XmlReader improve readability

- XmlReader - improve readibility of methods isSimple(Composite) node by
  extracting common logic to method skipCommentsAndWhitespace.

The change comes from patch set
https://git.opendaylight.org/gerrit/#/c/7337/9
which was originally commited by Tom Pantelis. In this commit is selected
only one change which doesn't relate with BUG 484

Change-Id: Icef852da20e8f624b4bc3d61e334d88f4766474d
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoHelium: improve contract with ListenerRegistration 43/6043/9
Robert Varga [Fri, 11 Apr 2014 08:04:02 +0000 (10:04 +0200)]
Helium: improve contract with ListenerRegistration

Change-Id: Ief4a6a5072824ada4cead4f465961e5a08053f8b
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoInventory manager: get rid of synchronized blocks 28/7828/6
Robert Varga [Mon, 9 Jun 2014 15:46:24 +0000 (17:46 +0200)]
Inventory manager: get rid of synchronized blocks

This patch reworks the inventory manager to operate on batches, such
that it does not block notification threads and lowers the pressure on
the datastore.

Change-Id: I1953ce22446853b99a201381ff4d7b64a3cfcee7
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoBug 1112: Updated toaster-it configuration to use InMemory Data Store. 67/8167/4
Tony Tkacik [Fri, 20 Jun 2014 09:58:36 +0000 (11:58 +0200)]
Bug 1112: Updated toaster-it configuration to use InMemory Data Store.

As it turned out toaster-it used configuration with legacy data store
and not new one.

Updated controller config for toaster-it to have latest configuration
for MD-SAL.

controller.xml was restructured in such way, it is
easy to compare 01-mdsal.xml with controller.xml using diff
or meld tool.

Change-Id: I96de31c04e914bff0e99d155cb5aa1e4abe9807f
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoBug 1231 - fix of broken tests in sal-rest-connector 34/8234/1
Jozef Gloncak [Mon, 23 Jun 2014 08:18:59 +0000 (10:18 +0200)]
Bug 1231 - fix of broken tests in sal-rest-connector

Dummy values were added to places where null values as SchemaPath were
presented.

Change-Id: I1a7d109ec4b9dfa24ef77adfc7aa9ccff74482c1
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoBug 1245: Dropped Binding prefix from Binding Data APIs. 38/8338/8
Tony Tkacik [Wed, 25 Jun 2014 15:46:42 +0000 (17:46 +0200)]
Bug 1245: Dropped Binding prefix from Binding Data APIs.

Dropped Prefix Binding from Data API of Binding-Aware part,
to make it easier for incomming users to find them as entry
point to the system (eg. DataBroker).

Change-Id: I2636cc0b35369a5403e7e6094d1eafa03f1bf919
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoBUG-961 Fix Resource leak error from netty. 79/8179/1
Maros Marsalek [Fri, 20 Jun 2014 15:00:50 +0000 (17:00 +0200)]
BUG-961 Fix Resource leak error from netty.

Release ByteBuf instance in ChannelInputStream.

Change-Id: I5fdf9751e05b6975778693f603e1f12b17bb4ee7
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoBUG-944 Fix nested union types in config subsystem module attributes 69/8169/2
Maros Marsalek [Fri, 20 Jun 2014 11:06:50 +0000 (13:06 +0200)]
BUG-944 Fix nested union types in config subsystem module attributes

Before this patch only unions of non-union types are supported.

Change-Id: If4aa0980246763b211a1c3fca0168ee84a1e75f9
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoMerge "Fix checkstyle errors in sal-compatibility"
Tony Tkacik [Fri, 20 Jun 2014 12:55:23 +0000 (12:55 +0000)]
Merge "Fix checkstyle errors in sal-compatibility"

9 years agoMerge "Bug 629: Make BindingDataBroker to be visible."
Ed Warnicke [Fri, 20 Jun 2014 12:48:14 +0000 (12:48 +0000)]
Merge "Bug 629: Make BindingDataBroker to be visible."

9 years agoMerge "Bug 629: Make SchemaService required for Data Brokers"
Ed Warnicke [Fri, 20 Jun 2014 12:48:01 +0000 (12:48 +0000)]
Merge "Bug 629: Make SchemaService required for Data Brokers"

9 years agoFix checkstyle errors in sal-compatibility 73/8173/1
Maros Marsalek [Fri, 20 Jun 2014 12:29:26 +0000 (14:29 +0200)]
Fix checkstyle errors in sal-compatibility

Change-Id: I696d3ade9b3b9d5705efa03f2a27dd914ae295ef
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
9 years agoMerge "Add copyright messages for java files"
Tony Tkacik [Fri, 20 Jun 2014 12:14:32 +0000 (12:14 +0000)]
Merge "Add copyright messages for java files"

9 years agoMerge "Introducing ShardManager"
Tony Tkacik [Fri, 20 Jun 2014 12:13:07 +0000 (12:13 +0000)]
Merge "Introducing ShardManager"

9 years agoBug 1212: Values of VLAN match fields were wrong. 66/8166/1
Hideyuki Tai [Fri, 20 Jun 2014 09:06:36 +0000 (05:06 -0400)]
Bug 1212: Values of VLAN match fields were wrong.

Values of match fields for VLAN tag were wrong when used AD-SAL OF
plugin and tried to create a flow entry which matched packets without
VLAN tags. V6Match class of AD-SAL OF plugin didn't have code for
handling packets without VLAN tags.

Changes:
 * Added code for handling packets without VLAN tags to V6Match class.
 * Added test cases related to the change of V6Match class.

Change-Id: Ic9c3a6c47c7e99d5273e48ec2ed8d0399289cddb
Signed-off-by: Hideyuki Tai <h-tai@cd.jp.nec.com>
9 years agoMerge "Swagger UI for AD-SAL"
Alessandro Boch [Thu, 19 Jun 2014 19:57:10 +0000 (19:57 +0000)]
Merge "Swagger UI for AD-SAL"

9 years agoBug 629: Make BindingDataBroker to be visible. 16/7116/3
Tony Tkacik [Thu, 19 Jun 2014 14:38:21 +0000 (16:38 +0200)]
Bug 629: Make BindingDataBroker to be visible.

Inroduced support for injecting and retrieving
new BindingDataBroker via config-subsystem,
OSGI.

Note: This patch does not provide access to
BindingDataBroker is still not available via
Consumer/Provider context.

Change-Id: Iaa7e65aeeb873c38fded2fecb45e2f0dca1e7714
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoBug 629: Make SchemaService required for Data Brokers 54/8154/2
Tony Tkacik [Thu, 19 Jun 2014 14:35:47 +0000 (16:35 +0200)]
Bug 629: Make SchemaService required for Data Brokers

Binding Aware versions of Data Brokers did not
required SchemaService when constructed.
Refactored their constructor to make it
obvious that Schema Service is required.

Change-Id: I6c7c69df15aa0130a92015b2c52ba1a9e4cab7b1
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoMerge "BUG-1167: missing Notification of FLOW_REMOVED"
Ed Warnicke [Thu, 19 Jun 2014 14:06:25 +0000 (14:06 +0000)]
Merge "BUG-1167: missing Notification of FLOW_REMOVED"

9 years agoBug 977: Return RpcError result on neconf failure 08/7608/9
tpantelis [Thu, 29 May 2014 01:36:13 +0000 (21:36 -0400)]
Bug 977: Return RpcError result on neconf failure

NetconfDocumentedException:
   - Added methods to convert to and from XML.

NetconfMessageTransformUtil:
   - Added code to convert a NetconfDocumentedException to an RpcError.
   - Modified checkSuccessReply and checkValidReply to throw
     NetconfDocumentedException instead of IllegalStateException.

NetconfDeviceCommunicator:
   - Modified processMessage to return an RpcError result for invalid
     message and netconf error reply.
   - Modified other places that previously returned an exception in the
     Future to intsead return an RpcError result.
   - Improved  synchronization by removing synchronized from method sigs
     and locking only the code that needs it.

SendErrorExceptionUtil:
   - Modified createDocument to call
     NetconfDocumentedException.toXMLDocument

XmlNetconfConstants:
   - Moved to netconf-api so NetconfDocumentedException could access it.

The rest of the changed files were to change the import for
XmlNetconfConstants.

Change-Id: Id0ef3ac91bbcb85c9a7a198ceac272fb07f4b9f9
Signed-off-by: tpantelis <tpanteli@brocade.com>
9 years agoBug 1144: Fixed mising DataChangeEvents for leaf listeners. 45/8145/1
Tony Tkacik [Thu, 19 Jun 2014 10:12:02 +0000 (12:12 +0200)]
Bug 1144: Fixed mising DataChangeEvents for leaf listeners.

Change-Id: I632e803e0bf7c7ec63bfbde636880feb2650a733
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoBug-835:Reserve ports should be logical ports 19/7619/2
Kamal Rameshan [Tue, 3 Jun 2014 02:00:30 +0000 (19:00 -0700)]
Bug-835:Reserve ports should be logical ports

Change-Id: I94cda1754def17bc3419a078ef8cc94fdd37260b
Signed-off-by: Kamal Rameshan <kramesha@cisco.com>
9 years agoBug 1129: Removing hard coded versions from config subsystem 25/8125/1
Vaishali Mithbaokar [Wed, 18 Jun 2014 22:32:58 +0000 (15:32 -0700)]
Bug 1129: Removing hard coded versions from config subsystem

Change-Id: I3342267ccc354e0979db754812813171c42af772
Signed-off-by: Vaishali Mithbaokar <vmithbao@cisco.com>
9 years agoIntroduce ShardStrategy and related code 22/8122/1
Moiz Raja [Wed, 18 Jun 2014 21:00:08 +0000 (14:00 -0700)]
Introduce ShardStrategy and related code

Change-Id: I0df1f18f7b3488acae440e3375e155ae7ee06abf
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoMerge "Prepare for security-related catalina/tomcat version updates"
Ed Warnicke [Wed, 18 Jun 2014 20:58:39 +0000 (20:58 +0000)]
Merge "Prepare for security-related catalina/tomcat version updates"

9 years agoPrepare for security-related catalina/tomcat version updates 21/8121/1
Ryan Moats [Wed, 18 Jun 2014 20:24:39 +0000 (15:24 -0500)]
Prepare for security-related catalina/tomcat version updates

In preparation for updating tomcat/catalina versions to address
security issues, move catalina/tomcat version numbers to
properties in pom.xml

Change-Id: I619cd7b0cc01dd2437d3d0ff1286e14137dbb3ec
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
9 years agoMerge "Bug 931, Bug 910 - Enhance Restconf Swagger Documentation"
Tony Tkacik [Wed, 18 Jun 2014 16:56:03 +0000 (16:56 +0000)]
Merge "Bug 931, Bug 910 - Enhance Restconf Swagger Documentation"

9 years agoMerge "BUG-1140: inPort disappeared from match"
Ed Warnicke [Wed, 18 Jun 2014 12:59:05 +0000 (12:59 +0000)]
Merge "BUG-1140: inPort disappeared from match"

9 years agoMerge "Bug 225 - added support for depth RESTCONF parameter in URI"
Tony Tkacik [Wed, 18 Jun 2014 12:34:14 +0000 (12:34 +0000)]
Merge "Bug 225 - added support for depth RESTCONF parameter in URI"

9 years agoMerge "BUG-1105: Implement subtree filtering in netconf"
Tony Tkacik [Wed, 18 Jun 2014 12:11:59 +0000 (12:11 +0000)]
Merge "BUG-1105: Implement subtree filtering in netconf"

9 years agoInitial implementation of ListenerRegistration actor and all related messages 03/8103/1
Moiz Raja [Wed, 18 Jun 2014 01:22:35 +0000 (18:22 -0700)]
Initial implementation of ListenerRegistration actor and all related messages

Change-Id: I4f63532983a2e272b610a61f093242e34867ed70
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoInitial implementation of ShardTransaction and all the messages it handles 01/8101/1
Moiz Raja [Wed, 18 Jun 2014 00:53:33 +0000 (17:53 -0700)]
Initial implementation of ShardTransaction and all the messages it handles

Change-Id: I2e512111907afa51bdc8517925e2a435f7b1b110
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoImplement basic ShardTransactionChain#CloseTransactionChain 98/8098/2
Moiz Raja [Tue, 17 Jun 2014 23:11:35 +0000 (16:11 -0700)]
Implement basic ShardTransactionChain#CloseTransactionChain

Change-Id: I7acfe5d985b44f64a7e6b13a6434952ff7fe28d4
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoInitial implementation of ShardTransactionChain 96/8096/2
Moiz Raja [Tue, 17 Jun 2014 22:27:44 +0000 (15:27 -0700)]
Initial implementation of ShardTransactionChain

Change-Id: Ia7fea4502f5e35837d43c404dc14e3a17480051d
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoIncorrect connect API is called in ConnectionMgr when NodeType is provided 57/8057/4
Pramila Singh [Tue, 17 Jun 2014 04:43:44 +0000 (21:43 -0700)]
Incorrect connect API is called in ConnectionMgr when NodeType is provided

Change-Id: I73d7539cfbd97cfd2f3da570c8e29ff0787d8f18
Signed-off-by: Pramila Singh <pramisin@cisco.com>
9 years agoAdd message to update the schema context of the InMemoryDOMDataStore 92/8092/2
Moiz Raja [Tue, 17 Jun 2014 21:42:31 +0000 (14:42 -0700)]
Add message to update the schema context of the InMemoryDOMDataStore

Change-Id: I25da89aef01804bbf4f51a1a8c7b810b5a3bb86c
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoSwagger UI for AD-SAL 48/8048/2
mrajvaid [Mon, 16 Jun 2014 19:59:21 +0000 (12:59 -0700)]
Swagger UI for AD-SAL

 -Use 'mvn clean install -P docs' to build swagger ui bundle
 -UI can be accessed at  http://<controller-ip:contoller-web-port>/swagger

Change-Id: I466518f78e23d31c15515f3dcd1f3e46af802f2d
Signed-off-by: mrajvaid <mrajvaid@cisco.com>
9 years agoInitial implementation of the Shard Actor 89/8089/3
Moiz Raja [Tue, 17 Jun 2014 20:41:01 +0000 (13:41 -0700)]
Initial implementation of the Shard Actor

Things to note,
- Added a temporary dependency on sal-broker-impl. This is so that I could use the InMemoryDOMDataStore.
  Once InMemoryDOMDataStore is moved to it's own bundle then I will simply switch the dependency
- Shard has been only implemented to the point where it is using an InMemoryDOMDataStore and handling the CreateTransaction and RegisterChangeListener messages
  This commit is intended to give a feel for what kind of coding patterns will be used to implement Shard and related actors and their tests

Change-Id: I86f0d701399805185a0987bb1b97fe1358ce4cd9
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoAdd copyright messages for java files 49/8049/5
Moiz Raja [Mon, 16 Jun 2014 20:14:58 +0000 (13:14 -0700)]
Add copyright messages for java files

Change-Id: I8ac584f45481d9453480d8ccc5316a0f0baca199
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoIntroducing ShardManager 04/8004/4
Moiz Raja [Fri, 13 Jun 2014 23:11:18 +0000 (16:11 -0700)]
Introducing ShardManager

Change-Id: I6bf6955ece55d1a1bdcc150a3fec77f8aff22d6e
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoBUG-1140: inPort disappeared from match 79/8079/1
Michal Rehak [Tue, 17 Jun 2014 15:45:29 +0000 (17:45 +0200)]
BUG-1140: inPort disappeared from match

- added inPort into ToSalConversionsUtils.toMatch
- added utility method for creating NodeId out of NodeConnectorId and unit test

Change-Id: Ibbfe697aaf756f44553bbbbb9dfd6c9c9660f8b6
Signed-off-by: Michal Rehak <mirehak@cisco.com>
9 years agoBug 931, Bug 910 - Enhance Restconf Swagger Documentation 38/8038/4
Devin Avery [Mon, 16 Jun 2014 13:38:18 +0000 (09:38 -0400)]
Bug 931, Bug 910 - Enhance Restconf Swagger Documentation

    1) We now generate different data models for config and operation data stores
    2) We no longer generate URLs for leaf nodes since RESTConf doesn't support those
    3) We now expose our mount points in our system in a list, which a user can select and view the list of mounted resources
    4) Cleaned up non-ODL branding, adding in ODL branding.

    To test
    A) Add a device which has mounts in your system (consider ping 2.0 https://wiki.opendaylight.org/view/Ping_2.0_-_Discover_and_Model_Plugin or a netconf device)
    B) Navigate to http://localhost:8080/apidoc/explorer)

Patch Set 2: Original Change
Patch Set 3: Rebased, remformmated existing code which used 2 spaces instead of 4
Patch Set 4: Kicking off a second build, since I got mixed build messages.

Change-Id: Ic1f7ad60c6ccd1079d35e66c0dbc4d1a760dd0ec
Signed-off-by: Devin Avery <devin.avery@brocade.com>
9 years agoMerge "Bug 629: Introduction of Configuration Commit Handler"
Ed Warnicke [Tue, 17 Jun 2014 11:49:19 +0000 (11:49 +0000)]
Merge "Bug 629: Introduction of Configuration Commit Handler"

9 years agoMerge "Added container wrapper against action to support augmentation"
Ed Warnicke [Tue, 17 Jun 2014 11:22:17 +0000 (11:22 +0000)]
Merge "Added container wrapper against action to support augmentation"

9 years agoBUG-272: Fixed last checkstyle offenders & activate checkstyle enforcement 56/7856/13
Robert Varga [Tue, 10 Jun 2014 08:53:49 +0000 (10:53 +0200)]
BUG-272: Fixed last checkstyle offenders & activate checkstyle enforcement

This patch adds xtend-gen to excluded directories and finally removes
the enforcer plugin override -- thus making md-sal components subject to
controller-wide checkstyle rules.

Change-Id: I3ccad778f90e450843122bc904a30a0cd4ca79f3
Signed-off-by: Robert Varga <rovarga@cisco.com>
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoBUG 1129:Removed hard coded version from netconf project as part of the automated... 58/8058/1
Vaishali Mithbaokar [Tue, 17 Jun 2014 01:41:07 +0000 (18:41 -0700)]
BUG 1129:Removed hard coded version from netconf project as part of the automated release changes for controller

Change-Id: If4884987d8a0683a7a7817bc724fa707a93e3628
Signed-off-by: Vaishali Mithbaokar <vmithbao@cisco.com>
9 years agoMerge "added containermanager shell feature"
Ed Warnicke [Tue, 17 Jun 2014 01:28:12 +0000 (01:28 +0000)]
Merge "added containermanager shell feature"

9 years agoMerge "Add some unimplemented proxy classes related to DOMStore"
Ed Warnicke [Mon, 16 Jun 2014 23:38:39 +0000 (23:38 +0000)]
Merge "Add some unimplemented proxy classes related to DOMStore"

9 years agoMerge "Add more yang/sal dependencies"
Ed Warnicke [Mon, 16 Jun 2014 23:37:45 +0000 (23:37 +0000)]
Merge "Add more yang/sal dependencies"

9 years agoMerge "Hook the Distributed Data store into the config sub-system"
Ed Warnicke [Mon, 16 Jun 2014 23:37:08 +0000 (23:37 +0000)]
Merge "Hook the Distributed Data store into the config sub-system"

9 years agoMerge "Add akka dependencies"
Ed Warnicke [Mon, 16 Jun 2014 23:36:06 +0000 (23:36 +0000)]
Merge "Add akka dependencies"

9 years agoAdd some unimplemented proxy classes related to DOMStore 64/7964/2
Moiz Raja [Fri, 13 Jun 2014 00:51:11 +0000 (17:51 -0700)]
Add some unimplemented proxy classes related to DOMStore

Added basic implementation of DistributedDataStore which does not do much more than fill
in the interface and put tests in place.

All the Proxy classes are still unimplemented.

Change-Id: I9506a05858404a9140f0faf436bd6fb128289693
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoAdd more yang/sal dependencies 62/7962/2
Moiz Raja [Thu, 12 Jun 2014 23:01:56 +0000 (16:01 -0700)]
Add more yang/sal dependencies

Change-Id: I6a5d7087233bfc1c88a4f113cc6d3a476055a60c
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoHook the Distributed Data store into the config sub-system 61/7961/2
Moiz Raja [Thu, 12 Jun 2014 22:32:09 +0000 (15:32 -0700)]
Hook the Distributed Data store into the config sub-system

Change-Id: Iceb93fb524a4d036466dd2d5ffa5a740e24bd435
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoAdd akka dependencies 58/7958/5
Moiz Raja [Thu, 12 Jun 2014 20:07:59 +0000 (13:07 -0700)]
Add akka dependencies

Just add the maven dependencies

Change-Id: I530c6b6fdf9a9832030cfda0f3d0b954eea464a2
Signed-off-by: Moiz Raja <moraja@cisco.com>
9 years agoMerge "Initial commit of the akka based distributed-datastore"
Ed Warnicke [Mon, 16 Jun 2014 20:20:29 +0000 (20:20 +0000)]
Merge "Initial commit of the akka based distributed-datastore"

9 years agoadded containermanager shell feature 97/7097/6
jfokkan [Thu, 8 May 2014 15:32:42 +0000 (11:32 -0400)]
added containermanager shell feature

PatchSet5: Worked containermanager.shell into distro
           and pom files so that it both builds and
           is pulled into the old distribution/opendaylight.
           Also checked to make sure that it worked there.

PatchSet6: Fixed adding of new shell bundle to old
   distro

Change-Id: I7f4d86c9902a7f4a8f6bd4bae74ebe4a9634e3bc
Signed-off-by: Jonathan Fok kan <jfokkan@inocybe.com>
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agoBug 629: Introduction of Configuration Commit Handler 45/8045/1
Tony Tkacik [Mon, 16 Jun 2014 16:33:40 +0000 (18:33 +0200)]
Bug 629: Introduction of Configuration Commit Handler

One piece of functionality which was not-well defined
in original APIs and was missing in new APIs is
user-submitted commit handlers.

Contract of Commit Handlers was updated to reflect
more existing concept of three-phase commit and
to allow commit handlers only for configuration
subtree.

Access to proposed data is done via read-only
transaction instead of data change event,
since commit handlers may want to cross-reference
data with other and we need to capture this reads
as preconditions for later commit phases.

Change-Id: Id2049c05384dd74792f3cfbbb9f77bf684223be2
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
9 years agoBug 225 - added support for depth RESTCONF parameter in URI 25/5325/5
tpantelis [Wed, 4 Jun 2014 22:53:36 +0000 (18:53 -0400)]
Bug 225 - added support for depth RESTCONF parameter in URI

Modified RestconfImpl to prune the resulting ComositeNode tree
based on the depth parameter, if specified.

A depth of 1 retrieves just the target resource and no children. This is
a way to determine if the resource exists. A depth of 2 retrieves the
target resource and just its direct children - any child container would
be empty.

Change-Id: I44d99f9886e3837a1bb13eda84aec3c4cc6b21ae
Signed-off-by: tpantelis <tpanteli@brocade.com>
9 years agoMerge changes Ia119c9ae,Ic2290d7f
Ed Warnicke [Fri, 13 Jun 2014 12:20:54 +0000 (12:20 +0000)]
Merge changes Ia119c9ae,Ic2290d7f

* changes:
  Bug 1106: Introduced OptimisticLockFailedException
  Bug 1073: Added support to DOMBrokerImpl for Transaction Chaining