3637 Commits

Author SHA1 Message Date
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
Thomas Vachuska
b1380af356 Merge "Follow javadoc convention" 2014-11-12 15:43:48 -08:00
Thomas Vachuska
98ebd1bb6d Merge "Unit tests for FlowId class." 2014-11-12 15:43:01 -08:00
Thomas Vachuska
c379fa54d4 Merge "Remove null check because of guarantee of non-null" 2014-11-12 15:42:26 -08:00
Madan Jampani
def2c65d9b Support for expiring Database entries
Registering database entry expiration tracker with DatabaseStateMachine

Support for publishing database state machine snapshot installation events.
Expiry tracker will listen to these events to bootstrap its local state.

Change-Id: I8bf22c8d7bab38624341350ccc083c5ca2fcb117
2014-11-12 15:37:10 -08:00
Ray Milkey
506455f368 Unit tests for FlowId class.
Change-Id: Ic281d5a17da9d8623473a0dfe2b29ba3cd07724f
2014-11-12 15:19:42 -08:00
Ray Milkey
02093df742 Move unit tests to be in the same package as the classes they are testing
Change-Id: I785d70753dd9e02083ac32ed78ecba5515aa9f71
2014-11-12 14:27:43 -08:00
Yuta HIGUCHI
71b9d09c84 ClusterMessagingProtocolClient: lazily bind to NodeId
fixes ONOS-185

Change-Id: Ibbe9624509964d7c3e7ac2c95c171e5cb20b0634
2014-11-12 13:36:36 -08:00
Sho SHIMIZU
aaaa9630a6 Remove null check because of guarantee of non-null
Change-Id: I447532cae2f8cf801a8560e20e74df94f2f5e5ec
2014-11-12 13:34:05 -08:00
Madan Jampani
9b37d578ef Using net.jodah.expiringmap.ExpiringMap for tracking ttl expiration of database entries.
Minor javadoc updates.
2014-11-12 11:53:24 -08:00
Sho SHIMIZU
bdaea83127 Follow javadoc convention
Change-Id: I8c6a99289225033a48b815053a7e5213fd1aeb9c
2014-11-12 11:29:38 -08:00
Yuta HIGUCHI
d6ffa6a5ef ClusterMessagingProtocol: fix error message
Change-Id: I6123bfcbe1c668864691c87caaba0874fc3188e2
2014-11-12 10:58:03 -08:00
Yuta HIGUCHI
9e11ac0c46 MastershipManager: lower log level
Change-Id: Iad51d87740ca08d3286be9bbb02b408cf8c4e97d
2014-11-12 10:40:59 -08:00