608 Commits

Author SHA1 Message Date
Thomas Vachuska
07782d262b Eliminated old features.xml and app.xml files required by no-longer supported Maven build.
Change-Id: I060af47c85c1b83d35f6cc8e462d6d609872b15a
2018-11-01 20:41:00 +00:00
Thomas Vachuska
00b5d4fee0 Removing commented out @Property annotations from the drivers, protocols, pipelines and providers.
Change-Id: I4cabc5a53c93b778824c72cebbce0ec49700eade
2018-10-30 23:43:55 +00:00
Ray Milkey
956bb1691a Merge remote-tracking branch 'origin/master' into dev-karaf-4.2.1
Change-Id: If611105632e508cb17352c6f5b1cbcfd85f716d1
2018-10-26 10:53:44 -07:00
hjtsao
1a4333c51c Enhance CLI command 'tablestats' to support P4 switch
Change-Id: Icb7bae93840bac1ad8d49240f61a4f5bf08dac4c
2018-10-26 17:26:35 +00:00
Thomas Vachuska
22ea6126e4 Removing BUCK files and other Buck-related auxiliaries.
Change-Id: I23691380efcd9bce4906695605214ed59ada0e87
2018-10-24 20:02:31 +00:00
Thomas Vachuska
4167c3f011 Fixing component properties for various providers.
Change-Id: I909c84958109f61e10a542774a2d4b82c428c0f5
2018-10-16 20:29:47 +00:00
Ray Milkey
d84f89ba3d [WIP] Upgrade ONOS to karaf version 4.2.1
Change-Id: I7cd40c995bdf1c80f94b1895fb3344e32404c7fa
2018-09-28 11:20:57 -07:00
Ray Milkey
761e80a427 Remove pom files from ONOS
Change-Id: I53e2395466cba10222d638736635b11380421d98
2018-08-21 18:11:58 +00:00
Ray Milkey
312d987732 Starting snapshot 1.15.0-SNAPSHOT
Change-Id: I9239c7695f7faf6dc184a0ff54a34dedf4761b2d
2018-08-20 16:09:54 -07:00
ONOS Jenkins User
03e5521fba Starting snapshot 1.14.0-SNAPSHOT 2018-08-14 22:13:58 +00:00
ONOS Jenkins User
3594c24cb2 Tagging 1.14.0-rc2 2018-08-14 22:13:02 +00:00
ONOS Jenkins User
4e5f2d67ac Starting snapshot 1.14.0-SNAPSHOT 2018-08-13 23:16:37 +00:00
ONOS Jenkins User
cff0bd8922 Tagging 1.14.0-rc1 2018-08-13 23:15:43 +00:00
Ray Milkey
4867af2f9c Revert "Tagging 1.14.0-b1"
This reverts commit 78ce40093ac008fd6d169ab83d2d5961f91f6e31.

Change-Id: I8482f550c30f75d65333f6be9c9115a930abc56f
2018-08-10 16:53:10 -07:00
Ray Milkey
78ce40093a Tagging 1.14.0-b1 2018-08-10 11:16:44 -07:00
Ray Milkey
18fb081fa6 Build providers using bazel
Change-Id: I7d4ebcfb1d593e10aa93f0a4f7111680ed66a7e7
2018-06-27 22:03:35 +00:00
sdn
77b5cb8e1e Add to the list of devices that do not support Meter
Change-Id: I1bb0630dcf20d0f68b29f92867da69e37b7c4261
2018-05-30 07:04:33 +00:00
Yuta HIGUCHI
e7e71a8f9f Update checkstyle to 8.10
- fix issues detected
  - YANG custom registrator should be subject to checkstyle
  - fix Java 8 syntax related violations

Change-Id: I0fc52c6612a40d851fd9bc3bf019621776b1f92a
2018-05-21 16:00:21 +00:00
Thomas Vachuska
5b38dc079c Extending DeviceProvider interface to include triggerDisconnect method.
- extended interface with default method implementation
- modified DeviceManager to exploit the new provider feature
- refactored a number of device providers to use the new method
    instead of relying on indirect DEVICE_REMOVED events

Change-Id: Ib315357ef06463012fcf26bbe937c8cdccbf3a94
2018-05-15 16:03:05 +00:00
Thomas Vachuska
164ecf6019 Adding mechanism for device subsystem & providers to trigger device
reconnect in support of ONOS-7645 (device driver change)

- added device listener to OpenFlowDeviceProvider to properly disconnect switch
- removed device listener from OpenFlowControllerImpl
- augmented DriverManager to consult NetworkConfigService as a primary source

Change-Id: I1aa8e9cc7e81ff3af7a72145f4e51f3e32022806
2018-05-09 17:51:20 +00:00
Yuta HIGUCHI
7847227140 Fix artifactId
- bgp, bgpcep, general provider
- onos-app- => onos-apps-

