1270 Commits

Author SHA1 Message Date
Jian Li
c35415ddcd [ONOS-3634] Enhance app to have a category, icon, URL and readme
This commmit enhances application to have category, icon, URL and
readme. The web GUI and CLI will be implemented in separate commits

Change-Id: Ib02716d7118cc617b24f196f2213ea1fe99a34be
2016-01-20 00:30:35 +00:00
Sho SHIMIZU
c88b85e944 Rearrange the method declaration order
Change-Id: I00e09be8d1f743a846d96c791cfcf40b104f5cc3
2016-01-19 13:51:51 -08:00
Sho SHIMIZU
67f92819e3 Remove obsolete comments
Change-Id: I62fa18795f2f75a55609157c09866989ad9f22da
2016-01-19 13:51:51 -08:00
Sho SHIMIZU
8f2b777406 Refactor: Remove try-catch by using CompletableFuture#exceptionally()
Change-Id: I728fbcfe8fc4a81da2b08e6dddc1fa63add694a3
2016-01-19 21:39:08 +00:00
Sho SHIMIZU
489aa9ba23 Refactor: Use CompletableFuture instead of Executor#execute()
Change-Id: I97a155498e01c43d8adc83a55dbc2022732c862d
2016-01-19 21:04:37 +00:00
Madan Jampani
8474fdd384 Fix how default partitions are created
Change-Id: Icb4881fb87b982d88502a0201175dbc2bc209c9c
2016-01-19 18:31:00 +00:00
Sho SHIMIZU
9aee1f56ac Refactor: Consolidate multiple map() invocations to single invocation
Change-Id: I53bd6a80f34469eb23874f91dd52a895e0f5a2dc
2016-01-16 01:19:45 +00:00
Andrea Campanella
b75b488fdb ONOS-3760 Injection of mfg/hw/sw/serial in BasicDeviceConfig
Change-Id: I7f2269039e0cdabbee85cdad178c4ca27cdc2dce
2016-01-15 23:58:21 +00:00
Sho SHIMIZU
05abf1388e Refactor: Generate CompletableFuture first, then process it
Change-Id: I1ef5961a863b855ce2687fcbacd2159c77cb64ce
2016-01-15 22:30:01 +00:00
Sho SHIMIZU
b0c4a0796e Refactor: Decompose creating CompletableFuture and process intent
Change-Id: I09de2965b7fbf593c1baf3b2e95ab15437f9a092
2016-01-15 22:14:36 +00:00
Sho SHIMIZU
c95ec3e0dc Refactor: Inline method
Change-Id: Iafa70a7a728a3e701a2f62c4b9c015504bdcfabd
2016-01-15 21:02:01 +00:00
Sho SHIMIZU
594fb2ad77 Refactor: Extract two methods from submitIntentData()
Change-Id: I2c75039bed836ec3695bee1c8a7664bea8779d9e
2016-01-15 21:01:40 +00:00
Sho SHIMIZU
e0981724df Refactor: Use Tools.allOf() to wait until all tasks become completed
Change-Id: I2f032e4d8dd525c4dd40d7ad954dca8c5d33b159
2016-01-15 20:12:57 +00:00
Madan Jampani
ab7e7cd285 First round of ClusterMetadata improvements:
Introduced a PartitionId type for identifying partitions
    Introduced a admin service for making metadata updates
    Update cluster.json format to specify all partitions (including p0) and changed partitionId to be an int.

Change-Id: Ia0617f1ed0ce886680dcee4f5396a4bbdfa225da
2016-01-15 19:32:09 +00:00
Sho SHIMIZU
d755893862 Refactor: Inline invocations and remove methods
Change-Id: I004cab89f9d65cf9acc6721ef5865a8cb66dc61d
2016-01-15 19:21:56 +00:00
Sho SHIMIZU
38a4798ea0 Refactor: Reduce number of invocations of Stream#collect()
Change-Id: Idde16505cbe0a1e56e2b651678a0169df0d06bf7
2016-01-15 19:07:57 +00:00
Naoki Shiota
4ce97ffbf9 Fixed a bug that ComponentConfigManager#preSet never affect OSGi configuration.
Change-Id: If94c841142ce4dc5e430f7d639f2c2d22039e90a
2016-01-15 19:07:08 +00:00
Sho SHIMIZU
98c0a39e92 Apply more functional style
Change-Id: Ief6349fdb84e96d0cf2c432e3a6905fd403a87f3
2016-01-14 18:40:53 -08:00
Sho SHIMIZU
8fa670a8f9 Refactor: Rename ResourcePath to Resource for a better name
Also the followings
- Rename variables from path to resource
- Update Javadoc

