4746 Commits

Author SHA1 Message Date
Thomas Vachuska
e17756d128 Changing version from 1.15.0-SNAPSHOT to 2.0.0-SNAPSHOT.
Change-Id: I61a586cfc769275db78f4059a630ab0e0f87c6e7
2018-11-01 00:04:30 +00:00
Thomas Vachuska
f566fa2503 Removing commented out @Property annotations from the core.
Change-Id: I336f6a21db531187b8e2fcfb51e7da315c615771
2018-10-30 23:43:48 +00:00
Thomas Vachuska
1bb2a285a8 Fixing issue with superfluous exception when installing apps.
Change-Id: Ic802227afc0218ed1999a1509ea0aee62e1d52a3
2018-10-30 20:10:50 +00:00
Ray Milkey
a218d43062 Merge branch 'master' into merge
Change-Id: Id77bb2de77dd288404c83e331b076aaf9aafacc5
2018-10-30 12:44:55 -07:00
wu
66460c9cb6 The tableAction should be checked if it is null.
Change-Id: Id88a40f21754362dd28529264a0fdf3671c364d4
2018-10-30 02:22:03 +00:00
hjtsao
1e8a1bd5ce [ONOS-7818] Implement a device behaviour to get table statistics. Make FlowRuleDriverProvider periodically call FlowRuleProviderService.pushTableStatistics().
Change-Id: Ife2b67b8c6c3582281704afe6f9a90538afbc798
2018-10-26 22:47:29 +00:00
Tian Jian
b7a595855c Make the code more explicit.
Change-Id: I2933d437f974e3329fb9484035c8a1753063c1a2
2018-10-26 18:45:14 +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
steven30801
7632e150e1 [ONOS-7596] Support reading table entries with counter data in P4Runtime
Change-Id: I85bacb1697a6c881dd69ba74a2162c73ec0b8aee
2018-10-26 17:25:13 +00:00
Thomas Vachuska
22ea6126e4 Removing BUCK files and other Buck-related auxiliaries.
Change-Id: I23691380efcd9bce4906695605214ed59ada0e87
2018-10-24 20:02:31 +00:00
ghj0504520
ec1a420030 ONOS-7810 calculate cookie field when pipeconf registered
Change-Id: Iea29fc447b34c49d4e8fcc831812385459c1ccbb
2018-10-24 19:59:22 +00:00
Ray Milkey
d542568b21 Merge branch 'master' into dev-karaf-4.2.1
Change-Id: Iec1b8947c898b0bf10db8caece0c3a064d1c63ae
2018-10-23 10:50:43 -07:00
Tian Jian
855b108bcc [tiny-fix] Missing deviceId for log.
Change-Id: I1855510df180b098023ef9d073c5baab7d2464a7
2018-10-23 17:20:06 +00:00
Tian Jian
9cb2e9e93d [tiny-fix] Wrong location of deviceId in the log.
Change-Id: Ib74ba2f152cc7554f930b49289e3697ac1d3f23f
2018-10-23 13:45:10 +00:00
柯志勇10068695
d709dba068 Request may be null, if not checked, it may be error.
Change-Id: I78408b894815461403e757f1042d08361216cff2
2018-10-23 13:02:05 +00:00
Thomas Vachuska
bef430b5f8 Integrated new style of cfgdef generation into the Bazel build.
Change-Id: Ic7b030504285a59f715790396bc04335df8fbd15
2018-10-22 10:55:47 -07:00
Ray Milkey
28b15ae6e0 Fixes to allow ONOS to build using built in bazel Java 9 JDK
Change-Id: I57b7b3b9a8a28a824b196a72a24c42cd9d04cc59
2018-10-19 17:08:37 +00:00
柯志勇10068695
d64ea7bede InputStream should be closed, or there will be a risk of memory leaks.
Change-Id: I5b3a618bdeef21e5f4ff4eeae33bc7fcb15f28e7
2018-10-19 14:21:37 +00:00
Jordan Halterman
16c95ff780 Upgrade to Atomix 3.0.7
Change-Id: Ic72df320f11459d16c2f403bc02a3fe7fb8488c2
2018-10-19 05:34:23 +00:00
Carmelo Cascone
03ae0acdd8 Bump version of P4Runtime to 1.0.0rc3 and P4 tools
Change-Id: I3082b4bd772d692830bd5af8e326a0fd5fb2f167
2018-10-18 22:30:46 +00:00
Ray Milkey
d17309c2f5 Merge branch 'master' into merge
Change-Id: I35af23202e94a114f129f2f000ab237165b26737
2018-10-18 10:12:54 -07:00
Ray Milkey
2d7bca1540 Move type specifiers from property name constants to the corresponding component annotations
Change-Id: Id5e3b669721ecf076a010cc4783b9e6b33e6fca0
2018-10-17 22:41:15 +00:00
Ray Milkey
d04e227b68 Constants for core/net OSGI properties
Change-Id: I43c27f7d513167da29eaf8a851989263e5d4db66
2018-10-17 13:19:13 -07:00
Samuel Jero
31e16f57b1 Secure LLDP-based Topology Detection
Current LLDP/BDDP-based Topology Detection is vulnerable to the
creation of fake links via forged, modified, or replayed LLDP packets.
This patch fixes this vulnerability by authenticating LLDP/BDDP packets
using a Message Authentication Code and adding a timestamp to prevent
replay. We use HMAC with SHA-256 has our Messge Authentication Code and
derive the key from the config/cluster.json file via the
ClusterMetadata class.