Change-Id: I49fd905a0765d21f7cc329a7f7a5593c78dd3d28
2018-05-04 16:23:00 +00:00
Ray Milkey
bca9049101 Starting snapshot 1.14.0-SNAPSHOT
Change-Id: I97bab4e31d2b701f015289eae29d0c58a4937685
2018-04-13 12:47:31 -07:00
Andreas Pantelopoulos
fdcfe53150 ONOS extensions for use of egress tables.
This patch depends on 17671 onos-loxi patch. When we make
the new loxi release we need to change the prebuild
openflowj in lib/BUCK to that of the actual release number.

It provides support for programming l2 unfiltered groups,
the egress vlan table and the egress tpid table.

Depends-On: I3cea6ed2234147c8dbe440ae1701856a60706e7c
Change-Id: I7525f5856300eac25548b5219a5dffed12b291ad
2018-04-12 19:02:17 +00:00
Devin Lim
f853a59d2e Revert back to the way group capable was checking to handle null
Change-Id: If24db5853878dd78faa3926b626aee7a42e5d5a8
2018-04-07 01:21:32 +00:00
Yuta HIGUCHI
9721f85aca make isGroupCapable exception safer
- Tricky part of DriverService API:
  DriverService#getDriver(DeviceId) can either return null or throw exception when not found
  DriverService#getDriver(String mfr, String hw, String sw) will return null when not found

- might fix ONOS-7558

Change-Id: I0a49ab1d94f12e7fda00aa5e8e4bc42820f67dfe
2018-04-05 18:44:19 +00:00
Thomas Vachuska
a10137c0fc Fixing residual ON.Lab references.
Change-Id: Ic54a281ce67e49236c7aeb536729d3900dd9433d
2018-04-04 00:02:22 +00:00
Thomas Vachuska
fca3c6abb5 ONOS-7569 Segment Routing tests connectivity and flow issue on master
Change-Id: Ic9de93a679a356e999ba36e5960c202c6aadffb7
2018-04-03 16:31:33 +00:00
Palash Kala
496ef1a27c [ONOS-7552] Port disabled in ONOS but enabled in switch
Change-Id: I74c33e359073eda0706b2d59946737f053675326
2018-03-31 00:00:50 +00:00
Laszlo Papp
84adcac63b Introduce driver property to suppress group feature
Change-Id: I7bf9857a7a71e3b4ef64aa7fd2c8777ff20dc95b
2018-03-14 16:42:19 +00:00
Thomas Vachuska
03121dc4d1 Removing dead code.
Change-Id: I155f15bc700cf1b48aa7d92d7c6f99947b64f453
2018-03-13 23:01:46 +00:00
Pier Luigi
15e281d2bf [CORD-2801] Fix NPE in FlowStatsCollector
java.lang.NullPointerException
  at org.onosproject.provider.of.flow.impl.FlowStatsCollector.stop(FlowStatsCollector.java:96)[180:org.onosproject.onos-providers-openflow-flow:1.12.1.SNAPSHOT]
  at org.onosproject.provider.of.flow.impl.OpenFlowRuleProvider.stopCollectorIfNeeded(OpenFlowRuleProvider.java:263)[180:org.onosproject.onos-providers-openflow-flow:1.12.1.SNAPSHOT]
  at org.onosproject.provider.of.flow.impl.OpenFlowRuleProvider.access$400(OpenFlowRuleProvider.java:112)[180:org.onosproject.onos-providers-openflow-flow:1.12.1.SNAPSHOT]
  at org.onosproject.provider.of.flow.impl.OpenFlowRuleProvider$InternalFlowProvider.switchRemoved(OpenFlowRuleProvider.java:417)[180:org.onosproject.onos-providers-openflow-flow:1.12.1.SNAPSHOT]
  at org.onosproject.openflow.controller.impl.OpenFlowControllerImpl$OpenFlowSwitchAgent.removeConnectedSwitch(OpenFlowControllerImpl.java:783)[177:org.onosproject.onos-protocols-openflow-ctl:1.12.1.SNAPSHOT]
  at org.onosproject.openflow.controller.driver.AbstractOpenFlowSwitch.removeConnectedSwitch(AbstractOpenFlowSwitch.java:344)[164:org.onosproject.onos-protocols-openflow-api:1.12.1.SNAPSHOT]
  at org.onosproject.openflow.controller.impl.OFChannelHandler.channelInactive(OFChannelHandler.java:1288)[177:org.onosproject.onos-protocols-openflow-ctl:1.12.1.SNAPSHOT]

