458 Commits

Author SHA1 Message Date
Viswanath KSP
8ffb7759d3 Exposed the newly added port specific portStatistics API via REST
Change-Id: I12a59b950f2d9123afc048e126ad7b457e5d7188
2016-08-23 22:19:06 +05:30
Kavitha Alagesan
98315a2a77 Fix for ONOS-4940
Change-Id: Id4e5913cb69e913190a0b32cd41bac0dbe786729
(cherry picked from commit 924c54ccb05c648afa49c6c2bd509a060b8d174c)
2016-08-23 15:30:05 +00:00
Jayasree Ghosh
d3ff540f36 Fix for ONOS-5152:Encoder for Disjoint Rest API with NPE:onos-1.7
Change-Id: I172e247353f7d70f6d7761e8a6be27f21b3c2684
2016-08-23 04:49:45 +00:00
varunsha
34b306051c Fix ONOS-5091
Change-Id: I11762eb799c1f93536f472807167cdba20a7c8e6
(cherry picked from commit 45f806ccedf844dfc8fe1722eca653f274b83f12)
2016-08-22 18:31:40 +00:00
Chiara Contoli
a8f69ff3fd Adding SinglePointToMultiPointIntentCodec for support SP2MP intent over REST
Change-Id: Ic04529520ad1719f3d241b3a79d8e0602bfeac4e
2016-08-17 16:23:56 +00:00
Brian O'Connor
e8468b5743 ONOS Swagger Plugin
just does swagger now
to build the plugin, you need to download to following:
https://github.com/bocon13/buck/releases/download/v2016.07.29.01-wip/buck.jar

put the buck.jar in tools/build/buck-plugin/lib

Change-Id: Id1b833dd013fbc5581f8e884e755920829c4a17e
2016-08-03 22:27:51 +00:00
Ray Milkey
bb23e0b5fb Fix Javadoc warnings
Change-Id: Icf8b6b6f77ea80d3975aa975226a178145067adf
2016-08-03 14:29:51 -07:00
HIGUCHI Yuta
f3ead25267 [ONOS-4513] Slice optical-model into separate bundle (1/3)
- net and cli bundle has dependency to optical-model bundle,
  which should be removed in the longer run. (ONOS-4626)

Change-Id: Ieff43ef2002ee21f4578a6e2a729cd35ce3eae3d
2016-08-03 18:54:13 +00:00
Jian Li
8afbbeee2a Bump up swagger ui from 2.1.4 to 2.1.5
This commit bumps up swagger ui to 2.1.5 which fixes various bugs
of swagger ui 2.1.4.

Change-Id: I4f8d7f79b88cddada0148a8629e7ef4da9eac3a0
2016-07-27 18:27:46 +00:00
Thiago Santos
877914d664 [ONOS-4931] fix doc of FlowEntry.life(), add life(TimeUnit)
Fix the doc: life() returns the time in seconds, not milliseconds.

Add new method life(TimeUnit) that allows specifying the timeunit to
receive the life value as as seconds might not be enough for
all applications and OpenFlow can provide this value to nanoseconds resolution
(in its spec).

Change-Id: Ia6a7573797249e0edc04e03c7204a550a2823742
2016-07-26 21:32:46 +00:00
Varun Sharma
1853b3f359 Cherry pick ONOS-4835 fix
Change-Id: I82ecb542dad4430d55af0fc684f8d13d6e45b45e
2016-07-25 09:15:06 +00:00
Jian Li
673399fcc5 BugFix: Allow to specify mastership role through REST API
In current implementation, swagger doc does match with codec impl.
With this commit, we can assign an exact mastership role for a
device through REST API.

Change-Id: I5cb3f8d478f8fe3eb22f12fc5254ed8a400d5b56
2016-07-20 19:21:20 +00:00
Kavitha Alagesan
df352c6dda Fix for the ONOS-4836
Change-Id: Iedf597bb79f27ca7834e85fc445ebd5736c852a7
2016-07-13 18:37:18 +00:00
Claudine Chiu
25f07bea59 ONOS-2184 VirtualHost CLI and REST api's
Change-Id: If0ebe4268f3161a34223eca58e3f1bdbb8d0c9be
2016-07-05 20:49:38 +00:00
Charles Chan
b3ef1fd63b Fix GroupKey interpretation in REST
Input string from REST should not be converted into byte array directly.
Before: "1" -> ascii 49 -> 0x31
After: "0x01" -> 0x01
GroupKey is a byte array with arbitrary length and represented by hex string

Change-Id: If27101f0e5522212c7e434fab58b66e67e9676d7
2016-06-29 14:57:13 +00:00
Ray Milkey
f3973047c4 Fix for ONOS-4740
Properly determine if the JSON payload contained any errors.

