949 Commits

Author SHA1 Message Date
Madan Jampani
ac201955fa DistributedLockManger creates a locks table if one does not exist
Change-Id: Ifa766ad441f677a4071b68d8f6caa564cf320869
2014-11-18 10:36:23 -08:00
Yuta HIGUCHI
2fe6334c15 DatabaseService related fixes.
- Note: This patch does not fix the issue running as single node.

Change-Id: Iabfa548ca4e40e4ec5c9e76ae936300437e53d22
2014-11-17 21:33:38 -08:00
Toshio Koide
8e5e91e296 Update SimpleLinkResourceStore to obtain capacities from link annotations
Change-Id: I98f8959fdc00953c98a151ad7b0bfa1041b118d7
2014-11-17 20:22:30 -08:00
Yuta HIGUCHI
452071656a ClusterMessagingProtocolClient: less log for expected exception
Change-Id: Ifac94d2dc68144f126c9c6ab2cd4aedc712a10fe
2014-11-17 20:22:08 -08:00
Yuta HIGUCHI
8ba3ac05c2 MapDBLogTest: use Temp file
Change-Id: I7a6647ffa354913d3e6aa08de03f5a15e03753d7
2014-11-17 19:16:26 -08:00
Brian O'Connor
a8e7dd4b49 Adding DistributedIntentBatchQueue
Change-Id: I4ce3c2cb5a31ad8ace5d1d20830a49a869e63900
2014-11-17 17:28:37 -08:00
Ray Milkey
241b96accd Fix high priority findbugs reported issues
Fixed some code that was reporting findbugs errors

Implemented a suppression mechanism for findbugs
reported errors and a suppression file.

Change-Id: Ie8a2e84cc57ec6ddfa14d782ee89feb095b9dd59
2014-11-17 16:38:30 -08:00
Pavlin Radoslavov
20ded69934 Fix a bug inside DistributedLock.extendExpiration():
Return false (as per API) if we don't hold the lock.

Change-Id: Id3c314f6e374c92a73ce6f1aa4b6fbcef0a80697
2014-11-17 16:38:15 -08:00
Brian O'Connor
772852ac32 Some fixes for the optical app
Change-Id: Ib3e317ad080d822ac41b1cf113ba388a7ce78316
2014-11-17 16:07:43 -08:00
Yuta HIGUCHI
3b29b79e6d DatabaseManager: client initialization bug fix
Change-Id: I62afbc2847728e304f90c13f8af284be89e84ab7
2014-11-17 15:28:41 -08:00
Thomas Vachuska
912bdd5450 Adding configurability to the even accumulator for the topology provider.
Change-Id: I35ede9a62782dc6a2e55b8895aeec6ece8836960
2014-11-17 15:23:47 -08:00
Brian O'Connor
faaedf485d Changing log level from warn to debug in Stats Store.
Change-Id: I7651427d317813775a2c729682001fb888b45f1c
Note: Optical flows don't have stats.
2014-11-17 14:48:48 -08:00
Brian O'Connor
fa81eaef06 Refactored intent framework to deal with batches.
There is still work to be done, but for now, submit, withdraw and reroute are working.

Change-Id: Ib94cf8c4be03786cc070f402d1f296f5dfa6588b
2014-11-17 14:46:09 -08:00
Madan Jampani
a88d1f5943 1. Fixed a synchronization issue with database update processing and expiry tracking.
2. Fixed a synchronization issue with MapDBLog appendEntries method.
3. DatabaseClient now uses ProtocolClient to interact with Raft cluster.
4. Misc javdoc and logging improvements

Change-Id: I147eb5bf859cf9827df452d62ab415d643a00aa4
2014-11-17 13:27:27 -08:00
Yuta HIGUCHI
3524229a98 DistributedLinkResourceStore
Change-Id: Ia45c221946693906c12d64f20f25e30786a04224
2014-11-17 01:36:28 -08:00
Yuta HIGUCHI
b9d68669e3 DatabaseClient: Add timeout
- timeout + retry to listTable
- timeout to service API

Change-Id: I8b54dd24d380dcc9e8d44baf3bbf5e379ccca53b
2014-11-17 01:36:26 -08:00
Yuta HIGUCHI
39da97989d Wait for Leader to appear
- DatabaseClient: wait for Leader before DB access
- DatabaseManager: wait for Leader before activate

