openflowplugin.git
9 years agostatistics context and statistics manager simplified 61/17761/1
Martin Bobak [Sat, 4 Apr 2015 13:32:14 +0000 (15:32 +0200)]
statistics context and statistics manager simplified

Change-Id: I1126c194a78a82e0c2f0700a3fd79e3f589d31ff
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agodevice context provides attached any messege type listener 60/17760/3
Martin Bobak [Sat, 4 Apr 2015 13:25:07 +0000 (15:25 +0200)]
device context provides attached any messege type listener

Change-Id: I2bbb01ae76f8a8e01528131c7d117710c22ea469
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoOpenflowProtocolListenerFullImpl implements AnyMessageTypeListener 59/17759/1
Martin Bobak [Sat, 4 Apr 2015 13:10:52 +0000 (15:10 +0200)]
OpenflowProtocolListenerFullImpl implements AnyMessageTypeListener

Change-Id: I79461102311eee02d5a9e28d883ce85c14e0939e
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agounifiying interface for multipart message collector and ofp protocol listener 58/17758/1
Martin Bobak [Sat, 4 Apr 2015 13:10:18 +0000 (15:10 +0200)]
unifiying interface for multipart message collector and ofp protocol listener

Change-Id: Ida1263e2d191345fed3a2e6aeff30d04d67fcd33
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoadded logging for statistics gathering service 57/17757/1
Martin Bobak [Sat, 4 Apr 2015 13:02:20 +0000 (15:02 +0200)]
added logging for statistics gathering service

Change-Id: Ie9936601df192a784453edd1309e35f1d755c511
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agostatistics services merged into one class 56/17756/1
Martin Bobak [Sat, 4 Apr 2015 11:42:22 +0000 (13:42 +0200)]
statistics services merged into one class

Change-Id: I2b708cffc908240139af44b9d52c2ad2cd59bbab
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoremoved oneliners for mult.part req. inputs 55/17755/1
Martin Bobak [Sat, 4 Apr 2015 09:54:26 +0000 (11:54 +0200)]
removed oneliners for mult.part req. inputs

Change-Id: I4c1f7efb3a0b892ee30902c81465d0f571312fb5
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agostatistics gathering utils - remove unused method 54/17754/1
Martin Bobak [Sat, 4 Apr 2015 09:41:41 +0000 (11:41 +0200)]
statistics gathering utils - remove unused method

Change-Id: I5631ab49d7637af4ec9235055c30707d53f9ffee
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoFixed exitpoints of guava cache with expiration 53/17753/1
Martin Bobak [Fri, 3 Apr 2015 20:28:03 +0000 (22:28 +0200)]
Fixed exitpoints of guava cache with expiration

Change-Id: I2f47e281109cf05ee30c82423fe696a8f2241de3

Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agowrite node to DS when connected 33/17733/4
Martin Bobak [Fri, 3 Apr 2015 20:17:43 +0000 (22:17 +0200)]
write node to DS when connected

Change-Id: I6681393442968150ac5e743b8beac949f2cc246a
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoOFJResult2RequestCtxFuture uses listenable future 37/17737/3
Martin Bobak [Fri, 3 Apr 2015 20:53:01 +0000 (22:53 +0200)]
OFJResult2RequestCtxFuture uses listenable future

Change-Id: Ia539a04c11901e8eb046bd929459d6b3a388075a
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoMerge "Bug 2913: fix for GROUPMOD issue"
Abhijit Kumbhare [Sat, 4 Apr 2015 00:21:38 +0000 (00:21 +0000)]
Merge "Bug 2913: fix for GROUPMOD issue"

9 years agoBug 2913: fix for GROUPMOD issue 40/17740/2
Ed Warnicke [Fri, 3 Apr 2015 23:21:44 +0000 (19:21 -0400)]
Bug 2913: fix for GROUPMOD issue

As it turns out, this was really a bug in the nicera extension for
tun-ipv4-dst and tun-ipv4-src.

Change-Id: I30d25395e960c3696dd3e10f59fd2d7240ee884c
Signed-off-by: Ed Warnicke <eaw@cisco.com>
9 years agostatistics services using MultipartRequestInputFactory for generating inputs 29/17729/3
Martin Bobak [Fri, 3 Apr 2015 18:32:41 +0000 (20:32 +0200)]
statistics services using MultipartRequestInputFactory for generating inputs

Change-Id: I6bcd2a3fa5c552952356bd16ce8dedbfbe37b992
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoadded missing xid in requestcontext 28/17728/2
Martin Bobak [Fri, 3 Apr 2015 17:54:55 +0000 (19:54 +0200)]
added missing xid in requestcontext

