1661 Commits

Author SHA1 Message Date
Saurav Das
d5ec9e992f Adding to the 'devices' cli command an output that displays the local connectivity of a device.
For example, "id=of:0000000000000203, available=true, local-status=connected 18m7s ago, role=STANDBY, ..."
Also increasing the resolution of the TimeAgo utility.

Change-Id: Ie1b89bd193552e0edd38a9ca28c5ce99b1d27c19
2017-01-17 22:41:43 +00:00
Pier Luigi Ventre
6fd1ca95aa Revert "Allows duplicating packets when requesting packet-in via PacketService"
and makes wipeDeferred as default.

This reverts commit 874900ec363da57928d6f087527e6e9cbfbc0645.

Change-Id: I080ece4f2f316a95c36bdd09f91c0482fbe6f8d9
2017-01-16 17:02:01 +00:00
Sho SHIMIZU
f84ea7fb57 Output log on a failure of resource registration
Change-Id: I9a98dc49ae0f5f265fdc3b03142181348f86ee0f
2017-01-11 17:56:37 +00:00
Charles Chan
874900ec36 Allows duplicating packets when requesting packet-in via PacketService
If false, the original packet is always sent to the controller.
If true, a copy of the packet is sent to the controller, as long as the packet can be duplicated.
If duplication is not supported, the original packet will be sent to the controller.

Change-Id: I566c799bb0afed03c3fae5815aa926b338cad953
2017-01-11 17:44:15 +00:00
Pier Ventre
2c433ce4d8 Fixes [ONOS-5742]
Changes:
- Fixes the problem of "missing" installation contexts
due synchronization problem on IntentInstaller;

Change-Id: Ia8f9fa27f4d23ad390d73fe40739490836af178f
2017-01-10 17:43:46 -08:00
Brian O'Connor
c590ebbc12 ONOS-5691 ONOS-5742 Fixing intent framework difficulties
- Refactoring AbstractAccumulator to use less blocking synchronization
- Fixing bug in AbstractAccumulator that could leave some items
  without firing
- Updated IntentStore for resubmitting pending operations

Change-Id: Iaf240da65e11ceb7d7d745cf4e25bfb8c26ed1eb
2017-01-10 17:42:08 -08:00
Bharath Thiruveedula
651a7daf73 [ONOS-5192]Make devices unavailable when master fails
If the devices has no standby nodes and if the master of the
device is down, then this patch makes the device unavailable

Change-Id: I470187e13c93a7aa83c961a3d037e65b2627fc29
2017-01-04 18:29:53 +00:00
Sho SHIMIZU
4c7fcdff5f Use more functional idiom
Change-Id: I125dcb795b8b9dc7651a5b5891c4687368530db7
2016-12-22 11:17:43 -08:00
Pier Ventre
78e73f6d29 [CORD-653] Fix host monitor and provide utility functions
Changes:
- fixes host monitor generating correct probe;
- provides and tests utility functions to calculate well known address;
- provides utility functions to craft ndp solicit and ndp adv;
- provides utility functions to craft arp request;
- provides utility functions to craft icmp and icmpv6 response;

