525 Commits

Author SHA1 Message Date
Charles Chan
b9cfc3ac21 Try to get driver info by lookup mfr/hw/sw when the device is not found
Change-Id: Ieff0aa5b23902371eeb9b9c6d68bf332e010ecf7
2017-08-08 18:41:38 +00:00
Brian O'Connor
a09fe5b0b7 Updating Copyright line to Open Networking Foundation
Change-Id: Icba96d7f39a065b53f34a6aeb71afd1f7d51f774
2017-08-03 21:12:30 -07:00
Charles Chan
a59f9b76c8 Introduce driver property to suppress meter feature
Piggybacked in this commit:
- Fix CLI output of driver properties
- Fix mfr matching pattern in onos-drivers.xml
- Add driver support for Accton OFDPA 3

Change-Id: Ia350bd52f4e88e53565ff491d68bce5e4894bbb9
2017-08-03 11:29:40 -07:00
Ray Milkey
64677e99d9 Starting snapshot 1.11.0-SNAPSHOT 2017-08-01 10:48:08 -07:00
Ray Milkey
17463db855 Tagging 1.11.0-b3 2017-08-01 10:46:24 -07:00
Ray Milkey
64313cbc83 Starting snapshot 1.11.0-SNAPSHOT 2017-07-20 15:46:52 -07:00
Ray Milkey
7e28519e5f Tagging 1.11.0-b2 2017-07-20 15:45:28 -07:00
Ray Milkey
f14cc6d3c2 Fix SNAPSHOT version string
Change-Id: I090c1998e5a117c10263b7a6abbffc624beb4074
2017-06-28 16:36:27 +00:00
Jordi Ortiz
af75c13b9b FIX: Set band.type in MeterStats to avoid nullpointer in meter related operations (e.g, removal).
Change-Id: I0ff8ee537f0e4f8068f494799ef72d282b33f471
2017-06-28 15:58:47 +00:00
Ray Milkey
7463193198 Starting snapshot 1.11-SNAPSHOT 2017-06-23 16:46:27 -07:00
Yuta HIGUCHI
45d98b37b2 Remove unnecessary boxing.
Change-Id: I788a044ba8a52ab16ea5f312fde862e8a0612e34
2017-06-21 22:38:56 +00:00
Yuta HIGUCHI
f42a2ccc39 [ONOS-6386] Polatis OpenFlow driver
- Handling Polatis extention for ofp_port_stats_prop_type (=OFPortStatsPropVer14)
  0x7C00 (=31744 in decimal) is future work.

Change-Id: I8ad309502737d2bff46e412e80f4310ca61bf254
2017-06-15 17:25:52 +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
6ee6b8ccd2 netty4 OpenFlow southbound
- separate I/O thread and message dispatch threads

Change-Id: I11a10a47de451a9e3063b62f9450be19c3a9dae7
2017-06-12 20:28:12 +00:00
Palash Kala
f95c38b218 [ONOS-6470] Method names are confusing, needs to be changed
Change-Id: I620cf5225b34f22dd176a65f211886d386f62872
2017-06-12 13:40:48 +00:00
Palash Kala
a439afe320 [ONOS-6472] Flow, table, group and meter stats collector stopped after starting
Change-Id: I74c638662b6980d1895291e55e8aa5c203f1e40b
2017-06-12 10:46:59 +00:00
Palash Kala
527932667c [ONOS-6471] Port stats collector started two times, which is unnecessary
Change-Id: I08d56c70ba1629e2474883820fc4aa8af6b79c84
2017-06-09 16:48:05 +00:00
Palash Kala
948ac4bbb8 [ONOS-6480] Bug fix in NewAdaptiveFlowStatsCollector.java
Change-Id: I2750fda80ed1951256c5d71d923141979e39d876
2017-06-01 21:04:59 +00:00
Marc De Leenheer
6f3b02829c Remove unused code.
Change-Id: I8be0df271c7602ef5c457250d45cf014c98d083e
2017-05-21 07:02:20 +00:00
Yuta HIGUCHI
6512f3e11d Required changes to support OF1.4, 1.5.
- OVS with OF1.4 passed `stc smoke` test
- OVS with OF1.5 still has issue
  As of OVS 2.5.0, OF1.5 mode responds with ill-formed of_meter_features_stats_reply
  org.projectfloodlight.openflow.exceptions.OFParseError: Wrong length: Expected=40(40), got=32
    at org.projectfloodlight.openflow.protocol.ver15.OFMeterFeaturesStatsReplyVer15$Reader.readFrom(OFMeterFeaturesStatsReplyVer15.java:281)

Change-Id: Ib78b9d92ecfb4bb667e24c4ee95bcd09aec160a6
2017-05-19 15:40:12 +00:00
Jimmy Jin
e9b7a02ff9 OpenFlow message processing for new loxi
Depends-On: Id69c8597eb4564653c56cdc90f2dcec50afbdd25

Change-Id: Ib14fbadd3debf98ce1d56343179f8e7929f8ade8
2017-05-19 15:40:12 +00:00
Ray Milkey
08b03a9ec8 Starting snapshot 1.11.0-SNAPSHOT
Change-Id: I5aa84e241545dace6192243c0079924ddf899404
2017-05-15 18:40:20 +00:00
Frank Wang
5733c387cc [ONOS-6208]Implemention of onos and loxi for OVS NAT and connection tracking support
Change-Id: I782422d41fdacc805b523b57c3bd0b6e67e483a2
2017-05-15 16:31:15 +00:00
Jordi Ortiz
9fe79a2df3 [ONOS-6188] OpenFlowMeterProvider: Force Meter stats retrieval on remove.
The meter removal is computed by looking on the MeterStats result
and looking if it is actually missing. MeterStats are retrieved
periodically with the collector. With this patch we ask for the stats
immediately.