Change-Id: I07da7e7d13882f2134a3687c66ed91a9de5b0849
2016-01-14 20:54:42 +00:00
Sho SHIMIZU
ab541a5dbd Refactor: Use Stream API instead of explicit loop
Change-Id: I6ed6aba185a0ce3680fe0612de801a466a848d78
2016-01-14 20:38:45 +00:00
Sho SHIMIZU
ad8ab27309 Refactor: Use CompletableFuture instead of Future
Change-Id: I7bf71a31a6c870c59783caa638c47bc040f655c8
2016-01-14 19:06:01 +00:00
Michele Santuari
69fc2ffb07 Support encapsulation in PathIntent
- related to ONOS-3467
- unit test work
- depends on ONOS-3507 and also on the advertisement of VLAN resource
  for different devices.

Change-Id: Ia852c751135b5ca4a16901c6f3a85ceea11514a3
2016-01-14 07:40:15 +00:00
Sho SHIMIZU
6c9e33a3fa ONOS-3296: Support continuous type resources
Change-Id: I155e41e7a7c1750ff45986a55bedab353485d3fa
2016-01-14 07:36:56 +00:00
Sho SHIMIZU
62bbc60247 Refactor: remove an extra inner class, IntentBatchProcess
IntentBatchProcess wraps a collection of IntentData to just behave
as Runnable. It can be removed by lambda expression

Change-Id: Ic6e1ae840311faff6314a8ce9db9a5277d8595cd
2016-01-14 06:48:12 +00:00
Madan Jampani
1c965106f4 Renaming Partition{Service, Manager, Event} to IntentPartition{Service, Manager, Event} to better disambiguate between another PartitionService that is responsible for managing datastore partitions
Change-Id: I74d311ae991fb241563a1475ea74a625d8069142
2016-01-14 06:41:36 +00:00
Sho SHIMIZU
8992524553 Refactor: Remove IntentWorker by replacing it with lambda
Change-Id: Ic5d235f9b47711c4f87fbcb2e7af83853248ace5
2016-01-13 22:58:03 +00:00
Sho SHIMIZU
ab6c1fec54 Refactor: use ifPresent() instead of isPresent()
Change-Id: I41d6cbf7ba209728ae7e3661e7188ab8eab093e4
2016-01-13 14:21:26 -08:00
Toru Furusawa
72ee30ca50 [ONOS-3730] Populate portSpeed for ODUCLT and OCH ports.
Also move the enum definition of ODU client port signal type outside of OduCltPort class.

Change-Id: Ibdff21d9707ad3d79587f579ad675f673cf9afeb
2016-01-13 19:27:54 +00:00
Ray Milkey
aef4585a6d Revert changes to use constants for Sonar suppression
It turns out that suppression annotations have to have the actual
string literal in them; if you use a defined constant SonarQube
ignores the suppression.

Change-Id: I3628df116d182b01a108da0d6f059784a3be4fed
2016-01-13 17:19:20 +00:00
Thomas Vachuska
138de8bf40 FIxing basic device config and demoting some config-related messages to debug.
Change-Id: I38b8479a9e3f367c26b0400de4c7b92719f19dcc
2016-01-12 18:09:31 +00:00
Andrea Campanella
dcb5e9343a Log for pending configuration
Change-Id: I17ca41de66862eb5c6f818cc0bce7ee8e371fc79
2016-01-11 17:46:38 -08:00
HIGUCHI Yuta
82b3c11ecb Add hasBehaviour to DriverHandler
Change-Id: I2bcfb06795b923de4356937a0baee35b37c7d979
2016-01-10 03:05:12 +00:00
Qianqian Hu
8514f47618 The flowrule is already removed, there is no need to remove it again
Change-Id: I47206dbab68042b02e4ee67c5f3816e595aac38f
2016-01-10 03:01:49 +00:00
Thomas Vachuska
6f350ed200 ONOS-3725 Adding ability to retain pending configs.
This allows up-load of configurations before their backing classes are registered by apps/subsystems.

 Validation and delegation of network config change events is deferred until the class registration.

Change-Id: Ifc9c97fbc86e764cb03cecb1f73f7191de3e7754
2016-01-10 01:26:57 +00:00
Naoki Shiota
6bc04be587 Fixed a bug that ComponentConfigManager#preSetProperty always fails to update a property value.
Change-Id: Id696d4920c6968c4b7592b60644b7593cec0de16
2016-01-08 21:39:08 +00:00
Thomas Vachuska
36008463bd Fixed an issue in basic host and basic link config validations.
Added validation for basic device config.

Made all concrete configurations final (as they should be).