Change-Id: I5102e7cae1d33f49662bf452b1fba020173a51a0
2014-11-17 01:35:15 -08:00
Yuta HIGUCHI
0b69a82256 DatabaseStateMachine: lower log level
Change-Id: Ied0c18ab498bf499d3e54aa170097ed4304368cb
2014-11-17 01:01:01 -08:00
weibit
00c94f5533 update and get available link resource consindering existing linkAllocations
Change-Id: Iee93253d253ff38d23630a2c5ac9c0a14329d92f
2014-11-16 16:14:13 -08:00
Thomas Vachuska
112c703dc5 Fixing javadocs and adding missing package javadocs.
Also marked a few packages and classes as deprecated.

Change-Id: I8629ad001f218f92c35721daa3b7c0ebe0916c27
2014-11-16 11:05:14 -08:00
Thomas Vachuska
badb93f54b Fixing optical link state issues; a few still remain.
Change-Id: I126f89384adbe5272bdaf4eb0e3b456984768a98
2014-11-16 09:40:38 -08:00
Thomas Vachuska
e4cebafa19 Adding support for link state to GUI.
Change-Id: I6476cf04810f7bc7e88af629a36ce671b42748d0
2014-11-15 18:58:41 -08:00
Ray Milkey
62709fc623 Add in a findbugs suppression to see if it works
Change-Id: I4ca6b65046df35e6d773b515ae819fffb81c43ba

Remove test suppression of findbugs error

Change-Id: I277ac9f5ff20c83e0208cb9adadc12d5a13723d2
2014-11-15 15:03:43 -08:00
Thomas Vachuska
57126feac1 Sketching out what link-state addition would look like; quite easy until we get to the distributed store.
Added unit tests to provide durable-nondurable transitions.
FIxed issue where link could be accidentally activated.
Renamed parameter.

Change-Id: I8aa19a6583ec50dbf28769995f0a8ea9be9a4daa
2014-11-15 11:14:47 -08:00
Ray Milkey
97f8f101d9 Unit tests for DefaultTrafficTreatment
Change-Id: I68b0773b69d85c1d05d58b32c1dceaca73c0a5e1
2014-11-15 11:07:56 -08:00
Praseed Balakrishnan
8c67d17142 MPLS label selector and treatment
Change-Id: Id1fba1e04155e6d97de4c8fd95573641537f1b7a
2014-11-15 10:42:36 -08:00
Yuta HIGUCHI
2b75f1a46e ClusterMessagingProtocolClient: changed thread pool
Change-Id: Ibb37bd2c7c94067336152f19412523dc4cda9722
2014-11-14 18:39:09 -08:00
Yuta HIGUCHI
fd0db4869a DatabaseStateMachine: return value on conditional failure
Change-Id: I579652659ea7281013c341c6ea9df2003b90bcdd
2014-11-14 18:39:09 -08:00
Yuta HIGUCHI
841c0b623a Add getAll to DatabaseService
Change-Id: I5fb9d52244b005dfc22e7faaa68341be3c3f3725
2014-11-14 18:05:25 -08:00
Yuta HIGUCHI
6b38ee3533 Minor fixes
- Format string fix
- FlowRuleEventTest: minor bugfix
- HexString: accept null
- byte[] toString() format change

Change-Id: I9db419cfc211670cc2abd796a21396ba960e23a9
2014-11-14 18:04:38 -08:00
Thomas Vachuska
7c27ad7027 Added detection of traffic flowing using StatisticService.
Change-Id: I2044ec16fd722d953d0e2b2c955e4da2b1dab663
2014-11-14 16:20:18 -08:00
Ray Milkey
c5cd0d96c5 Findbugs fixes
Testing Sonar with a few findbugs fixes.  Suppressing a false
positive to see if it works.

Change-Id: I0cdf2921198787adc56c680840aa00bdd254269b
2014-11-14 15:39:25 -08:00
Yuta HIGUCHI
885868fc5b DistributedFlowRuleStore: synchronized -> Reader/Writer lock
fix for ONOS-195

Change-Id: I3e15104225878d1616fa790095695400bcc43697
2014-11-13 23:53:54 -08:00
Ray Milkey
afa00d2f47 Packet class unit tests
Added unit tests for DefaultInboundPacket, DefaultOutboundPacket,
and DefaultPacketContext.

