344 Commits

Author SHA1 Message Date
rsahot036
2c2c6cc3e0 Adding get flow by table REST api, fixing exceptions in dhcp
Change-Id: Idc07992a91c79f594c998b2d78b980036077c0ad
2018-06-27 17:56:22 +00:00
Saurav Das
137f27f0e7 Bugfix in routing logic to avoid null groups; Improvement in group handling.
Two main changes for the bug-fix:
    - avoid doing a full-reroute in the event of link failure as this will leave behind stale state in stores
      if event has been preceded by mastership change leading to the nuking of the ecmpSpg for one of the
      link's devices; instead do a rehash
    - when full-reroute is attempted, do it only once, with a complete nuke of the next-obj store

Improvement in group handling allows for a max number of retries for a group that failed to be added.
Earlier behavior was to try only once, and if it fails, it gets removed from the group-store. Now it
is removed after a couple of retries - so total 3 attempts to program the group.

Change-Id: I54ca8203cef779463522b01353540d12f8be3c91
2018-06-20 17:48:32 +00:00
rsahot036
0f9564d673 Adding new REST api to fetch pending flows only
Change-Id: Idbc84e776934fb8dedd719b1a23be294615c286c
2018-04-30 21:34:40 +00:00
Thomas Vachuska
7ef2671288 Adding new REST API resource to obtain system level summary.
Change-Id: Ia3ce18a50a56aa19d07b594990d3136a7ef07706
2018-04-26 00:06:55 +00:00
Jonathan Hart
471bcbb4fd Add REST API to change administrative state of a port.
Change-Id: Ib0f2fc9e0a2d8126288784d5da78367037638625
2018-04-24 19:51:58 +00:00
Ray Milkey
1657032c03 Fix handling of several error cases in the application REST API
Change-Id: I5a18374834b01e7b79b8f874356bf5f76168b66e
2018-04-17 10:26:54 -07:00
Jonghwan Hyun
2c95acfde8 Support double-tagged host
Change-Id: Ie4041a0b5159e7a8b3a9ed82b55ce3c26b520a3b
2018-04-09 23:17:44 +00:00
Ray Milkey
957bb37377 ONOS-7577 - REST API to add and remove buckets from a group
Change-Id: I95bad8db7baf6231ffb0c077d9e5d8243da64fd4
2018-04-06 00:38:22 +00:00
Frank Wang
d7e3b4bc9d [ONOS-7051] Support for P4Runtime meters
Change-Id: Id71374af65aeb84b71636b4ec230dc6001a77a8b
2018-04-04 00:35:08 +00:00
Thomas Vachuska
a10137c0fc Fixing residual ON.Lab references.
Change-Id: Ic54a281ce67e49236c7aeb536729d3900dd9433d
2018-04-04 00:02:22 +00:00
Ray Milkey
86ee5e8711 Upgrade fasterXML libraries for OS-9
Upgrade fasterXML to version 2.9.5 to address security vulnerability
Wrap calls to treeRead(InputStream) to handle new behavior of null streams

Change-Id: Id199cfacd0cf9e5371dc33de9f1e058c2e72eaa5
2018-04-03 16:49:03 +00:00
Ray Milkey
054e23d0cf Add uptimes to device and cluster REST APIs
Change-Id: I0ccdf4e33135be4bcfd1674a76ff4b39e992268b
2018-03-22 13:48:50 -07:00
Ray Milkey
5c7d488269 SONAR suggestion - proper handling of InterruptedException
Change-Id: I67a93c064708c207d9ce83fac319682c2d17db60
2018-02-07 00:59:07 +00:00
Thomas Vachuska
99b7bbe67e Adding REST API and CLI for managing UI user preferences.
Change-Id: If5a1b347bcf7443120c2dfbb096fca6695b8f0e2
2018-02-02 17:44:19 +00:00
Thomas Vachuska
15370d2a16 Adding a tool for remote collection of node and cluster diagnostics.
- Includes 'onos-diagnostics', 'onos-node-diagnostics'
- Includes REST API /onos/v1/diagnostics

Change-Id: Ife0a15627b14238d0fce52b01b72d56e6a1fe40f
2018-02-01 17:13:36 +00:00
Ray Milkey
094a135ef5 Removed the setServiceDirectory() method from the base web resource
This is a testing only API and potentially dangerous to allow to be public.
I modified the tests that use it to set the value using TestUtils.setField()

