330 Commits

Author SHA1 Message Date
Ray Milkey
303e671d3b Refactor to use JAXRS URI builder and fix HTTP status for bad JSON
Change-Id: I696bdd4792b002391abe709c7a0e3e600ad50157
2015-07-20 16:36:52 +00:00
Thomas Vachuska
96d55b16ad Implementing net config subsystem and revising its interfaces.
Added a few basic configs for device, host and links.

Added initial REST API.

Added CLI.

Tests remain to be added.

Change-Id: Ic7bba4b5ad7d553c51d69f6459b3bff146970323
2015-07-09 14:39:10 -07: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
Madan Jampani
0dbac7af9e Fix javadoc warnings
Change-Id: I156c861729fd48d5e6792f810c342e1579482c04
2015-06-25 11:40:30 -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
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
b4258a911c ONOS-2124 Improved web-exception handling when an anonymous exception, i.e. one without a message, is raised.
Top stack-frame will be used as a message if exception has no message of its own.

Change-Id: I28d68e05a0d805c7320e133d8e17081513cb503c
2015-06-17 15:34:14 +00:00
Sho SHIMIZU
ccf40c722b Fix bug that inconsistency happens in long value and name in PortNumber
The case is like the underlying name is "2", but long value is 0.

This fix relates to ONOS-2082.

Change-Id: I702ed91563296d38980dc6895fafb18aecaa26f8
2015-06-12 00:29:41 +00:00
Ray Milkey
d43fe45f42 REST API to create flows
Change-Id: I5d001782249c0eab249d7aa857ae465da95b5955
2015-06-11 21:45:28 +00:00
Sho SHIMIZU
bb825d73b9 Remove forEach() that introduces side-effect inherently
Change-Id: Idd9784d7a8a4064e31b02f65701bc599b2fb3dbf
2015-06-11 21:43:46 +00:00
Sho SHIMIZU
63d9f649b1 Remove unnecessary empty set check
It isn't harmful to remove the if statement because missing.forEach()
doesn't call the specified lambda when it is empty.

Change-Id: I3f43f5fd4a4422899c621f2a63c0259f1bae838a
2015-06-11 21:43:45 +00:00
Sho SHIMIZU
30e9fd15b9 Filter connect points by device ID
addMissingPorts(Device) runs per device basis, but the variable missing
contains connect points of the other devices.

Change-Id: I0c4e74b131c8c4f283b103c77eab7443336b7b8b
2015-06-11 21:43:44 +00:00
Sho SHIMIZU
f6501c0636 Remove null check because it is always evaluated as false
Change-Id: I646a4bca5f44b7faeb103a6031a3e0c05b3876be
2015-06-11 13:51:42 +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
Marc De Leenheer
c973308d41 Static optical madness. Fix in device resource store. Javadoc.
Change-Id: Iaba6b62094b3d2023f352d52037c6d1535c31b88
2015-06-06 00:35:47 +00:00
Ayaka Koshibe
c10d151e50 ConfigProvider: Use port number from known ports to create ConnectPoints
Change-Id: Iecab56927815e6e5db97a3caf7c742f5a68ccc01
2015-06-04 22:48:42 +00:00
Marc De Leenheer
723f553165 Allow static lambda and port mappings (ONOS-2067).
Fix bug in device resource store.

Change-Id: I219a4de9ec803b3d142a6b957868f64dc599fa24
2015-06-04 19:14:37 +00:00
Sho SHIMIZU
a3d67cd8a0 Expose empty annotations as SparseAnnotations to move down cast
Change-Id: I9e8a7d61b770faaec1b7e0ea1cf78bdb367b68ee
2015-06-04 12:01:46 -07:00
Ayaka Koshibe
236e9cddd9 Fix for parsing non-numeric port numbers in ConfigProvider
Change-Id: I891bd4f13ecb76f6679db3262f3050ec983b4372
2015-06-04 01:55:34 +00:00
Ayaka Koshibe
9100624d48 ConfigProvider: Protect against potential NPE when reading files
Change-Id: Id9174ddf16fb02a19b987eb428bc68ee43139165
2015-06-03 20:07:17 +00: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
Ayaka Koshibe
74b5527081 Miscellaneous fixes for reading Linc-OE port types.
- Keep track of created PortDescriptions so that they can be replayed when
   configurations don't stick
 - Push topology configs to all cluster members (Temporary hack until
   Configs are made Mastership-aware)
 - Port type consistency for Optical ports - default to FIBER port type

Change-Id: Ib2c9e2839c212d2998206bd0106490b2b38446a9
2015-05-28 22:57:37 +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
Ayaka Koshibe
ae541737d4 Linc-OE ports now identifiable as Och and OMS ports.
Reference: ONOS-1803