Made DefaultInboundPacket and DefaultOutboundPacket proper immutable classes

Added equals() and hashCode() to DefaultOutboundPacket

Change-Id: Ibb1199a5282743ccaf0844c0b7ccfcc4cb13f52e
2014-11-13 19:36:28 -08:00
Toshio Koide
4b6562b5f8 Add annotation key definitions for bandwidth and optical waves.
Change-Id: Ia0e3b638cd0f756e427c4c0d6d75b4e2d65002fc
2014-11-13 19:08:22 -08:00
Sho SHIMIZU
cf6090b691 Follow the convention of javadoc used in the project
Insert a blank line between the brief desciption and paramter description.

Change-Id: Iad27f20aa862f84a4278624f0df75f98ab9e543f
2014-11-13 19:07:08 -08:00
Sho SHIMIZU
9e97826bb6 Remove type paramter bounds because Object is implicitly inherited
Change-Id: I7b933d924192d4b6bd079969cf4702d1c08f684f
2014-11-13 19:06:44 -08:00
Ray Milkey
3f9820fa75 FlowRule Event unit tests
Change-Id: I620e3f8d4a8bc7bd4f9af1b16403484edd43d9df
2014-11-13 15:55:38 -08:00
Yuta HIGUCHI
72669c4713 DeviceManager: lowering harmless log level
Change-Id: I0913b0c7b352d4a53a72ee7cc8a4781da722973c
2014-11-13 14:54:16 -08:00
Sho SHIMIZU
de8e6b5040 WIP: Fix ONOS-151 bug that raises exception when the same switch is designated
Now PointToPointIntentCompiler can handle the intent designates two
different ports belonging to the same switch.

Change-Id: Ie1ef4463fec0fc45a216bdb384792cc453a582c8
2014-11-13 14:18:28 -08:00
Madan Jampani
f5d263b41f Bugfixes for DistributedLockManager functionality
Added a method called broadcastIncludeSelf to ClusterCommunicationService.
Cosmetic improvements: added toString methods

Change-Id: I1d58720c29e6f8642f950670c3a6d95a7019a491
2014-11-13 12:45:50 -08:00
Jonathan Hart
1f793a71f2 Fix for proxy ARP to allow multiple ports on the same external subnet
Change-Id: I892d14d7181b5f50e05c6b1b6bcce514700273c5
2014-11-13 10:54:59 -08:00
Sho SHIMIZU
977cb60b98 Add unit tests for constraint object serializations
Duration is additionally registered because LatencyConstraint has it

Change-Id: Ibbf31761b789fa71fb6cb1a1155f5ea0680853ce
2014-11-13 10:44:43 -08:00
Yuta HIGUCHI
2210282957 ONOS-197: Ignore Link with missing Device
- Catch, log, and skip Link edge creation failure.
- log topology error details

Change-Id: I3cd44a86ed6641c49923f6ed4d2dbaf1f97511d0
2014-11-13 09:59:35 -08:00
Yuta HIGUCHI
adac04a72d Support LinkResource related serialization
- DefaultLinkResourceRequest
- DefaultLinkResourceAllocations

Change-Id: I8ebb32d5cb96c8465a23a9a512d2e8a56b6fce56
2014-11-13 00:42:17 -08:00
Thomas Vachuska
dea45ff7da Adding enhancements to the GUI server-side.
Fixing a few intent-related glitches for the optical use-case.
Fixing lat/lng information in the optical config.

Change-Id: I6a1dd1ee69c2db2f0e351d191627bba468a3c49c
2014-11-12 20:31:04 -08:00
alshabib
aa7e7deae5 adding getFlowRulesByGroupId to the flowservice
Change-Id: Idfcc86277b28af99e201f3bdfdf139217d77244c
2014-11-12 19:20:44 -08:00
alshabib
28204e515d adding group id to flowrules
Change-Id: Idb660d98f145b1645e9781fab79fbfb81bdce775
2014-11-12 19:08:40 -08:00
Yuta Higuchi
d26e0a67bd Merge "Support for expiring Database entries" 2014-11-12 18:07:35 -08:00
Ray Milkey
c4100e9529 Flow id test was in the wrong package
Change-Id: Id2d155500fe9f25051f82fe550ca41ac64d671ef
2014-11-12 15:54:04 -08:00