Change-Id: I5a4fa89e549fd665a48e51ba3438932849f6627c
2016-12-14 17:54:11 +00:00
Sangsik Yoon
b1b823fd3f [newOpenTAM] new Upgraded AFM and FlowStatisticService
New Upgraded AFM(Adaptive Flow Monitoring) and FlowStatisticService.
  .Reabsed from master 2016.12.06, and assumed avgPollInterval in FlowStatisticService with flowPollFrequency in case adativeFlowSampling is true or false
  .Fixed Yuta HIGUCHI comments, 2016.12.03
  .Fixed checkstyle warning
  .Rebased and added interrupted flag for exiting while() loop when IterruptException is caught in NewAdaptiveFlowStatsCollector.java

  .Fixed and added javadocs from Thomas Vachuska's comment
  .Removed synchronized block in OpenFlowRuleProvider.java for avoiding performance degradation
  .Rebased from master 2016.10.13 1.8.0.SNAPSHOT
  .Rebased from master 2016.09.09
  .Fixed Yuta HIGUCHI's comments
   (made default getFlowEntriesByLiveType interface,
    added checkArgument() for StoredFlowEntry,
    added @Deprecated annotation @deprecated javadoc,
    added Thread.currentThread.interrupt()
    and fixed Default Adaptive Flow Sampling value with false.)

  .Rebased from master branch
  .Fix typo in FlowRuleService.java comment line
  .Quick Bug fix in NewAdaptiveFlowStatCollector
  .master rebased for fixing build Failure
  .Removed synchronized block in FlowRuleProvider and NewAdaptiveFlowStatCollector for performance upgrade

  .Removed duplicated flow entries in NewAdaptiveFlowStatsCollector
  .Removed additional operation (add/remove/mod) of flow entry in OpenFlowRuleProvider
  .Set default adaptiveFlowSampling value with true
  .Added liveType (IMMEDIATE, SHORT, MID, LONG) member variable in FlowEntry
  .New added PollInterval static class for pollInterval value adjustment
  .Updated FlowEntryBuilder and FlowEntry constructor
  .Added liveType print in FlowListCommand CLI
  .Removed FlowStatisticStore, used existing StatisticStore
  .New added FlowEntryWithLoad for replacing the old TypedFlowEntryWithLoad
  .Added new interfaces in FlowStatisticService
  .Updated GetFlowStatistics CLI for using new interfaces
  .All Typedxxx classes are deprecated

  .new created review 9292 from review 9232
  .fixed Jian Li's review comment from review 9232
  .fixed Build failure in core/net/BUCK file

Change-Id: I7a0e39c5220a2b279b68a195347c183b5bdf1a49
2016-12-07 20:04:36 +00:00
Simon Hunt
5361221a17 Working on Bay-Area-Region Demo.
- added latitude / longitude parameters to regions, so the icons can be "placed" on a GEO-map

Change-Id: I5cf939f22597d4658ab603459b2b3059ba0db0c9
2016-12-05 00:50:46 -08:00
Yuta HIGUCHI
1f72203ec2 Add missing dependency during test run
- Inject LinkCollectionIntentCompiler dependency on JUnitTest run
- Add sanity check on LabelAllocator construction

Change-Id: Ic7f1a8a85f5dcc85c9ffe1d2c25c2dc509e08d30
2016-12-03 14:02:41 -08:00
Ray Milkey
72bcefefce Starting snapshot 1.9.0-SNAPSHOT
Change-Id: Iae30168353c72c4e2d5e395298ceca5dd7554984
2016-12-02 16:22:53 -08:00
Ray Milkey
bc3c6ba539 Starting snapshot 1.8.0-SNAPSHOT 2016-12-02 15:59:38 -08:00
Ray Milkey
a222d05a18 Tagging 1.8.0-rc4 2016-12-02 15:49:32 -08:00
Ray Milkey
b547e06157 Starting snapshot 1.8.0-SNAPSHOT 2016-11-30 15:10:18 -08:00
Ray Milkey
4f6d428dc7 Tagging 1.8.0-rc3 2016-11-30 14:52:32 -08:00
Yuta HIGUCHI
3a2a987cff ONOS-5701 fix for NPE symptom
Change-Id: I6cf2035ada7eec2c50400013aaa91ada22d605ae
2016-11-29 20:24:23 -08:00
Ray Milkey
58c6af2321 Starting snapshot 1.8.0-SNAPSHOT 2016-11-22 17:26:52 -08:00
Ray Milkey
8b8b30ce29 Tagging 1.8.0-rc1 2016-11-22 17:08:32 -08:00
Bharath Thiruveedula
99849dc9d1 [ONOS-4992] Modify the return signature for FlowRuleService for consistent return object
Change-Id: I06154d79ea9d875c503369dcb77d5fffcfbd4467
2016-11-22 22:43:26 +00:00
Pier Ventre
5c4a07680f Fixes LinkCollection compiler
Changes:
- adds the ability to handle co-located ingress/egress points;
- adds new unit tests to test the proper handling;

Change-Id: I63da5057e716cc94fcca8f13debafc44633b6820
2016-11-22 11:12:30 -08:00
Yuta HIGUCHI
652f27f0fe Inherit Intent Key on compilation
- Added Intent#key() method description
- Inherit key field from parent Intent during Intent
  compilation process
