2466 Commits

Author SHA1 Message Date
Sho SHIMIZU
9553bb88b3 Make TrafficTreatment.Builder.setLambda() deprecated
It is recommended to avoid to use a raw integer value to specify a lambda.

Replace uses of the deprecated method with the alternative

Change-Id: I108f0d15f4503df2a6a75c4f7c77aa0c678ff541
2015-07-01 02:18:07 +00:00
Sho SHIMIZU
6cd3330007 Use ConcurrentHashMap instead of FastHashMap
Apache Commons Collections doesn't support Generics

Change-Id: I8125b5e1aca9054ae399f9cabe8f76970294f848
2015-07-01 02:17:01 +00:00
Sho SHIMIZU
d4fa7fd34c Replace the method call of Apache Commons Collections with Guava's
Old Apache Commons Collections doesn't support generics

Change-Id: I29862c3a22a4cf96c92b90bb189e05740f070ff8
2015-06-30 18:58:41 -07:00
Sho SHIMIZU
260439de59 Replace deprecated APIs with the alternatives
Change-Id: I2959554573e0561543ab5fd0b2bcc871b8a74f3d
2015-06-30 16:35:34 -07:00
Madan Jampani
7058397358 Replaced GossipHostStore with a implementation built on top of EventuallyConsistentMap
Change-Id: I6b580727e5f4bb03e606c87a6748e6fbb90223e7
2015-06-30 19:40:52 +00:00
Sho SHIMIZU
be63b233cb Regard the release when the APIs became deprecated as Cardinal
Change-Id: I072fa33a2a70baa7466d7a0dc5067191476be0f3
2015-06-30 19:06:50 +00:00
Sho SHIMIZU
9a2b081c20 Describe the release in which APIs are tagged as deprecated
Change-Id: I6fd0ebba07bcc45237682e083b59a807a720b4fb
2015-06-30 19:05:31 +00:00
Sho SHIMIZU
0e6fd0642f Remove package-info because IntentInstaller no longer exists
Change-Id: Ic45e6e9c7dd53f37f2f2265a22a23a5eb9a06dbd
2015-06-30 19:04:57 +00:00
Madan Jampani
db5d06adb0 Kryo: set next registration id for local types registered in ECMapImpl
Change-Id: I9483f3b302224f3eb9dbd4e6dfb98a54143e3243
2015-06-30 11:16:48 -07:00
JunHuy Lam
39eb4295db Adding TLS for NettyMessaging and configurable on NettyMessagingManager through JAVA_OPTS
Change-Id: I5e77658cbae70d3facbe9e1f56c9fa9fcf0e00cc
2015-06-30 18:09:14 +00:00
Madan Jampani
3d76c942c4 Simplified ECMap implmentation by merging items and tombstones maps
Change-Id: If4253722d91c35a7e57dec3c2fceb216d14a7314
2015-06-30 10:17:12 -07:00
Sho SHIMIZU
d5c66afc60 Avoid unnecessary object creation
Change-Id: Iae5cb3c23540f9ac7105aa0b4c0b672ff8f75715
2015-06-30 09:46:54 -07:00
alshabib
9d9e3a3dad initial stab at javadoc for objectives
Change-Id: Ib36b50b6e9dd8c4a11aa9f06318ad567b28ae0f2
2015-06-30 01:41:48 +00:00
alshabib
7b808c5e15 small fixes to ethtype pattern
Change-Id: Ic58c426821952f66aa21bc828d36fd4f83d8da0d
2015-06-29 15:24:35 -07:00
Thomas Vachuska
f3ed655a8e Seeding a test for the edge-manager implementation.
Change-Id: I6743aae85eab1444bcafcc2f1d8514cc2c2a5bc0
2015-06-29 21:27:48 +00:00
Thomas Vachuska
8502192ecb Finished implementation of edge port manager using topology event async notifications.
Change-Id: Ide0eb947ba6400dafe11dac73af1466aaf0ce451
2015-06-29 21:27:48 +00:00
Aaron Kruglikov
a2b5915426 Not ready, commiting to transfer between systems for work.
Change-Id: Ifb3d2ce184761574aa0fd35211deacfac1236d63
2015-06-29 19:14:30 +00:00
Jonathan Hart
2a65575cf8 Improve the resiliency of the packet deserialization code.
Packet deserializers now check for malformed input while reading the byte
stream. Deserializers are re-implemented as functions that take a byte array
and return a packet object. The old IPacket.deserialize(...) methods have been
deprecated with the goal of eventually moving to immutable packet objects.
Unit tests have been implemented for all Deserializer functions.

