490 Commits

Author SHA1 Message Date
Ayaka Koshibe
ccfa94caef LLDPLinkProvider listens to MastershipEvents
Change-Id: Iaa3655c680a8fc93921f0b83dc4fc16311222bf9
2014-11-20 20:48:40 -08:00
Madan Jampani
1d3494ec8f Initial cut at Leadership Manager
Change-Id: I658c6fca3dc6f686e0f7facc9e7b443679ebae1e

Change-Id: I293906add41ff4310e3584847d806345e0312703

Change-Id: I7fb13a72ba4aef10d7c2262b96e0df64efecfcef
2014-11-20 14:37:49 -08:00
Madan Jampani
1769a1ade3 1. Adds a lockAsync method to LockService for async lock acquisition.
2. Fixes a bug where lock() wasn't attempting a tryLock before registering for lock avalilability.
(Note 1 above is needed for LeadershipService which will come later)

Change-Id: I1deaa445f7cdf86416b335df1d7358e17eff19c3
2014-11-20 10:15:10 -08:00
Praseed Balakrishnan
00dd1f9a6c Fix for optical re-reoute
Change-Id: Iad3ca0e175cb76f66ac276981f4e36bb580566c8
2014-11-19 17:22:26 -08:00
Pavlin Radoslavov
a6b754c456 Added API for the (new) Leadership Service. For now there is a single
Leader elected for all purposes.
In the future the leader could be per topic.

Change-Id: I6d4f997b40bfdaa6fa9a5547e7641bf62c9d3ddb
2014-11-19 15:51:35 -08:00
Madan Jampani
71582edbe7 1. DatabaseManager activate will attempt to listTables to ensure store is in good shape.
2. lock and tryLock can now throw InterruptedExceptions.

Change-Id: Ifa766ad441f677a4071b68d8f6caa564cf320869

Change-Id: I318ff762a96b261737831f6bd7c200b384c638e9

Change-Id: I0f509703520b3187931fa3669cd8213a91e85c96
2014-11-19 15:39:30 -08:00
Ayaka Koshibe
78bcbc1227 remove dependency on Devices for handling MastershipEvents
Change-Id: Ie1670e77d3eee5dbd597f574ebe16d687e7b551e
2014-11-19 15:39:08 -08:00
Yuta HIGUCHI
75fb1f4a75 Slice out byte[] printer
Change-Id: I095575df5f03057c386be77328897be59c96eaf9
2014-11-19 14:15:17 -08:00
Thomas Vachuska
f75b7ab3b6 Forgot the icons... doh!
Change-Id: Ic0d7848ea857b9fa78f3399ab98651358da78e73
2014-11-19 12:18:28 -08:00
Madan Jampani
e198eb8477 Printing a summary (total size) when generating toString representation of byte arrays in WriteRequest and VersionedValue
Change-Id: If068a4e602fd5cc3932f09fc3ab54a7dea47f1f2
2014-11-19 12:03:05 -08:00
Ray Milkey
c8f481f3d9 Unit tests to improve coverage in intents module
Change-Id: Ic544114a8d3065157b0abd09632a2dc5ff8b708d
2014-11-18 18:18:30 -08:00
Sho SHIMIZU
a19a2e5494 Fix typo
Change-Id: Ib10da595faf98cbdbe88dec5225d0996b8f8cd76
2014-11-18 13:20:35 -08:00
Jonathan Hart
c9d7673be5 Cleaned up inconsistency in OpticalConnectivityIntent API.
Change-Id: I76b629aa8f4cf95a224da49780b3eca275b9acfc
2014-11-18 11:21:17 -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
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
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
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
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
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
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
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
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
Thomas Vachuska
2292567fc6 Fixing a defect where logical port numbers are listed as part of CLI arg completion.
Fixing a defect where devices imported with device id in uppercase are considered as different from those discovered in lowercase.
Fixed javadocs error from a rebase.

Change-Id: I76741022fb95d10a9a16fc9ce6d6443b166822ab
2014-11-12 02:35:01 -08:00
Madan Jampani
c65d8debb7 Checkstyle corrections. 2014-11-12 02:18:28 -08:00
Madan Jampani
c22123dec7 Removed dead code 2014-11-12 02:12:19 -08:00
Madan Jampani
7aad23394e Replace Collections.unmodifiableList with guava ImmutableList 2014-11-12 01:57:07 -08:00
Madan Jampani
23af4fc065 Fixed checkstyle issues 2014-11-12 00:54:18 -08:00