openflowplugin.git
9 years agoRpc manager not needed to instantiate DeviceManager 15/17715/2
Martin Bobak [Fri, 3 Apr 2015 15:35:34 +0000 (17:35 +0200)]
Rpc manager not needed to instantiate DeviceManager

Change-Id: I0dc1584fb825d270c7ce18626e58724646652fe0
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agorequest context hookin java doc 14/17714/2
Martin Bobak [Fri, 3 Apr 2015 15:23:09 +0000 (17:23 +0200)]
request context hookin java doc

Change-Id: I3033364ecf0b6f0d1046fa1144852b63b55c8e26
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agorequest context is hoooked to device context by OFJResult2RequestCtxFuture 13/17713/1
Martin Bobak [Fri, 3 Apr 2015 15:22:56 +0000 (17:22 +0200)]
request context is hoooked to device context by OFJResult2RequestCtxFuture

Change-Id: I62bed2ddea7f6a2a46db65e14641f99bb65621a7
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoRpcResultConvertor renamed to OFJResult2RequestCtxFuture 12/17712/1
Martin Bobak [Fri, 3 Apr 2015 15:15:41 +0000 (17:15 +0200)]
RpcResultConvertor renamed to OFJResult2RequestCtxFuture

- everytime OFJava result has to be processed and its
  future translated to request context's future it always should
  be done by OFJResult2RequestCtxFuture.

Change-Id: I0bc201f6cd0f3ca8e67dc7acc52c36c2e994bddd
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agomultipart messge collector doesn't create own future 11/17711/1
Martin Bobak [Fri, 3 Apr 2015 13:40:28 +0000 (15:40 +0200)]
multipart messge collector doesn't create own future

- future from OFJava is handled by RpcResultConvertor
- simplified multipart calls in DeviceManagerImpl#deviceConnected

Change-Id: I7f1b60808b2397c073ed0d971cb0301b9a95031b
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoMerge "add counter enable to TransactionChainManager"
michal rehak [Fri, 3 Apr 2015 14:53:45 +0000 (14:53 +0000)]
Merge "add counter enable to TransactionChainManager"

9 years agoadd counter enable to TransactionChainManager 06/17706/1
Vaclav Demcak [Fri, 3 Apr 2015 14:15:09 +0000 (16:15 +0200)]
add counter enable to TransactionChainManager

Note: TransactionChainManger has counter for an automatic submit
action, but we don't wish to submit anything before DeviceContext
are finally wired.

Change-Id: I58774b4d001eda32c9eac5e253f6220464a9422a
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoMerge "Clean wiring inital phase for new Device"
michal rehak [Fri, 3 Apr 2015 14:14:44 +0000 (14:14 +0000)]
Merge "Clean wiring inital phase for new Device"

9 years agoMerge "Bug 2945: Fix read failures in StatAbstractListenCommit"
michal rehak [Fri, 3 Apr 2015 13:52:50 +0000 (13:52 +0000)]
Merge "Bug 2945: Fix read failures in StatAbstractListenCommit"

9 years agoClean wiring inital phase for new Device 04/17704/2
Vaclav Demcak [Fri, 3 Apr 2015 13:03:26 +0000 (15:03 +0200)]
Clean wiring inital phase for new Device

* add new Interface for clean wiring of Managers
DeviceInitializator
* add new Interface for inital phase chain
DeviceInitializationPhaseHandler

Change-Id: Iac633927c1f4fe661dfa6a1e4720bcfabf6b8a42
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agofixed portstatus translator key 00/17700/1
Martin Bobak [Fri, 3 Apr 2015 11:53:22 +0000 (13:53 +0200)]
fixed portstatus  translator key

Change-Id: I408be51976e0628e74e37c656842770785766904
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agostarting switch connections on OFPProvider initialization 99/17699/1
Martin Bobak [Fri, 3 Apr 2015 11:27:11 +0000 (13:27 +0200)]
starting switch connections on OFPProvider initialization

Change-Id: I7d0053eb1a99f31aca733084557d24190e7edefd
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agosetting defualt translator libraries extracted to util class 97/17697/2
Martin Bobak [Fri, 3 Apr 2015 10:52:39 +0000 (12:52 +0200)]
setting defualt translator libraries extracted to util class

Change-Id: I1c12ccf69304450c04004b51d867cb01d4ee637f
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoIntroduced translator librarian 95/17695/1
Martin Bobak [Fri, 3 Apr 2015 10:40:36 +0000 (12:40 +0200)]
Introduced translator librarian