Change-Id: I432976d6571d0df4261afdec20a99846dae07f48
2017-05-12 23:35:17 +00:00
Yuta HIGUCHI
2341e60544 Add support for OF1.4 devices
- part of ONOS-6386

Change-Id: I2e03496ae6f2fdcda5800e2208533faf07790e3d
2017-05-08 21:49:58 +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
Marc De Leenheer
8aba62ffcb Introduce method to write msg and get response through OpenFlow.
Change-Id: Ibc92985a98a3b9a178e474f55c117e08b05a8d44
2017-04-27 14:59:45 -07: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
Andreas Gilbert
75b882f7e8 [ONOS-5939] added traffic selector bitwise match on TCP/UDP/SCTP source/destination port
Change-Id: Ibf5947f7a6cac86fab77d15990116040fd8e5ef5
2017-03-01 20:07:39 +00:00
Michal Mach
ce774338fa [ONOS-5911] Port removal after receiving OFPR_DELETE port status reason.
Change-Id: I1f3f6c752da5f989a2d727f378e9f04fbbb71341
2017-02-23 00:24:21 +00:00
Thiago Santos
943cd54b1f [ONOS-5853] FlowRuleBuilder: automatically set temp/perm field
Add a new method to the interface to allow setting the idle timeout
directly and it will automatically decide if the rule is permanent
or temporary.

Currently the rules created from OF switches would always be made
temporary, even if the idle-timeout was 0. This would cause ONOS
FlowRuleManager to believe they had expired and would remove them.

To reproduce set up a cluster and make a device change mastership, the
new master would have all rules as temporary, even the ones that were
permanent previously on the first master.

Change-Id: I6bca5ba4d0e2194efad21a98cbcd0ab040977f03
2017-02-22 00:22:29 +00:00
MaoLu
c201ae4c64 Oplink EDFA driver
Change-Id: I7fafa66bf7a5290f2d7ea2e07046fa8dabdb20de
2017-02-16 01:28:20 +00:00
Ray Milkey
54a78514d2 Starting snapshot 1.10.0-SNAPSHOT
Change-Id: Icd6983be6a52293fb8a846a02d5e314c2c7aeaf0
2017-02-13 11:13:52 -08:00
Ray Milkey
57b510152e Starting snapshot 1.10-SNAPSHOT
Change-Id: I800d5d9e7f23793f5288457bca449ca382896723
2017-02-13 11:06:55 -08:00
Ray Milkey
de84cdde9a Starting snapshot 1.9.0-SNAPSHOT 2017-02-13 10:54:12 -08:00
Ray Milkey
8588c48114 Tagging 1.9.0-b3 2017-02-13 10:52:31 -08:00
Jordi Ortiz
aa8de49765 [ONOS-5599] Store meter features into MeterStore
Change-Id: I22f7366b87cad6fc706b6ff7b0ccff1a0e85ad6a
2017-01-24 12:08:25 -08:00
Yuta HIGUCHI
67f2cca463 ONOS-5856 do not poll meter against optical device
Change-Id: Id00e29eedc1e89af8998c8b0fd7c31caa98d99da
2017-01-24 01:47:49 +00:00
Thiago Santos
15c70a1b3e [ONOS-5852] GroupBucket: Dont ignore weight from OF message
Use it, instead of defaulting to 1

Change-Id: I163d179840d2db744d4179dc89bf1b17f4b77a3f
2017-01-20 16:20:33 +00:00
Andrea Campanella
c8b871ab86 ONOS-5850 Fix annotations null values
Change-Id: I324186858cde2ebc16a3a488378ce731cbb82aac
2017-01-20 01:36:51 +00:00
Ray Milkey
287b4ae810 Starting snapshot 1.9.0-SNAPSHOT 2017-01-19 15:21:17 -08:00
Ray Milkey
2557ba3375 Tagging 1.9.0-b1b 2017-01-19 15:20:17 -08: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
Thomas Vachuska
a79cbf75de Backing out memoizing driver name from the OF device provider because it breaks number of STC scenarios.
Change-Id: Ie07ebe4428ffc70273b494a6a6bd303c05b70a8c
2017-01-13 15:07:04 -08:00
Victor Silva
ac8dab0e59 [ONOS-5795] OFDeviceProvider: save driver info in Device object
The Device object has an annotation field that can store driver
information. Doing so prevents us from extremely frequent calls
to find out which driver to use for a Device.

Calls to "getDrivers" can be responsible for a relevant part of
CPU usage in larger topologies.

Change-Id: Ie9d54f86efed75206639d270373361b4ea060a8a
2017-01-12 19:50:29 +00:00
Victor Silva
03265dd2da [ONOS-5794] OFDeviceProvider: always stop collectors
In larger topologies, switchRemoved occasionally triggered
exceptions before it reached the code to stop the collectors,
leaving these collectors trying to talk to devices even if
they were no longer there.

Change so that stopCollectorIfNeeded is always called, as it is
in other OpenFlow provider classes.

Change-Id: I3556a19b5fd15fe73816a785d886a27344df89e4
2017-01-11 18:10:29 +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
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