michal rehak [Fri, 3 Apr 2015 13:52:50 +0000 (13:52 +0000)]
Merge "Bug 2945: Fix read failures in StatAbstractListenCommit"
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>
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>
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>
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>
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>
michal rehak [Fri, 3 Apr 2015 10:29:55 +0000 (10:29 +0000)]
Merge "introduced TraslatorKeyFactory for registering translators in OFPProvider"
michal rehak [Fri, 3 Apr 2015 10:28:56 +0000 (10:28 +0000)]
Merge "Wiring message processing to deviceContext"
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
michal rehak [Thu, 2 Apr 2015 17:22:18 +0000 (17:22 +0000)]
Merge "Time scheduler for transaction submit in DeviceContextImpl"
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>
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>
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>
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>
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>
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>
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>
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>
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>
michal rehak [Thu, 2 Apr 2015 11:07:29 +0000 (11:07 +0000)]
Merge "Implementation of PacketProcessingService"
michal rehak [Thu, 2 Apr 2015 11:06:21 +0000 (11:06 +0000)]
Merge "Change type parameter from <T extends DataObject> to <T>"
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>
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>
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>
michal rehak [Thu, 2 Apr 2015 08:02:06 +0000 (08:02 +0000)]
Merge "Adding ofplugin-config classifier to poms"
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
michal rehak [Tue, 31 Mar 2015 13:11:53 +0000 (13:11 +0000)]
Merge "unifying statistics manager api packages"
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>
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>
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>
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>
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>
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>
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>
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>
michal rehak [Tue, 31 Mar 2015 09:25:45 +0000 (09:25 +0000)]
Merge "DeviceState implementation"
michal rehak [Tue, 31 Mar 2015 09:23:06 +0000 (09:23 +0000)]
Merge "PostHandshakeNodeProducer help class"
michal rehak [Tue, 31 Mar 2015 08:41:21 +0000 (08:41 +0000)]
Merge "MultipartRequestInputFactory"
michal rehak [Tue, 31 Mar 2015 08:35:40 +0000 (08:35 +0000)]
Merge "MultiMsgCollector moving package"
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>
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>
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>
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>
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>
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>
michal rehak [Fri, 27 Mar 2015 14:05:41 +0000 (14:05 +0000)]
Merge "Feature/Bug#2774: Decrease verbosity of flow hash duplicate."
michal rehak [Fri, 27 Mar 2015 13:50:19 +0000 (13:50 +0000)]
Merge "added yang file describing openflowplugin-impl as CoSS module"
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>
michal rehak [Fri, 27 Mar 2015 13:18:53 +0000 (13:18 +0000)]
Merge "separation of api and impl - crated openflowplugin types yang"
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>
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>
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>
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>
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>
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>
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>
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>
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>
Martin Bobak [Thu, 26 Mar 2015 09:03:21 +0000 (10:03 +0100)]
implementation of NodeConfigService
- introduced RpcResultConvertor for converting OFJava future to requestContext's future
- RpcResultConvertor used in SalFlowServiceImpl
Change-Id: I11dc0e6f15920dab3323128749a877532a0486f8
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Martin Bobak [Thu, 26 Mar 2015 09:14:58 +0000 (10:14 +0100)]
auxiliary connections stored in DeviceContext
Change-Id: I41ccc99e797cb0419d9d4655998573478af79551
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Martin Bobak [Wed, 25 Mar 2015 10:19:09 +0000 (11:19 +0100)]
SalFlowServiceImpl - implementing methods
Contains pattern implementation (service call + handling of exceptional states)
for all ramaining services.
Change-Id: Ic7a4b16bd79347e63b742ea7ec393f36ba01a6e6
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Martin Bobak [Wed, 25 Mar 2015 16:01:29 +0000 (17:01 +0100)]
Implementation of services
Change-Id: I408a6360ffd31d2b04682ee1bc47c60a58f1df93
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Martin Bobak [Thu, 26 Mar 2015 09:01:25 +0000 (10:01 +0100)]
Static methods on XidGenerator changed to non-static
Change-Id: I9d626793db7158a88eb287f3a180422271679167
Signed-off-by: Timotej Kubas <tkubas@cisco.com>
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Martin Bobak [Wed, 25 Mar 2015 10:37:24 +0000 (11:37 +0100)]
creation of settable future extracted to separate interface
- creation of settable future was extracted from RequestContext
to separate interface RequestFutureContext
Change-Id: I9ff7f7a074f33f8e8863f63362c933ec47dac89d
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Martin Bobak [Tue, 24 Mar 2015 12:03:50 +0000 (13:03 +0100)]
RpcContext and RequestContext implementation
- implementation used in SalFlowServiceImpl
Change-Id: I3b000526d9a1102464ca5ab8b81af00e5f98f2bb
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Martin Bobak [Tue, 24 Mar 2015 12:25:06 +0000 (13:25 +0100)]
XID holds only long value doesn't generate new values
Change-Id: Ia1ee8c8510840f1fdf33b7d52ec0c38147a70c40
Signed-off-by: Martin Bobak <mbobak@cisco.com>
Martin Bobak [Tue, 24 Mar 2015 13:57:58 +0000 (14:57 +0100)]
API changes in RequestCtx and DeviceCtx
Change-Id: Id671b7782cdc2133b3c108416fa8d7def03d3670
Signed-off-by: Martin Bobak <mbobak@cisco.com>