ONOS-1589

Change-Id: I9073d5e6e7991e15d43830cfd810989256b71c56
2015-06-29 16:31:11 +00:00
Ayaka Koshibe
08e457ab8b Serializer for DefaultAnnotations. This allows Annotated objects to be correctly
used as keys in ConsistentMaps. Fixes ONOS-2128.

Change-Id: Ia21a25712351b99bc1b79dc231be8187cf3d3a0b
2015-06-27 18:11:40 +00:00
Madan Jampani
43e9c9cfb5 Updated ECMap remove call to return the value that was removed
Change-Id: Id7eacc04f4bb9322e4f98da5664c2fa46e0ea6fc
2015-06-27 17:58:06 +00:00
Ayaka Koshibe
94cc01baf8 Fix for uninitialized TransactionManager in PartitionedDatabase
Reference: ONOS-2157

Change-Id: Idec1c2242dd53a31836c69339ba89988a19556bb
2015-06-26 15:40:31 -07:00
Madan Jampani
98166f9c4b ONOS-2157: Fix NPE in Transaction execution logic
Change-Id: I55a73a82d5ba95407c451a7dd95832442625b994
2015-06-26 15:12:33 -07:00
alshabib
caf1ca2b1d adding EthType to secure handling ether types
this will also pretty print ethertypes in flow output

Change-Id: I9363070ad308f3c756735e29b3992c500e503636
2015-06-26 13:44:55 +00:00
Ray Milkey
85571ebe26 Remove deprecated Lambda instruction builder method
Change-Id: I77dba40e174308744617e413cb517de440f1093e
2015-06-26 13:35:08 +00:00
Brian O'Connor
9476fa1969 Adding @Beta to Intent API classes and interfaces
Change-Id: I02a3c1a678cb4e75b5bba9a33117a9dccb6fc0f5
2015-06-25 20:22:52 -04:00
Brian O'Connor
8113466429 Fixing FlowRule priority in intent compilers
Change-Id: I13998e88d2a116017e87c019f4829101db6c6b6b
2015-06-25 22:24:01 +00:00
Madan Jampani
0dbac7af9e Fix javadoc warnings
Change-Id: I156c861729fd48d5e6792f810c342e1579482c04
2015-06-25 11:40:30 -07:00
samanwita pal
74d32fdb14 Added unit tests for Versioned and MultiValuedTimestamp classes.
Change-Id: I12c05c546a75aad6ddbe1d63aaa152a1ed642759
2015-06-25 09:30:28 -07:00
Ray Milkey
eb5c7177bc ONOS-2144 - Complete implementation of REST API for flows
- URL for creation of a single flow is now /flows/{deviceId}
- On successful creation of a flow, Location header contains
  a reference to the new object's URI
- POST operation returns status code of CREATED
- implement DELETE operation for /flows/{deviceId}/{flowId}
- removed deprecations and warnings from REST API unit
  test for flows.

Change-Id: Idb43a651a659e60c07a6f36dfd69004c814b146b
2015-06-25 09:11:43 -07:00
Brian O'Connor
390c99701b Refactoring BlockAllocatorBasedIdGenerator.java
Allowing first call to getNewId() to throw an NPE, and handling initial setup in catch block

