169 Commits

Author SHA1 Message Date
andrea
5056b51aeb [ONOS-3394] JsonModels for Swagger UI
Change-Id: I57503b28df517642ab15e2b18f66ad63c15b7b8a
2015-11-19 00:38:21 +00:00
Ray Milkey
8fba1c81d0 ONOS-3369: log an exception on REST server errors
Change-Id: I407ed7576ff79b5781d2a688c78367266643aaea
2015-11-17 18:24:22 +00:00
Jonathan Hart
d9df7bd278 Fix naming convention issues in preparation for stricter checkstyle enforcement
Change-Id: I918b7b1dcf6424a526b6b26b89acc9a57d807fec
2015-11-13 16:28:02 -08:00
Phaneendra Manda
2be2f88066 Class name corrected while retriving stream from json
Change-Id: I325bf61d001194953db137131c414bb877d8613b
2015-11-13 19:16:16 +00:00
Thomas Vachuska
761f0040f3 ONOS-1684 Added support for app dependencies.
Change-Id: Iae318c24c3c9bd43d84318c79ac420fc85d5d599
2015-11-12 21:37:58 +00:00
Madan Jampani
ec1df02f3e In preparation for dynamic clustering support:
- Added Cluster metadata service and metadata store interfaces
- Added a static cluster metadata store implementation that is backed by a local file.
- Consolidated the existing cluster.json and tablets.json metadata files into a single cluster.json file that has all the cluster related metadata.
- Removed dependency on ONOS_NIC env variable.

Change-Id: Ia0a8bb69740caecdcdde71a9408be37c56ae2504
2015-10-23 17:51:08 +00:00
Thomas Vachuska
ea5adc6b44 Corrected output of network configuration subjectKeys in JSON output; no longer relies on subject.toString.
Change-Id: If4e07bc27cfaf8feb59397a5f104e5f663504f6e
2015-10-07 20:57:03 +00:00
Srikanth Vavilapalli
95810f5465 CORD-13:Table Statistics support along with CLI and REST
Change-Id: Ic7facc73754c4b1e7c9c5a9eecd217f89a67e135
2015-10-05 15:56:38 +00:00
Phaneendra Manda
aec654c105 Variable name changed for readability
Change-Id: Ie79aaacddd0c9a7885c55676ce69256603323ac8
2015-09-23 16:54:12 +00:00
Thomas Vachuska
48e64e4b5b Cleaned up the SRLG and disjoint path code and naming.
Change-Id: I02b6fe5ee1e3f5eadc4e88800386a23349ee5e58
2015-09-23 16:41:43 +00:00
Nikhil Cheerla
2ec191fa98 Disjoint Path Utils Exposed
- to TopologyStores
- to TopologyServices
- to PathServices
- to REST API

Change-Id: Ib2b5840df0f8e94f327ec8f91827d3d850634562

Change-Id: I03e59210e9c79c4f92dcfa8c7983642572708429

Change-Id: Ia5c17d1ded374ef688990bd30e7f99184aaca95b

Change-Id: Ibebae50bc722701e8212263587727ad8abd79805
2015-09-22 14:29:19 -07:00
Brian O'Connor
f967ad61dc Starting snapshot 1.4.0-SNAPSHOT
Change-Id: I6b64a70eb8c416b58689afd2af7d726153176f6b
2015-09-18 15:19:54 -07:00
Brian O'Connor
b3a3b52f46 Rolling back to snapshot 1.3.0-SNAPSHOT
Change-Id: I5394f02bc4cc4614427e5e535889e883944734fd
2015-09-10 17:26:49 -07:00
Brian O'Connor
cbc5878c31 Tagging 1.3.0-rc2
Change-Id: Id062ea54a0f03c26eb763e03cc347dbfe63cd03f
2015-09-10 17:08:00 -07:00
Ray Milkey
9b36d81ce3 Javadoc fixes
Change-Id: Id23ed2d576b2222194153be9d043ca5acafe67ae
2015-09-09 23:54:01 +00:00
Brian O'Connor
e8bcb70258 Changing version to back to snapshot 1.3.0-SNAPSHOT
Change-Id: I05bc4669bf3ad2a149cee5d303da42bf8ffd14e8
2015-09-04 23:57:08 -07:00
Brian O'Connor
004345f6c8 Tagging 1.3.0-rc1
Change-Id: I640fc75397b90532e8a71f9413b6822f80b3e775
2015-09-04 23:47:08 -07:00
Ray Milkey
be539dbd88 JSON for flows should return the app name, not the app ID
Change-Id: I12d217b07bffb59615dfeefd40242f01669989c2
2015-09-04 18:26:56 +00:00
Ray Milkey
8d07640952 Set the location string correctly for intent POST operations
Change-Id: I7ddb98ca1c5e87fc0fe34c79c5499047e599191f
2015-09-03 17:52:54 +00:00
Thomas Vachuska
87ae1d9a30 Fixed javadoc warnings & added a few deprecations.
Change-Id: I89205b08bc5fcbfed769c489609a46d420ee227e
2015-08-20 00:46:33 +00:00
Thomas Vachuska
af0ee53cfa Added redirect for the /onos/v1/docs Swagger UI URL. Added onos-rsdocs tool to launch REST API docs UI from shell.
Change-Id: Ifb839e0205e5b176ebc7bb48644925eaa3675fd9
2015-08-19 14:17:36 -07:00
Thomas Vachuska
0fa2aa1167 ONOS-2486 Adding swagger-based REST API documentation.
Change-Id: I237d973d73549ad30ddc638c1c201f024d344c70
2015-08-19 18:46:38 +00:00
Ray Milkey
a4122367b0 ONOS-2190 - Move org.onosproject.net.config.* out of the incubator
Change-Id: I57cac27ae370ce1155b4f637646d6c25732844e9
2015-08-19 08:59:12 -07:00
Thomas Vachuska
eff0e4ed95 Adding GUI login/logout capability using form-based login.
Adding REST API login capability using basic authentication.