Change-Id: Ic590f4641f4e3de208dffa16b3df9a9a2106114b
2018-01-25 01:16:03 +00:00
Ray Milkey
74e5913ec3 Sonar suggestions - fixes to potential null pointer dereferences
Change-Id: I4e350a9d72a9322971d5d4f831f1bdf167986b87
2018-01-18 19:01:54 +00:00
Laszlo Papp
b2a91f268c Fix the Statistics resource title
The Swagger GUI uses this string. "Query flow statistics" is misleading
as this resource also contains port statistics. This was initially just
flow statistics resource before also adding port statistics to it.

Change-Id: I7762159b18284cee0293684d260fb0a1806218bb
2018-01-10 23:09:24 +00:00
Ray Milkey
39f78b6f5a Remove Intent constructor APIs deprecated in 1.9.1
Change-Id: Ib88ee534174882cb135bba70a6cfc86747a0c193
2018-01-10 17:51:04 +00:00
Antonio Marsico
4f68ec98fd ONOS-6613 Non-disruptive intent reallocation
Change-Id: I5d051c20402a226ad540b8bc08695b602ff75273
2017-11-15 20:07:15 +01:00
Kalhee Kim
4b2dc725f3 [CORD-1983] Implement addSource for Multicast REST API
Change-Id: I0cd976e76012eeb4c8ef643cd2f652e3e4e82c83
2017-10-20 00:47:32 +00:00
Ray Milkey
47c954141d Refactor construction of application objects
- Use a builder and make the constructors private for DefaultApplication
- Make DefaultApplication immutable
- Use a builder and make the constructors private for DefaultApplicationDescription
- Make DefaultApplicationDescription immutable

Change-Id: I9499981bd2c0f48aede40682260d51eeae2cab98
2017-09-27 17:23:10 +00:00
Thomas Vachuska
08b4decc39 ONOS-6980 Adding support for download of application bits.
Change-Id: I742950690b50038cac0bb2ad2da4eaac5781da85
2017-09-06 17:37:43 +00:00
Aris C. Risdianto
a579c8f182 Adding MP2SP Intent Codec Unit Test for REST API
Change-Id: I9f71329b895951ffedf182ade9fc4d60d84b9e91
2017-08-16 09:58:10 -07:00
nassima toumi
95761318a8 Adding support for MultiPointToSinglePoint intents in the RESTful API
Change-Id: I25018b93ad5ebf7b4e98c30558c9aad89a86e10d
2017-08-15 21:05:23 +00:00
dvaddire
95c84ed91c ONOS-6245:Intent_mini_summary
Change-Id: I35fe2b5b3f2a24680bbef93ee31e4655b972ff45
2017-08-14 20:40:55 +00:00
dvaddire
e113b65a6c NPE_app_delete
Change-Id: I2af8fd7da6c4e5963d07f23ce9d4dc89e35ed30c
2017-08-08 14:10:50 +00:00
Brian O'Connor
a09fe5b0b7 Updating Copyright line to Open Networking Foundation
Change-Id: Icba96d7f39a065b53f34a6aeb71afd1f7d51f774
2017-08-03 21:12:30 -07:00
Carmelo Cascone
416057415f Support for generic table IDs in flow rules
This change is needed to let appications specify tables in flow rules
using indentifiers that are not numeric, e.g. using table names as in a
P4 program.

This change deprecates the FlowRule.tableId() method, in favor of
FlowRule.table(), which returns an object of type TableId. However, it
does not deprecate the .forTable(int tableId) builder method, since it
is used extensivelly in the ONOS code base and from external
applications.

Deprecating FlowRule.tableId() does not seem to be such a painful move
since it is used less frequently, e.g. only 22 usages in the ONOS tree.

Change-Id: Idaaaab53d0c1e20a1f9c7de84de09ec3a42648b5
2017-06-21 17:10:21 +00:00
Patryk Konopka
7e40c01118 [ONOS-6607] Get active flow entries count in FlowRuleService
Change-Id: I68b4d916f92427c06a82d3622fcc05738f64541c
2017-06-20 15:43:27 +00:00
Rafal Szalecki
f97e0edd8e [ONOS-6547] Add method to obtain intent's installables in REST API.
Change-Id: I80bbb25ecda292bb4f658d0d76fd49d7fabe8732
2017-06-14 09:17:27 +00:00
Ray Milkey
b83797cf29 Fix REST server side exception if array of devices is given
Fixes ONOS-6637

Change-Id: I7ec201e58f9e90a026fcdc1912b04e7398d8c2de
2017-06-13 16:15:13 +00:00
deepa
da61146a90 ONOS-6517
NPE in network/configuration. Error in a config field shows error 
message 400 instead of 207.