Change-Id: I69e39929eb2397e55cd7840e865e07f069617a79
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agodon't be shy and let device context know, we have translator libraries 93/17693/1
Martin Bobak [Fri, 3 Apr 2015 10:18:24 +0000 (12:18 +0200)]
don't be shy and let device context know, we have translator libraries

Change-Id: I7fae7dea5a77ad269aee828b5da826d6db9edccf
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoMerge "introduced TraslatorKeyFactory for registering translators in OFPProvider"
michal rehak [Fri, 3 Apr 2015 10:29:55 +0000 (10:29 +0000)]
Merge "introduced TraslatorKeyFactory for registering translators in OFPProvider"

9 years agoMerge "Wiring message processing to deviceContext"
michal rehak [Fri, 3 Apr 2015 10:28:56 +0000 (10:28 +0000)]
Merge "Wiring message processing to deviceContext"

9 years agointroduced TraslatorKeyFactory for registering translators in OFPProvider 92/17692/1
Martin Bobak [Fri, 3 Apr 2015 10:06:59 +0000 (12:06 +0200)]
introduced TraslatorKeyFactory for registering translators in OFPProvider

Change-Id: Iba254c7f9b47200752d77243d475bbb73217754f
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoWiring message processing to deviceContext 77/17677/4
Vaclav Demcak [Thu, 2 Apr 2015 22:48:39 +0000 (00:48 +0200)]
Wiring message processing to deviceContext

Change-Id: I383e10eec16b19ad322849147b79ca88912c06ea
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agointroducing TranslatorLibraryBuilder 90/17690/1
Martin Bobak [Fri, 3 Apr 2015 09:39:32 +0000 (11:39 +0200)]
introducing TranslatorLibraryBuilder

Change-Id: I0b5f49dff5c589bc12a8bc9b60dc3bd367cc13e9
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoTranslatorLibrary moved to translator package 89/17689/1
Martin Bobak [Fri, 3 Apr 2015 09:30:24 +0000 (11:30 +0200)]
TranslatorLibrary moved to translator package

Change-Id: I94a5120047217aeb7748dd98bfc29332e7c3c1d6
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agotranslator package moved 88/17688/1
Martin Bobak [Fri, 3 Apr 2015 09:19:18 +0000 (11:19 +0200)]
translator package moved

Change-Id: I440902d624750e9e3cd461cee29012e08383fa0f
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoBug 2945: Fix read failures in StatAbstractListenCommit 84/17684/3
Tom Pantelis [Thu, 2 Apr 2015 19:53:37 +0000 (15:53 -0400)]
Bug 2945: Fix read failures in StatAbstractListenCommit

Added a volatile currentReadTxStale flag which onDataChanged sets instead of
closing the currentReadTx. readLatestConfiguration checks the
currentReadTxStale flag and, if set, closes the currentReadTx and
creates a new one. This prevents onDataChanged from closing the Tx when
a read is in-flight.

Added a unit test class StatAbstractListenCommitTest with test cases for
the methods that were changed.

I also changed StatListenCommitFlow#initConfigFlows to create an
ArrayList when copying the Flow List as Linkedist incurs more memory
overhead.

Change-Id: I42e5b5d55eeddd62b0ffb002d35d07b664c91861
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
9 years agoFix bugs from first run 72/17672/3
Vaclav Demcak [Thu, 2 Apr 2015 19:57:07 +0000 (21:57 +0200)]
Fix bugs from first run

* fix NPE
* fix TableFeatures

Change-Id: I7e48965125346030ea535546863651f8a7f4e4d8
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoprocessing multipart data in statistics context 69/17669/1
Martin Bobak [Thu, 2 Apr 2015 18:34:15 +0000 (20:34 +0200)]
processing multipart data in statistics context

Change-Id: I326d765eb4cc1c914fdbf57332a3b63347f1d89a
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoadded purpose multipart message translator 68/17668/1
Martin Bobak [Thu, 2 Apr 2015 16:34:29 +0000 (18:34 +0200)]
added purpose multipart message translator

- this class is created as deprecated since it has to be replaced
  by single translators. No time for that right now.

Change-Id: I3bb30f0c68f8f60cb41bf542ab0cf368607307b0
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agostatistics context implements dedicated services 61/17661/3
Martin Bobak [Thu, 2 Apr 2015 16:17:14 +0000 (18:17 +0200)]
statistics context implements dedicated services

Change-Id: I4e018b13d1240fc78179ae606782bdc90994ed5b
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agostatistics context implements statistic services calls 60/17660/3
Vaclav Demcak [Thu, 2 Apr 2015 18:10:53 +0000 (20:10 +0200)]
statistics context implements statistic services calls