- Added assertion to existing unit tests

Change-Id: Iff85c5ec448b3f378957b7a20af865ad96cc3216
2016-11-21 21:37:09 +00:00
Pier Ventre
ffe88d6de1 [ONOS-4595] Harmonize the sb of the Intent Framework
Changes:
- Moves PointToPointIntent to LinkCollectionIntent;
- Moves PointToPointIntent to the new FilteredConnectPoint API;
- Updates unit tests;

Change-Id: Iade5090b9289c5b2d9f4ee41aa0d2d01b5e3699c
2016-11-18 17:58:27 +00:00
Pier Ventre
98308ab4a3 [ONOS-4595] Harmonize the sb of the Intent Framework
Changes:
- Moves HostToHostIntent to LinkCollectionIntent;
- Updates unit tests;

Change-Id: I092f77e695e724904be1a7e9c92b27df85b30e48
2016-11-18 17:05:15 +00:00
Jihwan Kim
a19e1b7393 [ONOS-5560] remove unneecessary comments
Change-Id: I0ae491a3be2a97a35e724f79fcdf2e084a8fbabf
2016-11-18 16:02:41 +00:00
Pier Ventre
81c47bfe1c Fixes [ONOS-5415] and [ONOS-5491]
Changes:
- Introduces ordering between core ports and egress ports;
- Introduces ordering between egress ports;
- Introduces ttl_in and tll_out in the link collection compiler logic;
- Optimized push/pop mpls/vlan actions;
- Optimizes dec ttl related actions;
- Optimizes ttl_in and ttl_out actions;
- Makes the optimizations configurable;

Change-Id: I60f187031e89c366ec9c79d1652a5fb0da96c206
2016-11-18 03:21:39 +00:00
Pier Ventre
766995d7ff [ONOS-5239] Adds encapsulation to LinkCollectionIntent
Changes:
- Adds encapsulation to LinkCollectionIntent;
- Cleans the code and adds comments;
- fixes ethertype issue for mplsPop
- Adds unit tests;

Change-Id: I4398426e73c5a9dd085689cb56162bd2c3b8f5af
2016-11-18 03:14:10 +00:00
Brian O'Connor
382243012a ONOS-4858 Resubmit pending intents with same timestamp
This will avoid needless recomputation if the intent processing is delayed.

Change-Id: I851c4ce65271a250da89f919886a3f26a774d20c
2016-11-16 17:07:01 -08:00
Yuta HIGUCHI
37dca33267 Exclude alien Port from Edge ports
- Remote end of inter-domain link can contain Port
  not managed by local cluster. Exclude them.

Change-Id: I74cd705d98d16ffefd14242ac273272bb1e6677d
2016-11-15 17:57:48 +00:00
Jihwan Kim
fc1bf3406b [ONOS-5560] IntentCleanupTestMock::corruptPoll fails very rarely due to race
Change-Id: I24fa09b2c6cfd2a9f95fd8fccc168bcc25b01c78
2016-11-11 17:54:49 +00:00
Ray Milkey
ef79434ff7 Fix Javadoc warnings
Change-Id: Ia5fe7785f76da92abbf940599cbd3d7dc6ac2cc5
2016-11-10 18:42:48 +00:00
Simon Hunt
1e20daebb7 Added UI_TYPE annotation key, and augmented BasicDeviceConfig and BasicHostConfig to support defining a custom "uiType" value to override the glyph used in rendering on the Topology View.
Change-Id: I615540419bce6e89e3761ef6ed3b9906be64b266
2016-11-09 18:35:13 +00:00
Ray Milkey
5d08e1eed0 Unit tests for virtual host codec.
Change-Id: I8abd25e00eebe615fad9ab37192443f5076b6933
2016-11-08 16:50:56 +00:00
Sho SHIMIZU
c0bfe7c992 Revert "Copy FlowOperationsProcessor defensively for thread safety"
This reverts commit f752afc1cf0b850e930d146cac67aac8943cc82a.
This reverts could reduce the risk of ONOS-5271.