Changed stc to use the new onos-netcfg as a method to re-locate and name devices and hosts.

Change-Id: I372e6c7e6c0fa6fa52301568af73342aaae6347b
2016-01-08 19:30:24 +00:00
Toru Furusawa
c23f583cd0 [Falcon] Register TributarySlot resources in resource manager.
Change-Id: I61d63a7644a9edc2296a8f955af2ac2bfb93a5e4
2016-01-07 22:48:35 +00:00
Marc De Leenheer
622861dab2 Lambda queries don't rely on driver state, and have separate package.
Lambda query returns unsorted set.

fix for ONOS-3620

Change-Id: Ifffd03271f9c8c02be8897c3891c80148342757e
2016-01-06 18:56:07 +00:00
HIGUCHI Yuta
d95f3cda0c ONOS-3422 inter-domain cross connect
- Add network configuration about cross connect port for CO-ONOS
- revised metro.py requires ecord.co app after
  (Change-Id: I3892e780bc6550f8a8d8be622b9fee5322c1dab5)
  to be loaded.
- stop using onos-topo-cfg to send netcfg

Change-Id: Ie90e69c4134d1f71893bf43ee6c290bdbd273aeb
2016-01-06 18:34:37 +00:00
HIGUCHI Yuta
1979f55af7 Bug fixes for ONOS-3509
- Forwarding behavior added to {Device,Link}Store by ONOS-490
  cauesed false update information sent from ONOS node, which has been detached from the cluster,
  to be accepted by rest of the cluster after the detached node has rejoined cluster.

- Fix for periodic mastership check was left out
  when MastershipService#requestRoleFor(..) return value was changed to Future.

- Fix for triggerProbe() related messages getting dropped,
  right after STANDBY -> MASTER role change.

- Local state (connectedDevices) was preventing
  vertical (Core -> switch) Mastership state synchronization.

- Various debug log, comment added during investigation.

Change-Id: I777beadf04db8a879830a07bfdc7ab0e2279f190
2016-01-06 09:12:33 +00:00
Ray Milkey
9f87e51954 Sonar related fixes
- suppress SONAR warning for printing stack trace in CLI
- add string constants for the Sonar suppression identifiers

Change-Id: I03992f89675f9d074347042b7a196dbcc1036c28
2016-01-05 23:55:33 +00:00
HIGUCHI Yuta
d9c6117a2f Clean up tempDir after each test runs.
- Fix for issue with /tmp disk full issue on Jenkins.
- Using JUnit Rule TemporaryFolder where possible.

Change-Id: Ie91eba37581ba5bf6c32be7f614220e2098ce2f8
2016-01-05 17:22:25 +00:00
HIGUCHI Yuta
b7a15d7bb2 Modify MPLS/VLAN query
- ONOS-3507 VlanQuery to return available VLAN IDs
- ONOS-3508 MplsQuery to return available MPLS Labels
- Advertise that VLAN and MPLS resources are available on OVS

Change-Id: I74cd05393c8919b4823d0666348008adb93c9290
2016-01-04 18:52:13 +00:00
Ray Milkey
676249ca1a Fix Sonar critical flagged bugs
Change-Id: I60e9f72a1a66f65366d7dbc5335922e75097c9f3
2015-12-30 19:02:11 +00:00
alshabib
19e2cea9b0 [FALCON] adding api to enable packet requests to a single device.
Change-Id: Id870c13ece658fe61f46194c1e795fb1d209a6a8
2015-12-19 03:32:40 +00:00
Marc De Leenheer
cef45550bc Harmonize resource collectors.
Change-Id: I51fdf9cdf57d3146bd9401ff67e13063830519e4
2015-12-17 22:30:36 +00:00
HIGUCHI Yuta
2cc93f4331 Change default available MPLS label range
- Follow IANA assignments, and
  align with old resource service behavior

Change-Id: I1b7c96707842cf8e6f0f13cff99fa0eda8230263
2015-12-17 18:11:07 +00:00
Brian O'Connor
880dc20ddb Starting snapshot 1.5.0-SNAPSHOT
Change-Id: If9ce4ca5f5f6d089e9f088e710367f4e2ca1c9b6
2015-12-16 22:53:14 -08:00
Brian O'Connor
5a2856fd01 Tagging 1.4.0 (Emu release)
Change-Id: I55e4dbcecbfac86cccae27aa99a813910bd5557a
2015-12-16 22:47:51 -08:00
Brian O'Connor
6b7707101b Switching back to snapshot 1.4.0-SNAPSHOT
Change-Id: Ie726afc2df730a1009db421328267f2dcfedfd66
2015-12-15 15:48:42 -08:00