Change-Id: Ifcda7a4e41369cbe0077e36f80354ceb339a6e13
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoadded event handlers registration to OFPProvider 59/17659/3
Vaclav Demcak [Thu, 2 Apr 2015 17:42:15 +0000 (19:42 +0200)]
added event handlers registration to OFPProvider

Change-Id: Ic2548af5cad969348ddd48bfd8401d9a1e96f1d7
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agostatistics manager initial commit 58/17658/3
Vaclav Demcak [Thu, 2 Apr 2015 17:40:00 +0000 (19:40 +0200)]
statistics manager initial commit

Change-Id: Ie032cb86c271e80684053cf8e192902fdf245d9a
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoadded switch connection providers starting 34/17634/3
Vaclav Demcak [Thu, 2 Apr 2015 17:04:23 +0000 (19:04 +0200)]
added switch connection providers starting

 - involved netty startup upon sessionInitialized
 - small fixes

Change-Id: I6b03d5fe4d956619f414d77227c163159b611611
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoMerge "Time scheduler for transaction submit in DeviceContextImpl"
michal rehak [Thu, 2 Apr 2015 17:22:18 +0000 (17:22 +0000)]
Merge "Time scheduler for transaction submit in DeviceContextImpl"

9 years agoTime scheduler for transaction submit in DeviceContextImpl 54/17654/2
Vaclav Demcak [Thu, 2 Apr 2015 15:25:16 +0000 (17:25 +0200)]
Time scheduler for transaction submit in DeviceContextImpl

Note: TransactionManager could submit transaction after specified
nr. of write action but we are missing a time scheduler for "submit"
after some time scenario. So we add a HashedWheelTimer for fix this
scenario.

* HashedWheelTimer implementation

Change-Id: If937e8700a8e83bc3d5ddac87975f14df46db122
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoextended SatisticsManager API 57/17657/2
Martin Bobak [Thu, 2 Apr 2015 10:02:13 +0000 (12:02 +0200)]
extended SatisticsManager API

Change-Id: If34bf8887209882d5a9c26de3fc0a243ee4593ec
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoWiring DeviceManagerImpl and RpcManager together 27/17627/1
Vaclav Demcak [Thu, 2 Apr 2015 12:33:02 +0000 (14:33 +0200)]
Wiring DeviceManagerImpl and RpcManager together

Node: We wana to have only one instance of RpcManager
and it has to be an input param. for DeviceManagerImpl.

Change-Id: I347d5133e81efae6610444eaec3bb062548df1d4
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoXidGenerator hidden inside DeviceContext 01/17601/3
Vaclav Demcak [Thu, 2 Apr 2015 12:18:06 +0000 (14:18 +0200)]
XidGenerator hidden inside DeviceContext

Change-Id: I2a7af338bd889065fef9b8940d04163ad8fe7aa0
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoDeviceTransactionChainManager 09/17609/4
Vaclav Demcak [Thu, 2 Apr 2015 11:45:45 +0000 (13:45 +0200)]
DeviceTransactionChainManager

Note: DeviceTransactionChainManager is a package protected class
for controlling DS WriteTransaction life cycle. It implements
TransactionChainListener and provides sync methods for write
DataObject to DS (wrapper of WriteTransaction.put method) and
submit transaction (wrapper of WriteTransaction.submit method)

* DeviceTransactionChainManager
* change DeviceContext
* change DeviceManager

TODOs:
* Test suite

Change-Id: I6942c6f590f6c311e9acc50debfcb6c6f1c95d21
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoDevideManagerImpl 08/17608/2
Vaclav Demcak [Thu, 2 Apr 2015 09:27:16 +0000 (11:27 +0200)]
DevideManagerImpl

* add ProviderContext to DeviceManager constructor + fix referenced code
* implement DeviceManager#deviceConnected
* aug TableFeatures

TODO: add test suite

Change-Id: I736b3b26c3aa1f685a27bd226a6d67d6bffa8b8a
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoNodeStaticReplyTranslatorUtil 07/17607/2
Vaclav Demcak [Thu, 2 Apr 2015 09:26:46 +0000 (11:26 +0200)]
NodeStaticReplyTranslatorUtil

Note: Util translator class populate MD-SAL inventory models from
OF java MultipartReply models. All methods are used in post handshake
process only. So we are calling it Static.

* NodeStaticREplyTranslatorUtil
* TODO test class

Change-Id: I20f155783ca11c5e444a863f2ff5ff6d767b248b
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoMultiMsgCollector - add register method for xid and future 57/17557/3
Vaclav Demcak [Wed, 1 Apr 2015 15:29:28 +0000 (17:29 +0200)]
MultiMsgCollector - add register method for xid and future

