3083 Commits

Author SHA1 Message Date
Madan Jampani
f2f086cfd8 Added Change utility class for representing change events + Moved Match class to org.onlab.util
Change-Id: I08e8cd8dd92983bd2764e83016b1abc0bf29388f
2016-01-14 03:15:08 +00:00
HIGUCHI Yuta
556cf1ea45 Fix javadoc error.
Change-Id: I98ed05ec5467894345e4f0b07b4d4b46ab55d8f5
2016-01-13 18:04:58 -08:00
HIGUCHI Yuta
4ea4e42e25 Should compere scheme.
- Bugfix for bug introduced in bugfix for ONOS-3509

Change-Id: I459112483e22c0493bf9c628a0540036f8ee779b
2016-01-14 01:17:04 +00:00
Madan Jampani
3289fbf050 Added custom transport implementaion (for Catalyst Transport) for all copycat specific communication
Change-Id: I801d973b7c3412f6a8efcec77fe73fc480b2ce6e
2016-01-14 00:49:27 +00:00
Madan Jampani
d36def0944 MessagingService API enchancements
Change-Id: Iabfe15d4f08d7c53bd6575c5d94d0ac9f4e1a38e
2016-01-14 00:19:34 +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
Simon Hunt
be60ddebd6 ONOS-3755: use thousand separator for packet and byte counts, etc. Fix alignment (numbers right justified).
Change-Id: Idb407fb16a82d5e3fb6fd10a6599b263a777deb2
2016-01-13 12:49:44 -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
Rimon Ashkenazy
e320103340 Add new OFOpticalSwitch13 LambdaQuery, and corrections to OMS port Desc:
- fix OmsPort totalChannels(),
 - fix creating OMS PortDescription with correct parameters of min/max frequencies.

Change-Id: I9adbbb4e1e9ebe20ba4b3c2ae23b7a0651af5d66
2016-01-13 19:03:27 +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
Jian Li
3756cc39ac Change applicationId's equality checking and hashing method
Application id in applicationId class is transient.
So it would be better to use application name to check equality.

Change-Id: I5f6807054e9a882316ff0a88242cb752eb78bcb9
2016-01-13 08:11:47 +00:00
Simon Hunt
3e4ccaf052 ONOS-3749: Show Flow ID and group ID in the flow table as hex values.
Change-Id: If98e0d76876ada2fa1c8d01a1b89230d1919f6c5
2016-01-12 20:53:11 -08:00
Jonathan Hart
24e296b869 Prevent null treatments
Change-Id: Icd40ab7f986f9738d0445428cd1f0c9053ed4e88
2016-01-12 14:47:07 -08:00
Ray Milkey
64591a6efd Fix problem with apps disappearing after cluster restart
Change-Id: I5d7d6b86677fc5deb8d576e3e5b107c8c4c763e5
2016-01-12 18:13:02 +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
Jian Li
68c4fc4862 [ONOS-3737] Bump up checkstyle version from 2.16 to 2.17 with some compilation fixes
Change-Id: I3ade52ff15b3114f5748ab3151c02c8c74af38f0
2016-01-12 03:07:57 +00:00
Andrea Campanella
dcb5e9343a Log for pending configuration
Change-Id: I17ca41de66862eb5c6f818cc0bce7ee8e371fc79
2016-01-11 17:46:38 -08:00
Ray Milkey
fd563f5df4 Fix for ONOS-3649 - ONOS loses AAA app config across cluster restart
The persistent map for the network config store uses the app ID as
a key. App IDs were not presisted, and could be generated differently
when a cluster comes back up. This change makes the IDs persistent.

Change-Id: I665ebc764cdf57c10fecda4f0b2206f2a2aa191c
2016-01-11 15:09:30 -08:00
Sho SHIMIZU
76b30f7881 Rename ResourcePath.Key to ResourceId for naming consistency
Change-Id: Idb34624f897b0fd5745f26758a007c171f4cd774
2016-01-11 22:38:16 +00:00
Sho SHIMIZU
7e6d18ec9d Introduce ResourcePath.Key
Change-Id: I4efd5c13a12f2bad5482f5b432e2f1ef2c337805
2016-01-11 22:08:15 +00:00
Hyunsun Moon
c8fe98b869 Added ARP criterions to KryoNamespaces
Change-Id: I2ed9ac8d664f2e532118752f4f63e0fbdff73a00
2016-01-11 00:02:53 -08:00
Sho SHIMIZU
00762ee39f Avoid potential round-off error caused by floating point
Change-Id: If1a6266c7a0951441de3fe444663a109bb819056
2016-01-10 03:15:59 +00: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
Jian Li
8bcef8bfaf [ONOS-2225] Add codecs with unit test for FlowObjective REST API
* Add codec for FilteringObjective
* Add codec for ForwardingObjective
* Add codec for NextObjective