Change-Id: Id8e816f6627580dcaca3ccb6b7356d61be62392d
2016-06-22 15:37:58 -07:00
Deepa Vaddireddy
7fae18929c Fix for ONOS-4621. If any errors in parsing the configurations, continue with the next config key and return the list of subjectClass, subject, config failures
Change-Id: I4883342b4920aa4d6d641a17a395e5f6e4f27d6a
2016-06-22 22:29:11 +00:00
Ray Milkey
984e2d8654 Fix returned responses for DELETE operations
Change-Id: I5ad585841c69da86d89bca493a887e9af2cc4da3
2016-06-17 00:05:34 +00:00
Deepa Vaddireddy
0c49b607a1 Fix for JIRA ONOS-4620. Whenever networkconfiguration is deleted even the queued will be removed
Change-Id: I8d7f1a873af90cf86ea34f1a2b1585ef4c3e46e4
2016-06-16 20:47:56 +00:00
Brian O'Connor
1b2aea88c0 Removing gratuitous relativePath from pom.xmls
The default value for relativePath is: ../pom.xml

Change-Id: I1f5e5e6bfa1e91fcddae4f8cb8ab0c00c276e6b0
2016-06-16 07:05:31 +00:00
Yuta HIGUCHI
839b6edf50 Fixing file permissions
- removing executable bit from .java files

Change-Id: I7e993372e1edf942fefb5aaea2e302b3b2baebd9
2016-06-15 02:22:16 +00:00
Hyunsun Moon
1499864095 Fixed NPE and return 404 error upon unknown app activation request
Change-Id: Ic1b7904bcd873812f6e931c3fcb8dad4e4718364
2016-06-10 12:54:26 -07:00
Jonathan Hart
54b83e8996 Improve network config validation errors to show which fields are invalid.
Previously, uploading invalid config results in a generic error message
which makes it difficult to figure out what is wrong with the config

Change-Id: I307d2fc0669679b067389c722556eef3aae098b9
2016-06-08 13:47:45 -07:00
alshabib
20a070bed7 allow applications to be installed by URL from REST API
Change-Id: I6c28d91e1bbc6e77eefba00b8f106fe22edc475b
2016-06-07 08:44:59 +00:00
HIGUCHI Yuta
6827dc3dea Let JerseyTest pick random port
Change-Id: Ibc2544d0f27487cfd25317f6f5894acda9b89f51
2016-05-31 23:01:30 +00:00
Jian Li
a424a059eb Allow to specify appId through FlowObjective REST API
Change-Id: Iadff74d379e1d5ec4f6e8ff2cda2ad96892d2cc1
2016-05-31 23:00:57 +00:00
Jonathan Hart
6921ceb680 Add ability to add mcast sinks via REST API
Change-Id: Ie757537a8b514bfec1e468628dac1a8faa4405fc
2016-05-24 15:22:41 +00:00
Brian O'Connor
e642f7cf7b Bumping version to 1.7.0-SNAPSHOT
Change-Id: Id105bf08ecbdac6d4e214ae035b4220aea90f29f
2016-05-23 18:35:29 -07:00
Jian Li
2907ad2941 [ONOS-4530] Allow to specify appId when insert FlowRule through REST
- Augment FlowRuleCodec to encode FlowRule
- Add unit test for encode method of FlowRuleCodec
- Add getFlowByAppId and removeFlowByAppId methods in FlowsWebResource
- Add more unit tests for FlowWebResource
- Add FlowRules.json swagger doc
- Rename Flows.json to FlowEntries.json, correct FlowEntries.json

Change-Id: Ic3ec390c13a349e51ae4208adbc478564b6724ba
2016-05-17 18:38:11 +00:00
HIGUCHI Yuta
dea375a7de Remove deprecated ConfigProvider.
Change-Id: Ibf927671b0729212e9d1d2bbfd19d4aaab48b9dd
2016-05-16 16:46:38 +00:00
Jian Li
7d06923446 Fix compile time NPE which is encountered in Eclipse IDE
Change-Id: Id447967ad6c7c68f4a6e5c562e7245029a89902f
2016-05-13 17:08:29 -07:00
Jian Li
a3e4c7ada6 Bugfix: fix the swagger broken issue caused by unsupported data type
Current implementation of SwaggerMojo does not support the data type
other than string, int, long and boolean.
This commit temporarily fix the issue on generating swagger doc.
Eventually, we need to augment SwaggerMojo to support more data type
including other primitive types and even Object data types.

Change-Id: I5cb69ea6af7faecfc19660c4bbf619c3d85508f3
2016-05-12 20:29:47 +00:00
Jian Li
847242ba4e [ONOS-4409] Merge getApp REST methods into one, revise unit test
Change-Id: I47e5dd1d795404d3ba2c73487858a3d389790ac9
2016-05-12 17:16:50 +00:00
Jian Li
cc730a66f5 Clean up source code of REST API
- Add missing @Produces annotation
- Correct comments
- Restrict variable access level