Note: we are missing method for statistics which are able to
add exist future to cache with xid key.

Change-Id: I4fdff80a1c9d0881db0dddda70a0903f085bc387
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoNodeConnectorTranslatorUtil 20/17520/3
Vaclav Demcak [Wed, 1 Apr 2015 08:26:10 +0000 (10:26 +0200)]
NodeConnectorTranslatorUtil

Note: we need direct translation from OFJava models to
Invenotry models from PhyPort to FlowCapableNodeConnector.

* NodeConnectorTranslatorUtil
* NodeConnectorTranslatorUtilTest

Change-Id: Ibdd9293bd473b280aabdd4201aec65673ec0fa19
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoMerge "Implementation of PacketProcessingService"
michal rehak [Thu, 2 Apr 2015 11:07:29 +0000 (11:07 +0000)]
Merge "Implementation of PacketProcessingService"

9 years agoMerge "Change type parameter from <T extends DataObject> to <T>"
michal rehak [Thu, 2 Apr 2015 11:06:21 +0000 (11:06 +0000)]
Merge "Change type parameter from <T extends DataObject> to <T>"

9 years agoHandling async replies from device in DeviceCtx 95/17595/3
Timotej Kubas [Wed, 1 Apr 2015 17:05:59 +0000 (19:05 +0200)]
Handling async replies from device in DeviceCtx

- introduced simple test for PacketReceivedTranslator
- fixed asterix in inports

Change-Id: I172d7b2db82a552140e5fd3822d080df9cbb97f9
Signed-off-by: Timotej Kubas <tkubas@cisco.com>
9 years agoImplementation of PacketProcessingService 38/17438/2
Jozef Gloncak [Tue, 31 Mar 2015 11:51:41 +0000 (13:51 +0200)]
Implementation of PacketProcessingService

Change-Id: I3293e04e2a947cf3c62edb444d457f78aa6606bf
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoChange type parameter from <T extends DataObject> to <T> 37/17437/2
Jozef Gloncak [Tue, 31 Mar 2015 11:46:51 +0000 (13:46 +0200)]
Change type parameter from <T extends DataObject> to <T>

Every service handler is returning type which is subtype of
DataObject expect service PacketProcessingService which returns
Void.

Therefore <T extends DataObject> type parameter was changed to <T>.

Change-Id: I4ad4c37bfc09cf3d6e518ecbdcdfdb877a38f891
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoMerge "Adding ofplugin-config classifier to poms"
michal rehak [Thu, 2 Apr 2015 08:02:06 +0000 (08:02 +0000)]
Merge "Adding ofplugin-config classifier to poms"

9 years agoHandling async replies from device in DeviceCtx 71/17571/1
Timotej Kubas [Wed, 1 Apr 2015 17:05:59 +0000 (19:05 +0200)]
Handling async replies from device in DeviceCtx

Change-Id: I7afcfa9439a963cf29673d61762ea1e2d3669776
Signed-off-by: Timotej Kubas <tkubas@cisco.com>
9 years agoChanged methods in DeviceContext, created DeviceReplyProcessor interface 28/17328/3
Timotej Kubas [Fri, 27 Mar 2015 09:26:53 +0000 (10:26 +0100)]
Changed methods in DeviceContext, created DeviceReplyProcessor interface

- changed methods in DeviceContext
- .processReply methods excluded into DeviceReplyProcessor interface
- both interfaces implemented in DeviceContextImpl
- added tests

Change-Id: I7a07d94c6c018feef562f5c7f4274871b2a28c69
Signed-off-by: Timotej Kubas <tkubas@cisco.com>
9 years agoAdding ofplugin-config classifier to poms 53/17553/1
Jozef Gloncak [Wed, 1 Apr 2015 14:57:09 +0000 (16:57 +0200)]
Adding ofplugin-config classifier to poms

Change-Id: I1818bf337d8c70d85a728fb0f3380636aea8c2d8
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agostatistics related services moved to separate package 51/17551/1
Martin Bobak [Wed, 1 Apr 2015 14:26:57 +0000 (16:26 +0200)]
statistics related services moved to separate package

- statistics related services are not exposed for MD-SAl

Change-Id: Id4c94fea6bad7d68ac095944f0d836e8fc2329b2
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoCommonService exposes more methods and parameters 49/17549/1
Martin Bobak [Wed, 1 Apr 2015 14:17:07 +0000 (16:17 +0200)]
CommonService exposes more methods and parameters