HTTP to HTTPS redirect is suppressed for now.

Change-Id: I1a98bdc5576c515e1aa5a1b8d66402af0c0bf8c8
2015-08-18 01:01:05 +00:00
Ray Milkey
05b169deab Improve coverage for Intents REST API test
Also, added @Provider annotation to all exception mappers so
the Jersey unit test framework will apply them during
testing.

Change-Id: Ifd9237de2e159cd97b64dcb9bde4a66f14bd0dfc
2015-08-14 16:39:15 +00:00
Ray Milkey
5d915f492b Cleanups to REST code suggested by Sonar
Change-Id: Ia399da70e7cd140514e07b63d9b2965fe86bbce7
2015-08-14 16:39:01 +00:00
Jonathan Hart
f44e42cf63 Fix for flow equality bug which can cause:
* multiple flows with the same match to be simultaneously present in the flow
   store, and
 * similar but different rule in switch and store, resulting in flows stuck in
   PENDING_ADD state.

Fixes ONOS-2426.

Ported from onos-1.2 branch.

Change-Id: I4b4e444c3a6dba7e4d3278e9469069e2dbdb9b67
2015-08-10 21:16:19 -04:00
Kedar Gupta
7c4d196681 onos-2420 Add unit test for Host REST API and fix documentation errors.
Change-Id: I633d6a8ed75dd3f79f134873967615c196f7e14b
2015-08-06 21:47:51 +00:00
Sahil Lele
372d1f38ce ONOS-2485 Autogenerate swagger JSON files from WebResource classes
Change-Id: If3efcd22ce04b4579bf0d3359684b252d981913e
2015-08-05 16:49:18 -07:00
Marc De Leenheer
fc913dd2f7 LINC driver and OF device provider report correct optical port types
Change-Id: I501ce5f6f53136254024ad7122a4fec0d17504e0
2015-07-31 15:30:04 +00:00
Thomas Vachuska
d894b5d5f7 Fixing javadoc warnings, provided missing package javadocs and corrected group structure.
Change-Id: I2637afe49b81e8e6d10ef3bb0f2a1cf50b2564cc
2015-07-30 20:27:44 +00:00
Sahil Lele
3a0cdd57e7 Devices,hosts, and links can be blocked and kicked off with the network configuration api
Change-Id: I68d427f4886a7b63475df8d35383e2e347946946
2015-07-29 01:00:13 +00:00
Jonathan Hart
eb431c1329 Fixed issue with pushing topo JSON after devices are in the system.
Fixes ONOS-2463.

Ported from onos-1.2 branch.

Change-Id: I9ce7a11e50d8fd6c344be2f90dc046dcba65fe46
(cherry picked from commit 914c35212fd8af0b923ff560f9aa00deaf37ce3a)
2015-07-27 20:47:13 +00:00
Thomas Vachuska
82e95a5de5 Added means to administratively remove device via REST API.
Change-Id: If0c0a98d7f36923dad1855a2303789f99882e224
2015-07-25 13:08:00 -07:00
Jonathan Hart
111b42b7a3 Move address-bindings config to new config system
Change-Id: I6d87ddbf98789dbe8355c453a3263f50fbc5d99c
2015-07-23 10:25:54 -07:00
Ray Milkey
7b15851500 Fix delete of an intent and add a unit test for it
Change-Id: If28dc96b299ab205e5519aac74d98e2588d1c37b
2015-07-22 02:19:29 +00:00
Kedar Gupta
47bd480f49 Add POST method for the Host REST API and fix minor documentation errors
Change-Id: I598ace5a94f83f010fdde1b3ad43b90f762a9d33
2015-07-21 22:22:15 +00:00
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
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