Change-Id: Iae3150f9eb3767c4b579d6b287dededb2da76997
2018-03-06 11:35:40 -08:00
Yuta HIGUCHI
53e4796d55 Deprecate potentially error prone constructor methods
Change-Id: I82d95c27dc7c4b1a6dcf5cc48a1c7583b5e30e2c
2018-03-05 20:43:39 +00:00
Maksym Polovyi
3585a7ad4a Fixing issue when Initial Audit is never completed.
The issue arrise when switch does not support GROUP_STATS capabilities,
then the group statistic request is never sent, however reply is still
expected to populate groups list.

Solution is to populate group list based on group desc statistic replay,
which contains essential information.

Change-Id: I7dde05ecfe4ca9e497787ef42d0966fa5eef30f0
2018-02-16 17:47:22 +00:00
Ray Milkey
5c7d488269 SONAR suggestion - proper handling of InterruptedException
Change-Id: I67a93c064708c207d9ce83fac319682c2d17db60
2018-02-07 00:59:07 +00:00
Ray Milkey
961b19f66d SONAR suggestions - eliminate lossy arithmetic
Change-Id: I5a02ea407225ee0c9df040b74a8c0dc2ee5d5cb3
2018-02-06 17:54:52 +00:00
Ray Milkey
d6a67c3909 SONAR suggestion - explicit break in switch statements
Change-Id: Ib648192fe84f37947936592c4635397706b14377
2018-02-05 17:52:53 +00:00
Ray Milkey
3717e604d5 SONAR suggestions - prevent truncation of arithmetic expressions
Change-Id: I4694c0c3183b991a4f0db793f584bc77a5fb7d60
2018-02-02 23:06:44 +00:00
Ray Milkey
986a47aa7c SONAR suggestion - generic exceptions
Replace uses of generic RuntimeException
with more appropriate unchecked exceptions

Change-Id: If283743c2cf7252b8d280bdb788708ebbe57da9d
2018-02-01 18:36:33 +00:00
Laszlo Papp
cd91bfd440 Send group desc without group stats capability
Change-Id: Ie061f03cabeec3d241cab2e5514aaa97c774bab8
2018-01-30 19:16:28 +00:00
Laszlo Papp
bf2cd740bd Make it possible to annotate as lambda
Change-Id: I8166adc5e6cc30568356606c33991384c7d0006b
2018-01-23 17:49:21 +00:00
Laszlo Papp
8e8ff057aa Use USE_FREQ for port stats
Change-Id: I797c521ed722dde0fd9fa6cab930aef2349aecbc
2018-01-19 19:42:10 +00:00
Laszlo Papp
58174814a8 Do not collect flow and port stats if unsupported
Change-Id: I8dd175803c64e2cafa57b7cbf8b9c268a6391739
2018-01-16 18:09:19 +00:00
Laszlo Papp
73f9aeaa11 Avoid division by zero
Nothing stops an OF agent to return zero for lambda values and ONOS
probably ought to not crash then.

One use case for this is when only one direction is supported on a port,
for example tx. Unfortunately, the openflow specification does not
separate the directions into different properties, so the agent
implementation has to return some frequency value for rx in this case
even if only the tx direction is supported. However, anything non-zero
would probably be untruthful as it would indicate valid reading to the
end user.

Even zero will be problematic for unsupported power reading in a
direction as 0 dBm is a valid value, but not sure how to deal with any
better.

Change-Id: I2597bd7d577d9c2e1a3b44421fe505b8b3b6cc92
2018-01-15 19:23:45 +00:00
Laszlo Papp
9dfb5129b2 Use port stats prop from OF 1.4
Change-Id: I8b4bb7dc7f0f77014e67c81f5e73e2afb50664ef
2018-01-12 21:11:14 +00:00
Laszlo Papp
7cf6037b2c Expose optical properties
Change-Id: I30714563a6a02e5c4c777b759968251625ec4969
2018-01-12 18:58:24 +00:00
Laszlo Papp
20cfb6f871 Expose tx_pwr_min/max
Change-Id: I13a9f11a0cd7e1821997846afcf34d3cd29fa688
2018-01-10 23:32:38 +00:00
ONOS Jenkins User
45d340c839 Starting snapshot 1.13.0-SNAPSHOT 2018-01-09 01:56:13 +00:00
ONOS Jenkins User
32ebb5add8 Tagging 1.13.0-b8 2018-01-09 01:54:28 +00:00
Laszlo Papp
c893b27a2c Do not send group stats request if unsupported
Change-Id: I1f0665dd9badfc5d29cea49c3fca48688ca77bc0
2018-01-05 23:13:44 +00:00
Laszlo Papp
edadbe2574 Do not send table stats request if unsupported
Change-Id: Ia66447aad1eeb0a01577215e4c5985526dadd274
2017-12-20 09:33:44 +00:00