Change-Id: I4aefe586b295b762547f3f754f541f533fac23a0
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoDeviceContextReadyHandler propagates requst ctx and device ctx 48/17548/2
Martin Bobak [Wed, 1 Apr 2015 13:50:09 +0000 (15:50 +0200)]
DeviceContextReadyHandler propagates requst ctx and device ctx

Change-Id: I542b60a0b9de37249a2fdffdf01f05ceaeb3e264
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoDataCrate becomes public 47/17547/1
Martin Bobak [Wed, 1 Apr 2015 13:54:08 +0000 (15:54 +0200)]
DataCrate becomes public

Change-Id: Ic414f6db60db32423eb0d34b60cdce3c231fcbbe
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoRpcContext extends RequestContextStack 46/17546/1
Martin Bobak [Wed, 1 Apr 2015 12:22:50 +0000 (14:22 +0200)]
RpcContext extends RequestContextStack

Change-Id: Ifa8ec430bc05ade99d0e88b149040526e06687d7
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoremoving request context from a stack extracted to separate interface 45/17545/1
Martin Bobak [Wed, 1 Apr 2015 12:19:30 +0000 (14:19 +0200)]
removing request context from a stack extracted to separate interface

Change-Id: Ifafb333f4385d1bb3bb0b5b213e32de63aaa70f0
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoDeviceContext API cleanup 92/17492/2
Martin Bobak [Tue, 31 Mar 2015 19:02:34 +0000 (21:02 +0200)]
DeviceContext API cleanup

- removed comments
- removed method sendRequest()

Change-Id: I9b2c9ce5c087066663ee293afdafbbec23b9fd91
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years ago CommonService publishes its methods and properties 44/17544/1
Martin Bobak [Wed, 1 Apr 2015 13:51:52 +0000 (15:51 +0200)]
 CommonService publishes its methods and properties

Change-Id: I89d6f287e90d5c71e2ca4a78cc5c4b605451b9fa
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoadded feature odl-openflowplugin-new-southbound 95/17495/2
Martin Bobak [Mon, 30 Mar 2015 09:39:39 +0000 (11:39 +0200)]
added feature odl-openflowplugin-new-southbound

- rebased

Change-Id: I68ba2436525f0a46365c6e57326b77bef83f4992
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoapi from impl separation : created openflow-provider.yang in API 55/17455/5
Martin Bobak [Tue, 31 Mar 2015 13:12:25 +0000 (15:12 +0200)]
api from impl separation : created openflow-provider.yang in API

Change-Id: Ifa91422c8857ff531530195cc5ce60a31140f824
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoadded missing dependency in artifacts 97/17497/1
Martin Bobak [Tue, 31 Mar 2015 19:45:28 +0000 (21:45 +0200)]
added missing dependency in artifacts

Change-Id: I29bf9ff404985052121547594780e436c0bf09ed
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoFix merge job not working 82/17482/1
Robert Varga [Tue, 31 Mar 2015 17:18:54 +0000 (19:18 +0200)]
Fix merge job not working

As it turns out while moving out the parent pom contents I failed to
mention parent in the aggregator, which meant that the reactor was not
properly resolved locally.

Change-Id: Iffd390020cae2c9b0e2f8106edb856c5745b4550
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoDo not mention enunciate 10/17410/2
Robert Varga [Tue, 31 Mar 2015 09:22:54 +0000 (11:22 +0200)]
Do not mention enunciate

Enunciate is incompatible with Java 8 and is not used anywhere in this
project. Remove its mention in m2e mapping.

Change-Id: Ieb1c78563930088a5d072cbd84c43997e1327700
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoMove openflowplugin-parent 40/17340/5
Robert Varga [Mon, 30 Mar 2015 12:43:40 +0000 (14:43 +0200)]
Move openflowplugin-parent

Parent should be in a subdirectory, so we have a top-level aggregator.

Change-Id: I8b82b585acd0646d23904125b95d743b323aa8d7
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoStart openflowplugin-artifacts 34/17334/6
Robert Varga [Mon, 30 Mar 2015 11:37:36 +0000 (13:37 +0200)]
Start openflowplugin-artifacts

Inter-project dependencies are better tracked through a single artifact.
All our upstream projects already define one, so let's follow their
lead.

Change-Id: Iead4c5653bab895a5b0b404f24fffb01975f44f2
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoRefactor dependency management to import upstream artifacts 33/17333/7
Robert Varga [Mon, 30 Mar 2015 11:19:10 +0000 (13:19 +0200)]
Refactor dependency management to import upstream artifacts

Upstream projects are exposing appropriate dependencyManagement section
in $project-artifacts. Import them to simplify dependency declarations.