Change-Id: I715aa7f1969697468692459052fd27cc65ca2363
2016-01-10 02:59:56 +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
Simon Hunt
db450ee093 Reverted constant accessors to be public again.
Change-Id: Iaae04eb4157350d7a16e7998eb3ed64082d158bd
2016-01-10 01:20:10 +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
0f5da69026 [ONOS-3717] Add checkNotNull for the parameters of the constructors of OchPort, OduCltPort and OmsPort.
Change-Id: I48a5735b3b421d7bbcd91e318ae7bb090d914cbc
2016-01-07 23:49:50 +00:00
Toru Furusawa
c23f583cd0 [Falcon] Register TributarySlot resources in resource manager.
Change-Id: I61d63a7644a9edc2296a8f955af2ac2bfb93a5e4
2016-01-07 22:48:35 +00:00
Ayaka Koshibe
3ddb7b2575 [Falcon] link discovery -
- safety checks against fingerprint being null
- checks for foreign fingerprint and probe message origin

Change-Id: I2f3e491802afc2091335bd25fcf24865293bde10
2016-01-07 19:45:32 +00:00
Jian Li
79f6732b59 [ONOS-3642] Add missing meter icon in topology view
Change-Id: Iba1f10adf981b90fbc47ec649493436c7c50589c
2016-01-07 16:45:37 +00:00
Aaron Kruglikov
7adb89ee1a Adding omitted copyright.
Change-Id: I6efdf3ce8e3a7a08c1988f5e65d3ba779564e5b6
2016-01-07 02:05:57 +00:00
Andrea Campanella
80520b89b1 ONOS-3650 Device driver multiple inheritance
Change-Id: Ib7b72d44533d4e63c4122662b50485243562aa21
2016-01-07 02:02:02 +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
Thomas Vachuska
762a2d8d0b Fixing various exception issues.
Change-Id: Ic02d66c2ebceda8c05f93b367aa9ff38a11a7a5b
2016-01-06 18:49:59 +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
Aaron Kruglikov
12faf8de83 Adding driver and behavior for getting configuration on NETCONF devices.
Change-Id: Id6986f60e8c3db0d8295576b856c04c82ae0edcb
2016-01-06 09:11:44 +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
Changhoon Yoon
e71dfa4847 ONOS-3521: SM-ONOS performance improvement
Change-Id: I8643187f2ceb35f8e0701d9e7ddb10098f05b244
2016-01-05 14:14:18 -08: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
9092db839e Event history service and CLI
- Tool created while debugging ONOS-3509

  Usage Example: (See recent Mastership and Device events)
   onos> events -m -d

Change-Id: I87aceaf8fe61732a61c2d1e39399d0f10a729b54
2016-01-04 23:35:37 +00:00
Jian Li
fc5ca93765 [ONOS-2809] Support a TransactionalSet data structure
Change-Id: Ia99bc2285b3fea39ee3845f5f6613a45a6a61626
2016-01-04 22:29:54 +00:00
HIGUCHI Yuta
34e6314d31 Remove @Deprecated from Annotation keys used by netcfg
- These annotations get added when a value is configured by netcfg subsystem.

Change-Id: Ie52f4827628051f61df9b297001c46db4915e91c
2016-01-04 22:18:11 +00:00
Jonathan Hart
89e981ff59 Update 'last seen' field on flow rules
Change-Id: I7400bd181c41e605c03a60d05b08337e529e080a
2016-01-04 22:17:27 +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
Jian Li
1932b93cc8 Add getMeters method for obtaining meter collection by device id
Change-Id: Ie5137ef8acce7643a58c2faa00b7027e3b9f38fa
2016-01-04 18:46:47 +00:00