Change-Id: I20aa8f7741262b46fbc56123e01524dcd165ff7c
2017-06-02 12:54:33 -07:00
Charles Chan
cd06c69b69 Extend host structures to store multiple locations
Also update host location format in CLI and REST API

Change-Id: I0fbd655f642627dd3eb8a2925f83a3ee016fe4aa
2017-05-29 18:19:19 +00:00
Yuta HIGUCHI
4f8a377740 ONOS-6468 Fix for race condition between compilation and installation complete state.
- Fix for a bug where intent compilation complete state,
  can overwrites intent installation complete state,
  if intent installation completes before compilation complete state is written to the store.
  - Introduced internalState version on IntentData,
    which is effectively mutation count, in order to avoid
    batch write of compilation result overwriting installation result

Change-Id: I5d77dfbe496e690ebdf2b4f9643d2b64c4233182
2017-05-18 21:26:07 +00:00
sivachidambaram subramanian
8c9a701804 [ONOS-6354] CFG values and applied values are mismatching while trying to set a property with an invalid value
Change-Id: Id2e343c61419441d0b9554df3291b35829e850ab
(cherry picked from commit c86d95f969864664beb3948bc5ff2c455e372393)
2017-05-12 17:04:22 +00:00
Thomas Vachuska
2048c1f81b Cleaning up intent tests setup/teardown to avoid cascading failures
with respect to binding ID generator.

Change-Id: Ia4778f16ff5a3ecb26062e7d7b2c36493081140d
2017-05-11 09:39:42 -07:00
rohit
c2e7736cf4 fix for incompatible multiplication cast from int to long
Change-Id: I1058653420ba7cd1caaf63c315faeb6ec14dbd94
2017-04-27 16:13:55 +00:00
kalagesa
42019545ef ONOS-6106 Adding Missing Fields in the " get flows and get devices" rest api
Change-Id: I6657b8d75388e850acaa53fe4f5be261e45a9bca
2017-04-18 19:50:49 +00:00
Jon Hall
a3fcf6754a Fix Sonar issue:
Strings literals should be placed on the left side when checking for
equality

Change-Id: I4537e08936731ace55aeecb3ad941269ec1eb191
2017-04-05 22:54:30 +00:00
Ray Milkey
634eb17ac5 refactor flow entry mocks to use adapter
Change-Id: I948468aba42a1da70162dc77ab86e6ff79fb3ace
2017-04-05 22:44:02 +00:00
Ray Milkey
88cc3432cf Update checkstyle to version 6.19
Change-Id: I32787f2a5f4f4b17fd4cdcf9bd2eb3903dcecfff
2017-03-31 00:59:32 +00:00
Yi Tseng
fa394defdc Fix for ONOS-5175. GroupId refactoring.
Science DefaultGroupId was deprecated, remove it from ONOS

Change-Id: I82394e58ec1ba10c37492ed77546e233de9f934f
2017-03-24 21:13:57 +00:00
Jian Li
1c94b9de23 Bump swagger ui from 2.2.5 to 2.2.10
Change-Id: I8ecfba9074dd77224e661cad0034480755fcc5eb
2017-02-08 15:47:21 +09:00
Sangsik Yoon
9df5bc64eb OpenTAM-DPIS: REST-API swagger-doc DpiStatistics.json format bug fix
Change-Id: Id17e6c14b09469f63f6e1c94a482b403b25ce80b
2017-02-03 17:48:12 +00:00
Jonathan Hart
f09a13a468 Update link to static flows json documentation
Change-Id: I25b5c10d80c8b854512cadf6386340c9a6c59e1f
2017-01-26 09:52:14 -08:00
rohitsharan
fd74760e0f null pointer dereference in IntentsResourceTest.java
Change-Id: I147b7d246f71fd264cb56128357d629d280f42e9
2017-01-25 17:05:23 +00:00
Jon Hall
cbd1b39f58 Sonar fixes
Rule: Use isEmpty() to check whether the collection is empty or not.

Change-Id: Ib5ab56b2263623b297db56c5cac2c2ee80e12725
2017-01-19 20:24:18 +00:00
Yuta HIGUCHI
2035e72bca Log added resource path on load/unload
Change-Id: I5404e338eb400ee10e3658ffbdfc80c10a14a288
2016-12-21 17:52:21 -08:00
Thomas Vachuska
58a7c348f5 Added REST API to administratively remove hosts.
Change-Id: I8f2427f9365fefdc18771daf70b8f8abcad42b0b
2016-12-13 19:36:00 +00:00