Change-Id: I01dd6edc5cffd6dfe274bcdb97189f2661a6c4f1
2018-10-17 15:59:31 +00:00
Ray Milkey
0b18b72872 Merge branch 'master' into merge
Change-Id: I163ecf699b554e33f4db938c66b73c9911e51135
2018-10-16 13:19:15 -07:00
Ray Milkey
b5646e6f7a Use property constants for OSGi components for stores
Change-Id: I5d21075abb453d5bc54e02653d5a96746e6a074e
2018-10-16 18:52:22 +00:00
Saurav Das
a432cf87fa Allow applications to specify a few other packet-request flow priorities.
Also let Ethernet class recognize EAPOL eth-type when printing.

Change-Id: I52b9d9aec6dfdd07aa49861f8c6b82ed814f638e
(cherry picked from commit 6f58cf1e5aae371cb8c7e0ad69552f3e68672f05)
2018-10-12 01:12:27 +00:00
Jordan Halterman
27ccf0d87a Remove unused Netty messaging service
Change-Id: Ib56561295215ad2b7e775716a7b651bbde525559
2018-10-12 00:01:32 +00:00
Jordan Halterman
234b9a4ba4 Remove unused distributed cluster store
Change-Id: Idc863ac59ea499b5a061cdbf9dba257f76cd8fc9
2018-10-11 14:40:47 -07:00
Ray Milkey
db57f1c326 Merge branch 'master' into dev-karaf-4.2.1
Change-Id: I86b9d80581cd76a7c20e05201023090f9692d1ab
2018-10-09 11:26:45 -07:00
Jordan Halterman
da3b9f0980 Avoid closing DeviceFlowTable when flows are purged on device down event
Change-Id: Ibb0fd99dda6dff1fdcbf73ec0a0f3e1db8bcf625
(cherry picked from commit cd4276521ca0a7268353317ede37de33cdbe4c52)
2018-10-09 17:24:35 +00:00
Ray Milkey
584f54bddb Fix race condition between AtomixManager and metadata providers startup
Change-Id: I4799c079455e0e5c79a800ba3108b4c9eedbe1b2
2018-10-09 16:45:16 +00:00
Ray Milkey
14a6c506e4 Fix NPE when trying to reference delta port statistics via REST API
Change-Id: Ic195d06e55bd4d8379ac28938e93105d6d181bf6
2018-10-09 16:44:53 +00:00
Jordan Halterman
d15c5f63f7 [ONOS-7801] Avoid converting local node on every lookup in ClusterStore
Change-Id: I60cdfba80796fc7210ab96798086e42e1d3d2e94
2018-10-06 03:32:55 +00:00
Carmelo Cascone
e44592f246 More robust P4Runtime group handling
This patch solves the PENDING_UPDATE and PENDING_ADD_RETRY issue
observed on the ONS EU topology.

The P4Runtime action profile group handling has been re-implemented to
be robust against inconsistencies of the device mirror, which is now
periodically synchronized with the device state. Similarly, we implement
a routine in the P4RuntimeClient to cleanup unused action profile
members.

This patch includes also:
-  Refactor PI handle classes to allow creating handles without the
entity instance
- Use list instead of collections in P4RuntimeClient methods, as order
of updates sent and/or entities received from the device is important

