1433 Commits

Author SHA1 Message Date
Carmelo Cascone
00a5996a23 ONOS-6605 PI flow rule translator implementation
Change-Id: Icac66f17677c494152207f4b52355ad647e1227b
2017-06-21 20:29:45 +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
Charles Chan
888e20a25d Remove host location when port down or device down
Also refactor Host Location Provider

Change-Id: I57d682ee51e80ddd7e141883521a12da705a336d
2017-06-13 18:58:10 +00:00
Charles Chan
61fc0d8cc9 Extend Network Config Host Provider to support multihoming
Change-Id: I6e9dd18a5189a7bf35a617a00bd46e4a32acf524
2017-06-13 18:52:06 +00:00
Yuta HIGUCHI
19afc03a4a Migrate HashedWheelTimer to netty 4
- moved potentially time consuming task to
  shared ScheduledThreadPoolExecutor

Change-Id: I8e77041e0f84bd2bdfd6ae6704f4e39b81c721dd
2017-06-12 21:49:14 +00:00
Yuta HIGUCHI
9eed0b1a34 Revisit Annotations merging
- avoid extra instantiation/copying when possible

Change-Id: Ia2f74a1fe2ff1176346316565c9bc6786cd7f6e4
2017-06-12 21:19:29 +00:00
Yuta HIGUCHI
45ff2d97a3 Shutdown shared scheduled executor on Core deactivate
Change-Id: I9a7cb1b8db346e2ca5818eeb1986d42a63dec806
2017-06-12 16:37:14 +00:00
Yuta HIGUCHI
3142f646ac Avoid accidental link type override
Change-Id: I3462838f8208c231f7b7ff24e63a03984fae4475
2017-06-09 17:27:31 +00:00
Yuta HIGUCHI
2ad387d7a0 Respect bidirectional link config
- Evict link in both direction, only if the configuration is bidirectional

Change-Id: I64b5d6dcedbbaf6e4e4a146e9dd123c8444c85b3
2017-06-09 17:27:31 +00:00
Ray Milkey
0c6182f643 Remove deprecated proxy ARP implementation
Change-Id: I43164581b5d823acb4617cbea78e670cb7499346
2017-06-02 23:42:53 +00:00
Ray Milkey
a695719fa7 Remove deprecated flow statistics APIs
Change-Id: I0b44886f2e2f549377dd70ce123eefe73eb10fda
2017-06-02 23:42:19 +00:00
Ray Milkey
686fba0b67 Remove deprecated MPLS Intent classes
Change-Id: I6f4d6fd84ce41c26b8a30f5c0881c42c67a1f209
2017-06-02 23:40:46 +00:00
Ray Milkey
dcd5c5c2f4 remove deprecated intent compilation exception class
Change-Id: I85fdd10f918b6323479fbce0cff11cd2814e769a
2017-06-02 15:53:49 +00:00
hyunho1986
5777064501 [ONOS-6534]Device Null Point Error is Expected in PacketManager
Change-Id: Ibc21f78e6f269d902d4d2dfaf3071d804c2c4f72
2017-05-30 16:15:39 +00:00
Charles Chan
a9458535b0 Use DAD to probe if interface MAC is not supplied
Such that probed host will not learn the ONOS dummy MAC from the probe.

Change-Id: I0c4505c8908da2370eed3c2617d1bcf9d921872f
2017-05-29 18:19:19 +00:00
Yi Tseng
b32f774349 [ONOS-6397] Fix incorrect filtering objective condition from Intent copmiler.
LinkCollectionObjectiveCompiler should generate filtering objective
according to different situation.

This implementation use criterion from in/egress FilteredConnectedPoint and encapsulation tag for the
filtering objective.

Change-Id: Ib2ccd6fb00d055a96f2762ce261780ebc544a77b
2017-05-29 00:27:26 +00:00
Yoonseon Han
2b24337193 fix: (vNet) remove dependency for test codes
Remove dependency for intent service for virtual network service.

Change-Id: I7fff4bda367e4d35359ec44c885e942b099653d2
2017-05-26 22:22:27 +00:00
Yi Tseng
0db1f3b7de [ONOS-6481] Fix Intent resource release issue
Lables for encapsulation won't release because Intent manager release the
resources by Intent key only.

Allocate encapsulation labels by using Intent key instead of Intent Id to
resolve this problem.