Change-Id: Iec4af832e22857a0147c08c9deda3830351d44b5
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoUnify property definitions 32/17332/5
Robert Varga [Mon, 30 Mar 2015 10:04:53 +0000 (12:04 +0200)]
Unify property definitions

Change-Id: I6d9da75cd6903c8695d996c6178025394388e625
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoFix Jdk8 compatibility 93/17293/4
Robert Varga [Sat, 28 Mar 2015 17:48:33 +0000 (18:48 +0100)]
Fix Jdk8 compatibility

JDK8 has stricter javadoc rules, make sure we do not fail on them.

Change-Id: I13ae2d0cc750faf66dc4f0c41a7982f9e9aae4cb
Signed-off-by: Robert Varga <rovarga@cisco.com>
9 years agoMerge "unifying statistics manager api packages"
michal rehak [Tue, 31 Mar 2015 13:11:53 +0000 (13:11 +0000)]
Merge "unifying statistics manager api packages"

9 years agoRevert "PostHandshakeNodeProducer help class" 36/17436/2
michal rehak [Tue, 31 Mar 2015 11:57:27 +0000 (11:57 +0000)]
Revert "PostHandshakeNodeProducer help class"

According to author - this change needs to get reworked;

This reverts commit a29553293e059ea656ec0bb3339d6e261ecf081b.

Change-Id: I686c4dbddec9f30ce61d23104a2ff292a5bd14bb
Signed-off-by: Michal Rehak <mirehak@cisco.com>
9 years agoSetting xid to request context in all services. 48/17348/2
Jozef Gloncak [Mon, 30 Mar 2015 13:59:12 +0000 (15:59 +0200)]
Setting xid to request context in all services.

All of the services currently set request context xid value to
xid which is generated in each service.

Change-Id: I74935bafc4c5008619fceb3f2fbcc7160debf744
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoFlowService - standalone request context for multiflow input 35/17335/2
Jozef Gloncak [Mon, 30 Mar 2015 12:13:44 +0000 (14:13 +0200)]
FlowService - standalone request context for multiflow input

If input flow is devided to more (2 maybe more) flows then result
Future isn't chained but for every flow is created standalone
request context with unique Xid. Methods addFlow and updateFlow
return future object which will contains global result of all
partial futures (if one fail then global fail, if all success then
global success)

Change-Id: I0406888a0568d6ba3905113cde69e2a96aa78141
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoWrap service handlers to method handleServiceCall. 31/17331/2
Jozef Gloncak [Mon, 30 Mar 2015 09:23:58 +0000 (11:23 +0200)]
Wrap service handlers to method handleServiceCall.

Handling code in service handlers (expect PacketProcessingServiceImpl) were wrapped
to handleServiceCall() method.
Method handleServiceCall() was moved to CommonService abstract class

Change-Id: I027f1b0658b4805366748377dfd43ca9c102df44
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoHooking of Request context from services to device context 48/17248/3
Jozef Gloncak [Fri, 27 Mar 2015 15:18:07 +0000 (16:18 +0100)]
Hooking of Request context from services to device context

Change-Id: If19db05a23f3c7141cf4a044d1273fad0c25ca2b
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoAdded Xid and waitTimeout getter and setter. 40/17240/3
Jozef Gloncak [Fri, 27 Mar 2015 14:27:16 +0000 (15:27 +0100)]
Added Xid and waitTimeout getter and setter.

Getter and setter methods for Xid and waitTimout fields
were added to interface RequestContext .

Change-Id: I85cc92f6729aac37b3a2e1cba51a67e08f3a2026
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoHandle exceptional state while closing RequestContext. 39/17239/3
Jozef Gloncak [Fri, 27 Mar 2015 14:17:42 +0000 (15:17 +0100)]
Handle exceptional state while closing RequestContext.

Current close() method is wrong one. Correct one if from AutoClosable
interface and raises Exception.

Change-Id: I7fe8d65c3ac5c7ab036cee1da642c8e3c7672162
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoDeviceContext constructor and some final property exposed methods 11/17311/3
Vaclav Demcak [Tue, 31 Mar 2015 09:43:32 +0000 (11:43 +0200)]
DeviceContext constructor and some final property exposed methods

Note: DeviceContext has to implement TransactionChainListener
to catch async Transaction DataStore write process. So we've
changed a DeviceContext interface for providing WriteTransaction
(tx for putting new data to DataStore) and fresh ReadTransaction
which provide a possible different DataStore snapshot, but what
could make a written transaction as fast as is possible.

* DeviceContextImpl constructor, Transaction get/set methods;
* DeviceContextImplTest - add/fix relevant tests
* DeviceManager - commented out all out of date code