Change-Id: I2e7964ce90f43d66680131b47ab52aca32ab55d2
2018-10-05 23:45:29 +00:00
Carmelo Cascone
50d195ffb3 Do not insert or delete default action entries in P4Runtime
Spec says:
the default entry for a table is always set. It can be set at
compile-time by the P4 programmer - or defaults to NoAction (which is a
no-op) otherwise - and assuming it is not declared as const, can be
modified by the P4Runtime client. Because the default entry is always
set, we do not allow INSERT and DELETE updates on the default entry and
the P4Runtime server must return an INVALID_ARGUMENT error code if the
client attempts one.

With this patch we convert insert or delete operations into modify ones
(unless specified by a driver property, to support non-compliant devices).
For delete, we use the interpreter to suggest a default action that is
the same as the one when the pipeline was originally deployed.

Also, we introduce the capability of synchronizing the device mirror
with the device state.

Change-Id: I3758fc11780eb0f1cf4ed5a295bd98b54b182e29
2018-10-05 23:45:18 +00:00
Carmelo Cascone
6880ba619a Get CPU port dynamically in fabric interpreter
Different HW platforms have different CPU ports, here we allow using
the same interpreter with multiple platform.

Change-Id: I0895d4d3e11560c75aca3fa908ca38759b597d67
2018-10-05 23:39:16 +00:00
Carmelo Cascone
da0b559e91 Recover missing pipeconf-merged driver at component activation
needed to support rebooting ONOS nodes

Change-Id: I44d34c649750ffc3d6b0205ee02c8c88391f1f8a
(cherry picked from commit ccee77a024c14c3cef68457028ea71edc0555f54)
2018-10-05 20:55:58 +00:00
Ray Milkey
df521294ce Merge remote-tracking branch 'origin/master' into merge-master
Change-Id: I4608093c4400a313b253508ac6bc8a84ecba5c7e
2018-10-04 15:13:33 -07:00
Jordan Halterman
5409e34ac0 Ensure root path element is removed when writing to underlying Atomix DocumentTree primitive
Change-Id: I427ac78f94b4ac88b203ff751fa9b22bd561dd62
2018-10-03 23:12:01 +00:00
Thomas Vachuska
2fd325f73a Minor clean-up of the 4.2.1 migration.
- eliminated annotations in a few remaining abstract component classes
- cleaned up gui/gui2 feature bundle lists
- added version to the karaf features patch
- loading onos-rest by default in karaf features patch
- onos-gui loading still WIP

Change-Id: Ie5a74c0daee939a9d2de30e1737e4f88dd2ae478
2018-10-01 13:21:23 -07:00
Ray Milkey
86ad7bb5e7 [WIP] apps CLI changes for karaf upgrade
Change-Id: I283efc39c7d4f4b31344f1d2d0cdd2b98a60932d
2018-09-28 11:21:43 -07:00
Ray Milkey
d84f89ba3d [WIP] Upgrade ONOS to karaf version 4.2.1
Change-Id: I7cd40c995bdf1c80f94b1895fb3344e32404c7fa
2018-09-28 11:20:57 -07:00
Jordan Halterman
e458f00453 Support hostname resolution for cluster configuration
Change-Id: I9afb97bfba05366fa63dc7b9022b914bd2d1cce0
(cherry picked from commit 97cd95d5a2a7a1bf1f3bfd3091f2d66f747eee33)
2018-09-25 16:04:28 +00:00
Ray Milkey
cc0012423b Remove some calls to the deprecated Path.cost() API
Change-Id: I71d01fdf35d8a06639e6422b4c8d5998b14e319d
2018-09-24 17:28:38 +00:00
Ray Milkey
6e7843d5a3 Remove deprecated non-filtered ingress and egress connect point APIs
Change-Id: Ie360dfc2288b27587ffcdb23bc29f266df1a8d73
2018-09-24 17:28:05 +00:00
Ray Milkey
7908ced318 Remove deprecated mplsLabel() method
Change-Id: I65db8d93185034a9f125456f5510a7dc66008dd6
2018-09-24 17:27:48 +00:00
Ray Milkey
d0f017fccb Remove deprecated value() method
Change-Id: I3056a47f4630a5667f9dc05280a6d0ab1a2c7ca8
2018-09-24 17:27:03 +00:00
Ray Milkey
6837293e1b Remove deprecated DistributedPrimitiveCreator APIs
Change-Id: I4a338159558827298d7bd85e3bed0d688f84d596
2018-09-21 11:00:46 -07:00