Conflicts:
	utils/misc/src/main/java/org/onlab/util/Frequency.java

Change-Id: Ie2bdf74f8198afbd58a4762ff97bff6f4e9010df
2015-05-19 23:36:04 +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
Jonathan Hart
9bb32ab74a Moved AbstractWebResource to api bundle so it is accessible by applications.
Change-Id: Iddfe8a7d42d432e09424cede04b6c847198a9c85
2015-05-07 23:54:37 +00:00
Thomas Vachuska
3b84c86b7e Providing a work-around for a bug in the gossip stores, which prevents annotations from sticking initially.
Change-Id: I791a0bb3747865604f4d7edba5978a49312ebf7b
2015-04-28 19:56:09 +00:00
jcc
3d4e14a72b FlowRule private extension refactor.
1.merge private flow into regular flowrule subsystem.no mirror code any
more.no change flowrule api.
2.define a rich-data-type to carry private flow.
3.modify OpenFlowRuleProvider.class to support for 3rd party private
flow.i don't know whether is suitable.because this class name is
relative with open flow protocal.
4.fix some junit test bug caused by modification of FlowRule interface.

Change-Id: I6c54d1e97f231a75bd1b416f0893e0379613d7ce
2015-04-23 04:11:34 +00:00
alshabib
08d9898714 FlowRule api no longer uses TableTypes. Existing usages are converted to
integer representations via Type.ordinal() call

Change-Id: Ie2a26c5ced166e12f0e1ea22e39cd5195455a1ad
2015-04-21 23:52:19 +00:00
alshabib
db7740788c Introduced a builder for flowrules and deprecated the old flowrule constructors.
Change-Id: I4bf6e102c67c2effd0d8b65538fcf3a8a1db69e1
2015-04-21 15:00:49 +00:00
Ray Milkey
674dd8b670 Enable Intent REST API tests
Change-Id: If371887de4ad57a6d0fdd9fd5bb87426bb2742db
2015-04-17 10:50:04 -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
Thomas Vachuska
c40d463c27 Consolidating null providers and making them fully configurable and integrated with the ConfigProvider to allow arbitrary topologies.
Change-Id: I899e27a9771af4013a3ce6da7f683a4927ffb438
2015-04-14 01:23:24 -07:00
Ray Milkey
a0cecdc9cf Fix for ONOS-1595 - return proper status (405) when using an unsupported method
Change-Id: I66fe2d4783364d5a5b8cccba15115c818ed3a3b3
2015-04-09 17:55:52 +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
f8cac48255 Mild REST API refactoring.
Change-Id: Ieddbbd02328043118ad64077f8eda746eb2b3a9f
2015-04-09 03:04:22 +00:00
Thomas Vachuska
51979284a6 ONOS-1470 Added unit tests for component config REST API.
Change-Id: Id08c629cefff1a1276e6be7c07ea62e4ae89468a
2015-04-07 18:49:17 -07:00
Thomas Vachuska
e6847431fe ONOS-1470 Implemented component config REST API.
Change-Id: I637456a1dfd364ff3184cded8a5e8b251afc9987
2015-04-07 23:42:19 +00:00
Thomas Vachuska
de563cf235 Added ability to form a cluster via REST API.
Change-Id: Ib71f6b4caed1b1c4b9db78596ee35bf5cab05184
2015-04-01 20:39:37 +00: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
67c22726a2 ONOS-1242 - REST API for Withdrawing Intents
- upgraded Jersey to 1.19 for some REST bug fixes for Java 8
- consolidated references to Jersey by using the dependecy
  management plugin in the top level pom file.

Change-Id: Ic027f97f8fce6c673c9f2c02a92abaeedfedeb97
2015-03-23 20:40:33 +00:00
Thomas Vachuska
8683e01678 Fixing codec usage.
Change-Id: I9101296a7ec4d4b13bf11df3e49e17afad79405e
2015-03-19 01:40:30 +00:00
HIGUCHI Yuta
3c994f7e8c ONOS-1329: Migrate Codec related code to onos-core-common bundle
- removed unused dependency to onos-core-trivial tests

Change-Id: I0f13cff6cc99403f7c0e0d7362f83d0ba557f10b
2015-03-19 00:42:52 +00:00
Ray Milkey
3e3ec5f786 [Cardinal] Add builders for Intents and remove extra constructors.
Starting with PointToPoint intent to see how it looks

Change-Id: I5366a05d657ceaad18c03b95cd71f5d1107200e2
2015-03-18 22:17:54 +00:00
Brian O'Connor
6ea48a22fe Starting snapshot 1.2.0-SNAPSHOT
Change-Id: Iffa1055c22448849353ede6581c277f4d3de78d8
2015-03-17 20:07:20 -07:00