Change-Id: Ida5ce3d47aeffcb6dd2f987f26d62edcc696b2e7
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoMerge "DeviceState implementation"
michal rehak [Tue, 31 Mar 2015 09:25:45 +0000 (09:25 +0000)]
Merge "DeviceState implementation"

9 years agoMerge "PostHandshakeNodeProducer help class"
michal rehak [Tue, 31 Mar 2015 09:23:06 +0000 (09:23 +0000)]
Merge "PostHandshakeNodeProducer help class"

9 years agoMerge "MultipartRequestInputFactory"
michal rehak [Tue, 31 Mar 2015 08:41:21 +0000 (08:41 +0000)]
Merge "MultipartRequestInputFactory"

9 years agoMerge "MultiMsgCollector moving package"
michal rehak [Tue, 31 Mar 2015 08:35:40 +0000 (08:35 +0000)]
Merge "MultiMsgCollector moving package"

9 years agounifying statistics manager api packages 53/17353/1
Martin Bobak [Mon, 30 Mar 2015 14:41:04 +0000 (16:41 +0200)]
unifying statistics manager api packages

Change-Id: I29b495fd26c45ce50e73b96c9d23380eeb09f4c1
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoDeviceState implementation 08/17308/2
Martin Bobak [Sun, 29 Mar 2015 03:18:44 +0000 (05:18 +0200)]
DeviceState implementation

Note: DeviceState is a basic object which we need to populate
from ConnectionContext and it has to be a input object for
DeviceContext. So this implementation has to be before
DeviceContext implementation in the chain order.

* DeviceState interface - fix getNextXid and getPortsBandwidth methods
* impl DeviceStateImpl
* impl test suite in DeviceStateImplTest

Change-Id: Iadf19754c3373b25a6a320c676118d13338a0097
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoPostHandshakeNodeProducer help class 92/17292/2
Vaclav Demcak [Sat, 28 Mar 2015 17:43:10 +0000 (18:43 +0100)]
PostHandshakeNodeProducer help class

Note: PostHandshake process has to populate complex static information about
new FlowCapableNode before add DataStore process. But whole postHandsake
process contains a lot of functionality which is related only this short
time window so we put it to one class together. This new helper has to be
forgotten after succesfull add to DataStore process and it doesn't need
to be a part of DeviceManager code.

* settableFuture<Node> produce new Node with all device info and features
  * collecting Devide description
  * collecting Device meterFutures
  * collecting Device grupFutures
  * collecting Device tableFutures (TODO : add DataStore model and finish impl)