Change-Id: I8fd52245063ded725e4b2c3911f52c029591ab90
2017-05-25 20:29:03 +00:00
Ray Milkey
8521f810b4 remove deprecated isDurable() method
Change-Id: I000fe7dc49b6ba231cc7483cf0ad67593b50f06e
2017-05-24 21:17:33 +00:00
Yuta HIGUCHI
a684b6ea99 Add K-shortest path API to PathService.
Change-Id: I96732666f31a7a2b2df9a16f63e77bc0a367da83
2017-05-19 15:45:52 +00:00
Yuta HIGUCHI
498fa1d321 Bump Guava to 21.0
Change-Id: Id81705773d191db6a18153d8b2dd4abd2bfd0e60
2017-05-19 15:40:12 +00:00
dingdamu
d3a0b215dd Fix latency constraint
1. Consider that the type "Duration" in the String is composed by
characters and numbers, it's not easy to convert it to double for
comparison, I modified the latency's annotation to
cfg.latency().toNanos().
2. Exclude two EdgeLinks for the calculation of the whole path's latency
3. The unit of latency in ONOS is not the same, so I set all the latency units to
nanoseconds.
4. Add the latency constraint option for ConnectivityIntentCommand.

Change-Id: Iddf5634880e43ed563db9978659db5eb9ee6c7f8
2017-05-19 02:01:23 +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
Yi Tseng
1666b50c78 [ONOS-6476] Fix performance issue of FlowObjectiveManager
Change-Id: I72092e2796d69bccd30c0ab54c5c66d75c5a0878
2017-05-18 21:11:08 +00:00
Ray Milkey
048bf9af15 Remove deprecated API from the Interface class
Change-Id: Id25d58a74cf5511e964b24b3de5eba80da74104d
2017-05-17 17:12:33 +00:00
Simon Hunt
ffbad3b10a ONOS-5784: Empty latitude/longitude in ONOS Web UI
- (part one)
- Enhanced HostManager to react to NetworkConfigEvents such that
     it applies annotations to relevant host instances from the
     config data.
- A little refactoring in DeviceManager.
- Updated topoModel.js to use updated field names latOrY/longOrX.

Change-Id: I06536a6b2279291ffe638549a80b56a9fe94f48a
(cherry picked from commit 78193fd06661a7fa524c8b3a8fa7ddb69d7437c9)
2017-05-17 01:35:57 +00:00
Yuta HIGUCHI
f76f6d588f Add more log for debugging.
Change-Id: I384729ae6b96a5e6fb6529f92cd4606b0262d46e
2017-05-15 18:03:51 -07:00
Yuta HIGUCHI
965da1f700 Fix wrong logger
Change-Id: Iacd56262fbe464fca5258383237caf1cd45cbcb5
2017-05-15 14:47:04 -07:00
Ray Milkey
08b03a9ec8 Starting snapshot 1.11.0-SNAPSHOT
Change-Id: I5aa84e241545dace6192243c0079924ddf899404
2017-05-15 18:40:20 +00:00
Yi Tseng
24d9be7431 [ONOS-6446] ObjectiveTrackerService is not a public service
If an application want to create custom Intent installer, it might need
ObjectiveTrackerService.

However, the ObjectiveTrackerService is not public api (in /core/net,
should be /core/api); so application outside the ONOS can't use it.

Move ObjectiveTrackerService and it's dependence to /code/api

Change-Id: Ie2ad8dd9d39ccae1c91f4b57887089e0aec83ede
2017-05-15 16:45:16 +00:00
Saurav Das
1547b3ffd8 CORD-1180 Collection of fixes for hash-group buckets. Required the following changes:
Next-objectives that edited groups are now queued in the FlowObjectiveManager instead of the driver.
	  During linkup immediately checking for previous portups that should be added to a hash group.
	  A final retry 30 secs later to catch all ports that should be part of the same hash group.

Change-Id: I7ef450149d685890ca47932b8e559a0c11dc5ab4
2017-05-12 21:37:00 +00:00
Yi Tseng
49a2b2e93f Fix incorrect state of Intent after re-installed from FAILED state.
Avoid same IntentData resubmitted by multiple ONOS nodes.
Also, avoid same IntentData/IntentOperationContext modified by different
threds.

