63 Commits

Author SHA1 Message Date
Ray Milkey
f7cb401b6b Fix ONOS-2090 - Improvements to Intent JSON
- Intents are now identified by the name portion of the appId rather than
  the number
- removed the now useless "details" field which had a toString()
  dump of the intent for when we didn't support all intent types
- Single Intent GET operations now accept a decimal or hexadecimal
  value for the Intent key.

Change-Id: I39d635e68cccf2e59d0d11307b93329a2dc0bc96
2015-07-21 22:21:28 +00:00
Ray Milkey
b9af946649 Implement REST APIs for link flow statistics
Change-Id: I65ca3cec9dd1771a70811afd319619827f7b9010
2015-07-20 16:38:05 +00:00
Ray Milkey
6d7968e5a8 Refeactor codec helper classes
Change-Id: Ic980293f5df97ed74a73fc54e3dcb197658264f5
2015-07-06 21:58:27 +00:00
Ray Milkey
b82c42b0fe Implementation of REST POST API for creating intents
- codec for constraint decode
- codec for intent decode
- POST method for intents
- unit tests for codecs and POST method

Change-Id: Ibc0ef8f99a0c0664710a733985424c77010c49b5
2015-07-06 20:19:42 +00:00
Kenji HIKICHI
5448d464e5 ONOS-1680: Close InputStream explictly to delete the opened file reliably.
Change-Id: Iae1a57da007eb50bdf024f4acb73aebb96de7888
2015-07-03 18:24:49 +09:00
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
alshabib
7b808c5e15 small fixes to ethtype pattern
Change-Id: Ic58c426821952f66aa21bc828d36fd4f83d8da0d
2015-06-29 15:24:35 -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
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
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
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
Thomas Vachuska
ad35c34af3 Fixed application descriptor parsing.
Change-Id: If4fa4ecc66d0ed2a42e8b240d0e3142340d544eb
2015-06-12 01:08:57 +00:00
Ray Milkey
d43fe45f42 REST API to create flows
Change-Id: I5d001782249c0eab249d7aa857ae465da95b5955
2015-06-11 21:45:28 +00:00
Brian O'Connor
afc2d7db88 Starting snapshot 1.3.0-SNAPSHOT
Change-Id: Idc4c114bda5268e534b9fc998215564d23d84c58
2015-06-05 23:31:25 -07:00
Brian O'Connor
a78abfcc39 Tagging 1.2.0
Change-Id: If1b4de17402bf8248c888de72891dc17a5bcd7ef
2015-06-05 22:40:03 -07:00
Brian O'Connor
3350390b1d Starting snapshot 1.2.0-SNAPSHOT
Change-Id: I96c63bb70f2cd27453f2da893d77f9e72966f780
2015-06-01 17:08:05 -07:00
Brian O'Connor
75aed4000e Tagging 1.2.0-rc2
Change-Id: I93f2bf38d29ddf788f7a81552695da80fc275c42
2015-06-01 16:58:14 -07:00
Sho SHIMIZU
c06966eee9 Fix wrong information referred by matcher's description
Change-Id: Id57b2af396d56f56c3ca40d328f26f1e5d00e5f6
2015-06-01 21:08:02 +00:00
Sho SHIMIZU
c44c0c3268 Fix cast error on execution of "flow -j" command
This resolves ONOS-2037.

Change-Id: Ie6bf0c7ca0644ae8029df72d3ea7084fa0297aca
2015-06-01 11:57:46 -07:00
Sho SHIMIZU
68b8c1f938 Fix Javadoc and rename a test method to explain behavior correctly
Change-Id: Ib992c68de5ce9129ca24621604ead2bfc2add848
2015-05-29 18:42:26 -07:00
Sho SHIMIZU
6c70f6482f ONOS-2037: Fix cast exception on execution of "flows -j" command
Change-Id: If481573f405d812b0b103e1752a559d8f81d6bd8
2015-05-29 17:40:51 -07:00
Thomas Vachuska
f9c8436f4d STC work in progress
Change-Id: Ie5e444e3b560b605b066899289cdee7a5fe8338c
2015-05-29 06:01:30 +00:00
Brian O'Connor
30a412deb3 Starting snapshot 1.2.0-SNAPSHOT
Also, fixed onos-upload-bits script to upload rc's to nightly/

Change-Id: I9bb8fe685492e23c740796879f0b66c307e26e56
2015-05-21 18:08:06 -07:00
Brian O'Connor
608e03a1bb Tagging 1.2.0-rc1
Change-Id: I2791aacb0ab4eb0d3db92fef5e58e9c62747bf8c
2015-05-21 17:56:07 -07:00
Brian O'Connor
6de2e202f1 Moving LabelResourceManager to incubator
Breaking apart resource package into {device, link, label}
Refactored cluster serializers so they are visible

Change-Id: I71051bcd5e790ae6abeb154bf58286e584c32858
2015-05-21 22:26:49 +00:00
Thomas Vachuska
36002e6f81 Made time limit for event processing configurable; cleaned-up duplicate code.
Change-Id: I08e7f1c9f4cdbd6404f1eb5e3544989e7a728d92
2015-05-19 23:58:12 +00:00
Ray Milkey
ccab22dbc6 ONOS-1950 - NPE if intent state is null
Change-Id: I5e93cf57f3c881e5528e3ac522f95451fab70fba
2015-05-18 13:24:50 -07:00
Ray Milkey
39616f3a81 Add JSON to CLI commands
- Drivers
- Groups