Change-Id: I7f75650b83651248370e7781b1e8aec7eac2314c
2016-05-11 04:34:59 +00:00
Jian Li
a7cd9d75f7 Try explicit class casting to remove warning message
Change-Id: If7830a12e0405c5b37f6e864bd7dfb915871959f
2016-05-10 23:08:33 +00:00
Jian Li
c2a542bcab Explicitly return NO CONTENT type response for http DELETE request
Change-Id: I920084b92197bb1687e7d978ad350b2e1290ecbc
2016-05-10 22:24:39 +00:00
Jian Li
cbf49898a2 Treat null as NOT FOUND for application and applicationId
Change-Id: Ieaf65770b0057c85cef47e1904efbc93709ff06b
2016-05-10 22:11:13 +00:00
Jian Li
e1c1c8dbd2 [ONOS-4409] Support applicationId registration and query via REST
With this commit, we can register and query on/off platform
applications through REST API.

Change-Id: I82e1e0e55bbc017d6c0cce7d9a6af7a578d7196e
2016-05-10 21:46:23 +00:00
HIGUCHI Yuta
4c0ef6b54a ONOS-4416 Remove OduCltPort out of core.
Change-Id: I04324a72e48af84afdbfa32b84c8e57f39411000
2016-05-09 23:38:47 +00:00
HIGUCHI Yuta
95d83e8067 ONOS-4415 Remove OmsPort out of core.
Change-Id: Ic796c4e715789ba18f350f28e29db04dd537822f
2016-05-09 23:38:16 +00:00
HIGUCHI Yuta
34a3f69be1 ONOS-3503 Remove OchPort out of core.
- Implementation of a Behavior OpticalDevice has the knowledge of
  translating annotations into optical specific port.
- OpticalDeviceServiceView checks if the Device is a OpticalDevice
  and translate all the Ports to optical specific port before returning.

- This commit contains feedbacks, issues, and fixes by Michele Santuari.

- Note: 3 more Port types to go (OduClt, Oms, Otu)

Change-Id: I4cbda8bc1922fbdd4dac8de8d02294bad74b8058
2016-05-09 22:24:41 +00:00
Jian Li
0409b709b3 Revise Mastership REST API to use synchronous methods
- Add missing swagger docs
- Add missing unit tests

Change-Id: I21a20410ea322e7893c5c0c48f5d9fd0f2f9dfe1
2016-05-05 00:04:43 +00:00
Jian Li
f96d41fd18 [ONOS-4438] Add REST API for mastership service
- Correct some typos in mastership codec

Change-Id: If8a0127d8d897d4b87cae71a194dfece6aa14f49
2016-05-04 00:10:39 +00:00
Claudine Chiu
1decd53931 ONOS-4077: REST API's for virtual networks, devices, ports, links: add missing onos.rsModel statements + fix example field in JSON files
Change-Id: I1ae2300143a0a56e5413f8837cea3016d964cb6c
2016-04-29 16:22:14 +00:00
Jonathan Hart
c341833b38 Make example priority smaller.
The original value overflows the 16-bits allowed by OpenFlow so that
example doesn't work very well for OpenFlow devices.

Change-Id: I0b61404ff7ae6c542f92787c9e8ab5c7a2e058f1
2016-04-26 15:59:42 +00:00
Jian Li
5c9891010f Update css for swagger 2.4.1, add missing resource to fix js error
Change-Id: I91c932ed21564eb862438464642a2f62982e8c71
2016-04-25 23:03:51 +00:00
Claudine Chiu
a98c2ea61e ONOS-4077: REST API's for virtual networks and tenants
Change-Id: Ic229c9bc78e4bfce20842717ae46a0b8acff0b76
2016-04-22 16:20:36 +00:00
Andrea Campanella
c99d430746 Fixed title field creates empty json objects
Change-Id: I1ccecacde9c5538b29ff219279538c8ea98beaa2
2016-04-21 14:04:26 -07:00
Brian Stanke
9a108975d7 ONOS-3633 - Implementation of virtual network point to point intent provider.
Change-Id: Ie2c1e5ac278bc0dd6259479c44dd92b9b625e90b
2016-04-21 19:12:39 +00:00
Jian Li
83d87a766a Bumpup swagger ui to 2.1.4 to fix the issues in 2.1.0
This commit resolves some issues on generating REST API request,
such as incorrect content-type generation for http DELETE request.

Change-Id: I70bf18247f95ccf22b1fd77bc48ce9977ff57212
2016-04-21 17:01:07 +00:00