Change-Id: Ifb550c41204d6e86e379fd44c2787980920d2b9e
2017-05-12 17:37:31 +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
zhiyong ke
60e40007bd modify the bug of https://jira.onosproject.org/browse/ONOS-6286
Change-Id: I3217ad91eb079a58fc270db121dbd5a2b6d120d9
2017-05-11 22:29:21 +00:00
Yuta HIGUCHI
8091877b33 [ONOS-6414] use Config object from NetworkConfigEvent to avoid NPE
Change-Id: If7170e7b8c18c43321e18c505a15627f485165b6
2017-05-11 22:18:05 +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
Yi Tseng
c927a06fe9 [ONOS-6348] Intent installer redesign
Change-Id: I9ae2e8158dc1c686eaf848f330566f9dbb78405f
2017-05-10 15:24:37 -07:00
Thomas Szyrkowiec
770093f664 Extension of the LinkCollectionCompiler to support Domains
Introduced the DomainConstraint which marks intents that allow domains.
Added the handling of domains to the base compiler and its implementations.
Fixed existing test by adding the domain service and added new ones for domains.

Change-Id: I6594e92e41c2434a9b667415e6fb90a6c571df79
2017-05-10 10:06:44 +02:00
Yuta HIGUCHI
2103304789 Fix to enable adding INDIRECT link via BasicLinkConfig
- addConfig will create and 'advertise' a new default Config object.
  In the case of BasicLinkConfig, default link type will be DIRECT.
  Link subsystem ignores link transition from DIRECT to INDIRECT
  in order to prefer LLDP info over BDDP info.
  As a result it is difficult to create an INDIRECT link
  via Java API calls.

Change-Id: Id736f3a8332b7558387c3eb7598e1239779c6fe8
2017-05-08 20:53:32 +00:00
Yuta HIGUCHI
0164c1c9f2 Log some context when Intent failed.
Change-Id: Ib30f78f970680144f920ca4754825f78eedb658b
2017-05-05 20:54:57 +00:00
Michele Santuari
a271faa8c3 Implementation of the DomainService
Change-Id: I012c31d113fbcc12d4c35cb10d11d7be4cd83458
2017-05-05 16:44:10 +00:00
Yuta HIGUCHI
65d9d0ebc6 [ONOS-6412] allocate resource by Intent.Key
- Allocate resources by Intent.Key instead of IntentId

- ONOS-5808 changed the IntentManager's Intent withdrawal behavior to
  release resouces allocated by Intent.Key
  (was releasing resource allocated by IntentId)

Change-Id: I62e048e4ee8f841b92d9985784c95abba3d37a0a
2017-05-04 22:31:56 +00:00
Andreas Papazois
f00087c132 Intent installer and operations for domain intents.
Change-Id: Id4597baebf587b1bc9b3ae9013383ae50472fa4c
2017-05-04 22:23:59 +00:00
Michele Santuari
03df2a57f2 Domain intent manager
Change-Id: Id146977c2ac94b009d843058f953446f686d1800
2017-05-04 22:15:47 +00:00
Yuta HIGUCHI
ac8b229375 ONOS-6225 Expose k-shortest path search as part of TopologyService.
Change-Id: Idf812a707aba0b972fcfbde871c624dfc86b6e1b
2017-05-04 19:11:06 +00:00
Thomas Vachuska
11b99fc941 Refining driver subsystem to facilitate coordinated start-up.
- for ONOS-6402

Change-Id: I7f64fc62ad1d451fcf55624b2422b60631a3c8e8
2017-05-04 15:55:16 +00:00
Yuta HIGUCHI
e4cb8cf56c Manage misleading log messages
- Reduce logging for
  - Packet rule installation failure for NETCONF packet switch
  - NETCONF device which does not support port stats

Change-Id: I4721f65088f34d3e473f22738f27e093fe8df270
2017-05-02 22:38:14 +00:00
Ray Milkey
8fd28c7b80 Starting snapshot 1.10.0-SNAPSHOT 2017-05-02 14:37:34 -07:00
Ray Milkey
f0099022d2 Tagging 1.10.0-rc1 2017-05-02 14:35:27 -07:00
Yuta HIGUCHI
660aedfa4d Avoid interacting with SB if nothing to do
- Workaround for Fujitsu driver not being able to handle
  empty operation.

Change-Id: I6c68b893360e30beef707e40d2b619912bb9b257
2017-05-02 16:31:16 +00:00