Change-Id: Ib47dc75d9db839329e6cf8fc4439150848f604f5
2015-05-15 02:03:31 +00:00
Changhoon Yoon
a7841edace ONOS-1896 : enum Permission added, DefaultPermission removed
Change-Id: Ie75313acc9adeaee9c5a55978b5ec8e8fb5bf9b6
2015-05-14 18:07:00 +00:00
Changhoon Yoon
bdeb88a77a ONOS-1896 Modify Application Subsystem to support Security-Mode ONOS
Change-Id: Ie3686e0d5071f9f6e946bc48ed7562bb2f5ec413
2015-05-14 16:54:55 +00:00
Ray Milkey
1534f8df8f Add intent state to JSON output
Change-Id: I3a5995e0dfdc83e1253b8e414e825b796a57264c
2015-05-13 15:43:11 -07:00
Ray Milkey
3078fc0620 ONOS-743 - Use REST API Codecs to generate JSON for CLI commands
Change-Id: I25e0840d1af03341c638f837498c95275e6cf31b
2015-05-13 17:03:39 +00:00
Sho SHIMIZU
6d01d3df91 Inline static factory methods in BandwidthResource
Change-Id: I8ac7fbaea5c81c9558f88f6ac88bcf581466d073
2015-05-08 16:10:55 -07:00
Sho SHIMIZU
63feca7d26 Rename Bandwidth to BandwidthResource
To distinguish unit of bandwidth and resource of bandwidth

Change-Id: Ice52538f0c00f6d7743ca247d0f9bab3febdc94b
2015-05-08 23:08:36 +00:00
Sho SHIMIZU
94b7ff4f7f Rename Lambda in org.onosproject.net.resource to LambdaResource
To avoid naming conflict with Lambda in org.onosproject.net

Change-Id: Ic8a670e7e2fb022f44f5a83cf4805f3ce0f29694
2015-05-07 17:11:42 +00:00
Sho SHIMIZU
ed7af54e2d Support ModOchSignalInstruction in InstructionCodec
Resolve ONOS-1875

Change-Id: I63e10aeb4689991bfb5c6df349843ef5aff4d6f7
2015-05-06 22:07:30 +00:00
Sho SHIMIZU
fbc80e5348 Pull out inner-classes from Criteria to be independent classes
Make constructors of sub-types of Criterion package private for
limiting instantiation only from static factory methods in Criteria

Change-Id: I1fb1e9d003288a778a49e758549a92b66bf3cfdf
2015-04-29 00:44:59 +00:00
Thomas Vachuska
5d4a58dafa Adding a proper clean-up step for unit test file system artifacts.
Change-Id: Ia602b2359f290c4327611dc092bbcdaf28c144a2
2015-04-28 11:40:05 -07:00
Thomas Vachuska
a7a0f560a2 Converting builtin applications to be delivered in a self-contained manner via OAR files.
Change-Id: I5b7c6939aacc263248868fac2e0f69124c5f3609
2015-04-16 14:04:35 -07:00
Ray Milkey
34c959066d ONOS-533 Fix copyrights
- Any files created in 2014 and modified in 2015 got a copyright of
  2014-2015
- Used canonical form of 2014-2015 to be inclusive of extra years.
  Some files had 2014,2015

Change-Id: If9a133618873e4000b8f10299bde7c870eb1fbd5
2015-04-15 17:41:07 +00:00
alshabib
a3a476d1c4 reinstating the key field in FilterObjectives
Change-Id: I25f7d105edd562785cb213f747e7d9e0650f2635
2015-04-11 00:37:36 +00:00
HIGUCHI Yuta
5bb99a4015 Add support to decode Device, Port, Link JSON.
- Device, Port, Link can now be encoded and decoded back to Java Object,
  which will be Object#equals to the original.
- Modified DeviceServiceAdapter to be null-safe when possible
- Modified JSON assertion/matcher not to check for exact number of attributes

Change-Id: I7cf02e2254cf17f6265fb15847912519e564b14f
2015-04-09 06:08:29 +00:00
Thomas Vachuska
40a398b948 Fixed a defect in app archive base class.
Change-Id: If54d65926ad4b4c346a234d6ffac75ca2797efa3
2015-04-03 22:26:30 -07:00
Thomas Vachuska
de563cf235 Added ability to form a cluster via REST API.
Change-Id: Ib71f6b4caed1b1c4b9db78596ee35bf5cab05184
2015-04-01 20:39:37 +00:00
Thomas Vachuska
161baf54dc ONOS-1418 Fix for intermittent issue with app store.
Change-Id: I94cb818550825984ec5e70a82a772a6f3bae5b0d
2015-03-27 16:15:39 -07:00
Ray Milkey
4250735018 Remove deprecated instructions() method in the traffic treatment class
Change-Id: I739b35bdcbf9867c639c7b6ca4006f3eeafbb055
2015-03-24 18:18:28 +00:00
Ray Milkey
ebc5d22159 Refactor connectivity intent creation to use builders
- Each connectivity intent now has only one constructor
- Intent constructors are now private for leaf classes and
  protected for classes that can be derived from
- Each intent class has a Builder class that accumulates
  parameters for intent creation
- Each intent class has a public static builder() method
  to create a builder
- Each Builder class has a build() method to create the
  intent from the accumulated parameters
- Added keys to a few intent types that were missing them
- Tightened up usage of checkNotNull(), taking advantage of
  the return value to save some lines of code
- Modified callers to use the builders instead of directly
  calling the constructors

Change-Id: I713185d5ecbadbf51f87ef7f68fec41102106c78
2015-03-23 21:12:14 +00:00
Thomas Vachuska
d5d9bcbdce Changing location where ONOS stages its deployed apps.
Change-Id: Ia3931454067829b6331419f81a714d865dc8a1e6
2015-03-18 17:46:20 -07:00