Change-Id: I409aa9c8a309dbbf4fc3738c3870ec4d91831303
2015-06-25 16:07:06 +00:00
Madan Jampani
bcf1a48e89 Removed ClockService<K, V> and replaced its usage with a BiFunction<K, V, Timestamp>
Change-Id: Ide8d979f9361f1aff6727a83733747f4512ef8ff
2015-06-24 19:35:33 -07:00
samanwita pal
d1acfd8fe6 Added unit tests for MapEvent class.
Change-Id: I3c1c8091da01fbeaabf66d68d7c6cc1f2c2a2455
2015-06-24 21:29:52 +00:00
Thomas Vachuska
41f4d3ed05 Defined edge-port subsystem interface.
Change-Id: I4d376ea50292c0d2ab313e7d07a2aa0209a739c1
2015-06-24 10:57:25 -07:00
Thomas Vachuska
27bee09007 ONOS-2145 Added ability to withdraw packet intercepts via PacketService::cancelPackets.
Change-Id: Ie41271fa02740560bd67b0faf49f633ee749773c
2015-06-23 19:03:10 -07:00
Thomas Vachuska
c97aa6110e ONOS-1793 Moved trivial stores to onos-core-common/src/test; onos-core-trivial is no longer.
Change-Id: Ie4824db36e3a7eb6db3b953ee1f2786d3e22194f
2015-06-23 23:39:49 +00:00
Madan Jampani
e8af1cc38c ONOS-2133: Support for purging associated stores (ConsistentMap/DistributedSet) when the application is uninstalled
Change-Id: I5bf7678f50ff3ed2792313383ff738c356bef69f
2015-06-23 22:23:02 +00:00
Thomas Vachuska
e18a330163 ONOS-2091 Installing app when already installed will now raise an error
Change-Id: I4dacd63bf4a99244b23b932d35dd9cbd088548c1
2015-06-23 22:22:11 +00:00
Samanwita Pal
e00733af97 Added unit tests for DatabaseUpdate.java
Change-Id: I5d7523a5a7c22ccf7add5b4df074c965362e9cbe
2015-06-23 21:45:57 +00:00
Jonathan Hart
066244c31c Simplify MP2S compiler, fix ingress/egress on same switch bug in SP2M compiler
Change-Id: Ib47bba01aac0f358f2caa5525c18e0e90a0b13ff
2015-06-23 18:18:53 +00:00
Thomas Vachuska
92af89f591 Minor cosmetic cleanup in ComponentConfigManager.java
Change-Id: I71c96e2712dd3206e5d7ed52025e649ff1de8d0a
2015-06-22 15:16:23 -07:00
Aaron Kruglikov
6685521c5f Added accumulation of events using the accumulator construct.
Change-Id: I020fc7a46427636f4ec934f1895402625af04788
2015-06-22 13:49:06 -07:00
Ray Milkey
419dcada3c Improve coverage to cover private serialization constructor
Change-Id: Ifedca248416ea28b9ea2716939a1ad7b3fbabe74
2015-06-17 11:28:04 -07:00
Ray Milkey
d164c0e0ea Unit tests for DefaultPortStatistics class
Change-Id: I778bc0a10381a304d35aaf2628c254d8f1c1e5db
2015-06-16 18:56:57 +00:00
Thomas Vachuska
afb11dac18 ONOS-2124 Added a few more validity checks.
Change-Id: Icbb784bd0caa124b6bfac03619702b6f2250ffff
2015-06-16 17:31:55 +00:00
Ray Milkey
d13a37bf3c Remove deprecated Flow Rule constructors
Change-Id: I2a078cbfbeb9db4a04ef1c59acde2fb45672a3cf
2015-06-16 17:03:13 +00:00
Thomas Vachuska
93d944c224 ONOS-2124 FIxed Version to allow two-segment versions and to be more robust in general.
Change-Id: I92db41ad0aa7c604375dae5a0ac6804462532ba9
2015-06-16 09:48:55 -07:00
Sho SHIMIZU
06a6c9f94c Use lambda instead of anonymous inner class
Change-Id: I5b2b93e82ec50296af66970ac518d7e0e8a14177
2015-06-12 14:56:22 -07:00
Madan Jampani
c606956184 Added a map API to transform Versioned<byte[]> to Versioned<V>
Fix bug where ConsistentMap.{putIfAbsent,remove} do not publish MapEvents

Change-Id: Ib7a9e01cad2b9099e6872916ae392351b68299ef
2015-06-12 21:41:37 +00:00
Sho SHIMIZU
47eb3bd302 Fix warning about unchecked type
Change-Id: I1654f625b4e456dddc594e80455bf0f9969cfab4
2015-06-12 21:16:26 +00:00
Madan Jampani
44839b8bc8 Lower log level to debug for flow store backup location change message
Change-Id: Ib1d9322ead8febcb76950d5018fb526dc51fe5a8
2015-06-12 13:57:52 -07:00