Change-Id: Ia51cfcb752c7b708ee1e569a58c05f1b82faa999
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoMerge "Clean DeviceState"
michal rehak [Fri, 3 Apr 2015 18:31:47 +0000 (18:31 +0000)]
Merge "Clean DeviceState"

9 years agochanged way of RpcError logging in DeviceManagerImpl 24/17724/2
Martin Bobak [Fri, 3 Apr 2015 17:15:37 +0000 (19:15 +0200)]
changed way of RpcError logging in DeviceManagerImpl

Change-Id: I7ec0a546ed60fe18039930209ce31ffda976690f
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoimprovec loggin of xid variable not object 23/17723/2
Martin Bobak [Fri, 3 Apr 2015 17:09:11 +0000 (19:09 +0200)]
improvec loggin of xid variable not object

Change-Id: Ic82d1d6e9b85d868bd480ef4ededd83a38a24e51
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agostatistics manager services register multipart requests in mmcollector 22/17722/2
Martin Bobak [Fri, 3 Apr 2015 17:02:52 +0000 (19:02 +0200)]
statistics manager services register multipart requests in mmcollector

Change-Id: Id3f32351bf87b8c22ca8d3f97e73045ddd87f49d
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agopublic methods imlemented only in impl's extracted to parent interfaces 21/17721/2
Martin Bobak [Fri, 3 Apr 2015 16:56:32 +0000 (18:56 +0200)]
public methods imlemented only in impl's extracted to parent interfaces

Change-Id: I570e55418fc8ede1bda2c41ac3a9f313c069fca8
Signed-off-by: Martin Bobak <mbobak@cisco.com>
9 years agoClean DeviceState 26/17726/1
Vaclav Demcak [Fri, 3 Apr 2015 17:36:08 +0000 (19:36 +0200)]
Clean DeviceState

Note: DeviceState has contained Ports witch are avaliable
only for OF1.0. So we don't see any usable usecase for
holding any reference which are relevant of OF protocol verion.

Change-Id: Ia28046fc97024072451d3fd93658b8bcafbbc884
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoMerge "Add barrier processing"
michal rehak [Fri, 3 Apr 2015 17:14:59 +0000 (17:14 +0000)]
Merge "Add barrier processing"

9 years agoMerge "Logging non existent registration of request context"
michal rehak [Fri, 3 Apr 2015 17:02:12 +0000 (17:02 +0000)]
Merge "Logging non existent registration of request context"

9 years agoAdd barrier processing 19/17719/1
Vaclav Demcak [Fri, 3 Apr 2015 16:39:47 +0000 (18:39 +0200)]
Add barrier processing

Change-Id: I550fa47e5d3a2b6305b769330482b2ce5a681ecf
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>
9 years agoMerge "Rpc manager not needed to instantiate DeviceManager"
michal rehak [Fri, 3 Apr 2015 16:15:34 +0000 (16:15 +0000)]
Merge "Rpc manager not needed to instantiate DeviceManager"

9 years agoMerge "request context hookin java doc"
michal rehak [Fri, 3 Apr 2015 16:14:54 +0000 (16:14 +0000)]
Merge "request context hookin java doc"

9 years agoMerge "request context is hoooked to device context by OFJResult2RequestCtxFuture"
michal rehak [Fri, 3 Apr 2015 16:14:33 +0000 (16:14 +0000)]
Merge "request context is hoooked to device context by OFJResult2RequestCtxFuture"

9 years agoMerge "RpcResultConvertor renamed to OFJResult2RequestCtxFuture"
michal rehak [Fri, 3 Apr 2015 16:13:26 +0000 (16:13 +0000)]
Merge "RpcResultConvertor renamed to OFJResult2RequestCtxFuture"

9 years agoMerge "multipart messge collector doesn't create own future"
michal rehak [Fri, 3 Apr 2015 16:12:20 +0000 (16:12 +0000)]
Merge "multipart messge collector doesn't create own future"

9 years agoLogging non existent registration of request context 17/17717/1
Martin Bobak [Fri, 3 Apr 2015 16:02:01 +0000 (18:02 +0200)]
Logging non existent registration of request context

Change-Id: If2a027c7244301f22c642173c54915076a1b17db
Signed-off-by: Martin Bobak <mbobak@cisco.com>
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 agoBarrier init commit 10/17710/2
Vaclav Demcak [Fri, 3 Apr 2015 14:57:18 +0000 (16:57 +0200)]
Barrier init commit

* BarrierTaskBuilder - barrier msg self restarting builder.
* BarrierProcessor - TODO

Change-Id: I9fd41e488a2ced7bb44b2c43a6d1adbe7628fe14
Signed-off-by: Vaclav Demcak <vdemcak@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"