(Tests and possible fixies for this class will be
 a part of DeviceManager#deviceConnected method implemenation and its test suite)

Change-Id: I84fdd3004f211590d5066711518490cd134d6573
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoFixed (de)serialization issue 17/17117/11
Michal Rehak [Fri, 27 Mar 2015 18:43:14 +0000 (19:43 +0100)]
Fixed (de)serialization issue

 - fixed: TunnelIdValue -> TunIdValue (model misuse)
 - fixed: removed masks from setField (SetDlSrc, SetDlDst)

Change-Id: I96e4f9e3eda0cb26b455f68c9453441e07133c3a
Signed-off-by: Michal Polkorab <michal.polkorab@pantheon.sk>
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Signed-off-by: Michal Rehak <mirehak@cisco.com>
9 years agoMultipartRequestInputFactory 88/17288/2
Vaclav Demcak [Sat, 28 Mar 2015 17:12:41 +0000 (18:12 +0100)]
MultipartRequestInputFactory

Note: Factory class produces MultipartRequestInput object
for ConnectinAdapter.multipartRequest method. Class should
help a newbie to understand relationship between MultipartType
and set MultipartRequestBody children.

* factory class with an input validation
* test suite for factory MultipartRequestInput

Change-Id: Id728fa3e6f15cf8c83442a23b0b118fd35f2c5ee
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoMultiMsgCollector moving package 86/17286/1
Vaclav Demcak [Fri, 27 Mar 2015 14:39:27 +0000 (15:39 +0100)]
MultiMsgCollector moving package

Note: MultiMsgCollector is logicaly part of ConnectionContext no DeviceContext,
so we move all implemented classes and interface to correct package.

* change package for MultiMsgCollector MultiMsgCollectorImpl
MultiMsgCollectorImplTest
* add validation for same MultipartType for same XID
* add MuliMsgCollector to ConnectionContext + implementation
delegated methods
* implement onMultipartReplyMessages method from
OpenflowProtocolListenerImpl + test

Change-Id: I3caeb83c46c9a107c8e36ce7630cee4e75fca815
Signed-off-by: Timotej Kubas <tkubas@cisco.com>
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoMerge "Feature/Bug#2774: Decrease verbosity of flow hash duplicate."
michal rehak [Fri, 27 Mar 2015 14:05:41 +0000 (14:05 +0000)]
Merge "Feature/Bug#2774: Decrease verbosity of flow hash duplicate."

9 years agoMerge "added yang file describing openflowplugin-impl as CoSS module"
michal rehak [Fri, 27 Mar 2015 13:50:19 +0000 (13:50 +0000)]
Merge "added yang file describing openflowplugin-impl as CoSS module"

9 years agoFeature/Bug#2774: Decrease verbosity of flow hash duplicate. 40/16740/8
Keith Burns (alagalah) [Wed, 18 Mar 2015 04:37:04 +0000 (21:37 -0700)]
Feature/Bug#2774: Decrease verbosity of flow hash duplicate.

Patch set 3: Add more info on code path when debug is enabled.

Change-Id: Ifd722e7e427c1ebca53636d371dcf6187911b95b
Signed-off-by: Keith Burns (alagalah) <alagalah@gmail.com>
9 years agoMerge "separation of api and impl - crated openflowplugin types yang"
michal rehak [Fri, 27 Mar 2015 13:18:53 +0000 (13:18 +0000)]
Merge "separation of api and impl - crated openflowplugin types yang"

9 years agoadded yang file describing openflowplugin-impl as CoSS module 30/17230/1
Martin Bobak [Fri, 27 Mar 2015 11:29:44 +0000 (12:29 +0100)]
added yang file describing openflowplugin-impl as CoSS module

Change-Id: I0ed0158e4815516e9255301c89f9bf31f460e82a
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoseparation of api and impl - crated openflowplugin types yang 29/17229/1
Martin Bobak [Fri, 27 Mar 2015 11:55:59 +0000 (12:55 +0100)]
separation of api and impl - crated openflowplugin types yang

Change-Id: Iebcd7659a9d76d53c2dada234d0f8d466da87281
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoImplemented DeviceContext.hookRequest and DeviceContext.processReply 24/17224/1
Timotej Kubas [Fri, 27 Mar 2015 09:26:53 +0000 (10:26 +0100)]
Implemented DeviceContext.hookRequest and DeviceContext.processReply

Change-Id: I7f440dd8623f051e071e923636c7d3d3835d9f14
Signed-off-by: Timotej Kubas <tkubas@cisco.com>
9 years agoAdded type parameteris. 15/17215/2
Jozef Gloncak [Fri, 27 Mar 2015 09:27:37 +0000 (10:27 +0100)]
Added type parameteris.

Class type parameter was added to all classes in this change.

Change-Id: I7cd27edef23b7b52bcc2d32d42f7feac3e7a9b4c
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoStatistics services implementation and cleanup 14/17214/1
Martin Bobak [Fri, 27 Mar 2015 08:36:32 +0000 (09:36 +0100)]
Statistics services implementation and cleanup

Change-Id: I550fb3666d021283c283398c07a95d12330c6eb3
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoImplementation of services Sal*Service and PacketProcessing 67/17167/2
Jozef Gloncak [Thu, 26 Mar 2015 15:10:02 +0000 (16:10 +0100)]
Implementation of services Sal*Service and PacketProcessing

Implementation of:
- SalFlowService
- SalGroupService
- SalMeterService
- SalPortService
- SalTableService
- PacketProcessingService

Picking common functionality to ServiceCallProcessingUtil.

Change-Id: I071280e2d5cab7ea201c8ea829f89ca4a300b178
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
9 years agoimplementation of GroupStatisticsService 81/17181/1
Martin Bobak [Thu, 26 Mar 2015 15:38:46 +0000 (16:38 +0100)]
implementation of GroupStatisticsService

Change-Id: Idb7ce9a185ae88a3216ead053d487034d7ed541b
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoimplementation of FlowStatisticsService and FlowTableStatisticsService 63/17163/2
Martin Bobak [Thu, 26 Mar 2015 14:26:51 +0000 (15:26 +0100)]
implementation of FlowStatisticsService and FlowTableStatisticsService

- introduced RequestInputUtils

Change-Id: I71490ef9e65039b0c8d3d41357af7227d155508e
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoimplementation of FlowStatisticsServiceImpl 58/17158/3
Martin Bobak [Thu, 26 Mar 2015 14:07:26 +0000 (15:07 +0100)]
implementation of FlowStatisticsServiceImpl

Change-Id: Icde601bd22d662de777304b3feba5177e5268d3b
Signed-off-by: Martin Bobak <mbobak@cisco.com>