Change-Id: I32817403ef803dcf6adfbb98f99f8724ca7575d7
2016-11-07 17:42:04 +00:00
Sho SHIMIZU
b9e0ab77db Revert "Provide hasFailed explicitly"
This reverts commit 3f7513ef155ba22f44491bb73d284c5476c1cea2.
This reverts could reduce the risk of ONOS-5271.

Change-Id: I4be276bc169beec0fc86e6a06ea875951fb295b7
2016-11-07 17:33:41 +00:00
Pier Ventre
f8543d837e Fixes [ONOS-5412] and implements [ONOS-5300]
Changes:
- Adds a new Interface for the selection algorithms;
- Re-implements FirstFit and Random selection;
- Adds a new option to select the algorithm;
- LabelAllocator provides a single interface;
- Fix MPLS encapsulation;

Change-Id: Ib07942355c45b7b9e7093fa85964c2ac20800b60
2016-11-07 17:21:44 +00:00
Yuta HIGUCHI
4d19ab9398 Adding javadoc to IntentInstaller.OperationContext
Change-Id: I9b37b4181d9130fccbed19bb13b3c1df0c0d0e0d
2016-10-28 23:32:43 +00:00
Jonathan Hart
617c284b54 Remove log message about default cluster metadata provider.
Change-Id: Icfcc4fe722732cfd49883ea1746c1699c63a6736
2016-10-27 22:22:31 +00:00
sangyun-han
6d33e807cb FIXME: Move to app package
Change-Id: Iac84243d5b4767109d3c375efa36fd67bf9892d0
2016-10-25 16:32:32 +00:00
Brian O'Connor
a91dc198c8 Adding FIXME to IntentCleanupTestMock
Change-Id: I8e0e59a1c07055eefb81d434bcbd129748497585
2016-10-25 00:46:14 -07:00
Simon Hunt
d7395c832b Added UiTopoLayoutId network config to BasicNetworkConfigs.
Change-Id: I3ec54a883e0b79f3cce5e9aff2f7ae7d56cc593e
2016-10-21 21:45:49 +00:00
Ray Milkey
ce48f968ea ONOS-3600 - use separate dispatch queues for different classes of events
Change-Id: I139a3f4eb58db233ac009d03664281eefe357157
2016-10-21 19:40:20 +00:00
Simon Hunt
1bee52920f Partial revert of hosts/regions work to fix NPE with null provider.
Change-Id: I7dacad818ca9ffa2ea8085c499990c8e92644607
2016-10-14 11:19:14 -07:00
Simon Hunt
351282d5fc Revert "Fixing Hosts filtered by RegionId... for topo-2 view."
This reverts commit 4aef6c371a5fd25171ef9ea8faf193d662c5544c.

Change-Id: Ib2959eb73686af2788525710e33f8fc8db78b819
2016-10-14 16:27:48 +00:00
Simon Hunt
4aef6c371a Fixing Hosts filtered by RegionId... for topo-2 view.
Change-Id: I7779edc5e25957e9fcd0203b05942e9122461b13
2016-10-13 19:48:31 -07:00
Simon Hunt
f59d36b054 ONOS-5411: Introduce basic region config.
Change-Id: I3f58e5758d0b350a9e8a03093a1475dbbacfc446
2016-10-13 21:23:57 +00:00
Yoonseon Han
6c60389e14 In vnet CLI, separates virutal port creation and binding operations.
Original usage with specifiying a phyiscal port is also in supporting.

Changes.
1. vnet-create-port allow to create virtual port
   without a specific virtual port
2. vnet-bind-port command is added to newly bind or to update
3. Virtual binding point is changed from Port to ConnectPoint.

Change-Id: I4c8f9a2b9b2786ba519ead3559d7f005390fee86
2016-10-13 18:38:44 +00:00
Pier Ventre
973bb03e63 Fix [ONOS-5467]
We were missing the selector during the
building of the sp2mp and mp2sp.

Change-Id: Ica456e7c92ef346721ce3f4ceccaf55033d25029
2016-10-12 07:25:24 +00:00
Steven Burrows
19e6e4fa6e Implementing region hosts for topology 2
Change-Id: I6d1e45b1152b2387d4ff981dc0666868235eb1c3
2016-10-06 18:24:18 +00:00