652 Commits

Author SHA1 Message Date
Yi Tseng
3e7f145b90 [ONOS-7143] Add arbitration update support by P4RuntimeClient
Change-Id: I671275576018d50447f969166a7b42a28dd93b1d
2017-11-03 23:13:29 +00:00
Yuta HIGUCHI
6520198dff bump dependency versions
Change-Id: I79eb00c243775a0e6b6edd677ecd60b3fd22f2fa
2017-11-01 19:11:39 +00:00
Carmelo Cascone
d61fdb3b89 Added P4Runtime-based Barefoot Tofino driver
Change-Id: I09ba8dd4468fa5a792ca481921e8a51dad49702e
2017-10-31 05:41:30 +00:00
Andrea Campanella
856f31392b Fixing Netconf Subscription session reopen
Change-Id: I908b75f7c2a697451d0c876684db5abc5a2d1c36
2017-10-30 17:20:03 +00:00
Carmelo Cascone
ca94bcf5ea ONOS-7058 Refactored default pipeconfs in new pipelines directory
- Minimal refactoring of P4 programs
- Removed symlinks to BMv2 JSON/P4Info
- Bumped p4c commit (which fixes known parser bug)
- Renamed "default" pipeconf to "basic" (ONOS-6818)

Change-Id: I319f8b142ab22dba9b15457e28cd62d17f78a423
2017-10-30 16:53:37 +00:00
Sean Condon
f096a9dcaa Increase NETCONF SSH tests timeout
Change-Id: Ia65ee3df4d1d62bd9bda01162b458684ea1d8712
2017-10-26 11:30:22 +01:00
Cem Türker
3baff6785f ONOS-7077 Openflow 1.5 OXS and stat trigger support
Change-Id: I006bcd3d8eac451a780c7e5c69a12298ead14281
2017-10-19 00:09:28 +00:00
Yuta HIGUCHI
6e6c26e8bf async netconf RPC
- part of ONOS-7020

Change-Id: I27baf72dec06a2613bd4ae634f891c2420201900
2017-10-03 18:18:36 +00:00
Carmelo Cascone
cb0a49c993 ONOS-7078 Fixed inconsistencies when encoding/decoding P4Runtime msgs
Now P4InfoBrowser permits looking up entities by name only, not alias.
Applications should use names as defined in the P4Info when
creating PI IDs (e.g. PiCounterId). However, to avoid breaking support
with BMv2-based pipeline models, when referring to header fields in
tables, i.e. match fields, application should drop any scope identifier
from field names, e.g. "hdr.ethernet.src_addr" should be referred by
applications as "ethernet.src_addr". Such inconsistency will be fixed
with ONOS-7066.

Change-Id: I4d6dceadd233a293b845dba84e62a49680ac930b
2017-10-03 16:40:27 +02:00
Carmelo Cascone
87b9b398fa Various improvements to PI group handling
- Moved group translation logic to core service
- Removed dependency on KRYO
- Fixed bug where tratments with PI instructions where not supported if
	an interpreter was present
- Fixed bug where action profile name was not found during protobuf
	encoding (always perform P4Info lookup by name and alias)
- Improved reading of members by issuing one big request for all
	groups

Change-Id: Ifcf8380b09293e70be15cf4999bd2845caf5d01e
2017-10-03 12:41:46 +00:00
Yi Tseng
82512da397 [ONOS-6935] ActionProfile supports in P4RuntimeClient
Change-Id: I9f0ac307985c03b7ed93e14e41ba468c481a4e4f
2017-09-28 01:45:23 +08:00
Ray Milkey
dc48fb2c3b Starting snapshot 1.12.0-SNAPSHOT 2017-09-26 14:42:24 -07:00
Ray Milkey
eb3f6ef786 Tagging 1.12.0-b1 2017-09-26 14:40:44 -07:00
Sean Condon
2d64717688 Bugfix for NETCONF 1.1 where XML header was entered twice
Change-Id: Id8c9fa2ba71ea746637c691488c8811746506fce
2017-09-20 08:08:42 +00:00
Carmelo Cascone
7f75be413e ONOS-7001 Support for direct counters
Currently Bmv2 returns UNKNOWN error when reading direct counters.

Change-Id: I834d7b5a8627181c6888500545e1bdbfe9af8dc1
2017-09-13 08:28:38 +00:00
Yuta HIGUCHI
e9761740db Netconf test fixes
Change-Id: I4bb5ef17262ea631ef00b2f674dd0b7b5436767e
2017-09-10 15:11:09 -07:00
Yuta HIGUCHI
234eaf380a fixes to catch proper netconf exception
- part of ONOS-7020

Change-Id: I55c02ca9fdb97f1ae12b4e3d7b76da565f9da741
2017-09-07 18:36:33 +00:00
Yuta HIGUCHI
371667df99 Netconf refactoring
- remove deprecated field,
- typo fix
- remove unnecessary throws declaration
- add comments

part of ONOS-7020

Change-Id: Ifa629008854e20ed2ad08bfc0dac772eb3fce53f
2017-09-07 18:36:33 +00:00
Carmelo Cascone
99474f140e P4 tools version bump
Change-Id: I39bfba21fb90334ca4cae05ce06c34ddeafd02ab
2017-09-06 21:16:30 +00:00
Yuta HIGUCHI
b2d0524396 close PEMParser after use
Change-Id: I8c08a735d02d04a446c04d1d09b722a862cbbfbc
2017-09-05 15:44:34 -07:00
Yuta HIGUCHI
923a7784b0 netconf protocols fixes
- Align artifactId, dependency structure, etc. similar to buck

Change-Id: I78fac4ca6567e5b2982cc59a7f0f57c7d74dbadb
2017-09-05 13:51:02 -07:00
Holger Schulz
092cbbfb04 Fix for ONOS-6766: "NETCONF: Exception when using SSH keys and Apache Mina SSHD"
Modified SSH key handling. Now using BouncyCastle. (Update #2)

Change-Id: I27d8aefba6ed5548b9caa592fb5787cf98dfb5b6
2017-09-05 16:58:48 +00:00
Yuta HIGUCHI
dd7c3f8d78 Remove deprecated netconf classes and API
Change-Id: I3c0e37efe827060596aea667551729bf92331950
2017-09-05 16:44:11 +00:00
Carmelo Cascone
b045ddce4a Implemented support for P4Runtime counter read
And PortStatisticsDiscovery behaviour for default.p4 that uses it

Change-Id: Iadf40eb322987ef74239120e01acb4bece712aef
2017-09-01 15:11:50 +00:00
Carmelo Cascone
f423bec0b3 Fixed internal device ID in P4Runtime
Data type for the P4Runtime server-specific device ID is uint_64.
We were using int to store it in ONOS.

Change-Id: Ia4624cfc453ccf6b00a690eb9e4e4ad14a7881ec
2017-08-30 08:17:11 +00:00
Carmelo Cascone
fb92407298 Added locking to channel operations in Grpc controller
Change-Id: Ic6b6542ee1b1c7d582062fa794711dd0f86776bd
2017-08-30 08:14:04 +00:00
Carmelo Cascone
28f3778f5a Bumped P4 tools version
Change-Id: I25ac46916292fcb384dd507ef69326cb83eda84e
2017-08-29 19:03:28 +00:00
Yuta HIGUCHI
8810aa4d1f Device config synchronizer
- initial sketch of Device Config Synchronizer outline (ONOS-6745)

Change-Id: I57c8ab6c3511f12c15e3501aa61498eb18264b27
2017-08-29 18:27:23 +00:00
Yuta HIGUCHI
834894a1a8 sync artifactId with buck artifact
- pcep app related

Change-Id: I1ba0a966d14fee52268cd195e843d3354a599940
2017-08-29 17:41:24 +00:00
Thomas Vachuska
c98aa2a8a8 Cleaning up app names, descriptions and categories.
Change-Id: I684fdf23fcd8a8078d82bc6ff5e3d1af664b20c2
2017-08-29 15:23:11 +00:00
Carmelo Cascone
2308e52d63 Workaround for the duplicate flow rule apply problem for P4Runtime
Change-Id: I0373facddd0e610e2a3b9ab0afe0e6ca64cf33aa
2017-08-29 15:09:24 +00:00
harikrushna-Huawei
a2c7c20553 PCEP Protocol code restructured to move under PCEP Server code for more readability. Later Client code can be added under client folder.
Change-Id: Ie79599a170d94d8e0a00e0d034b083b3894199ee
2017-08-25 20:05:36 +00:00
Frank Wang
d8ab0961cc Fixs some misspellings
Change-Id: I03d23d8acca8789b430f74fdac80d287f0fa59df
2017-08-25 16:34:57 +08:00
Carmelo Cascone
9f007703fd Bumped P4Runtime version of generated gRPC stubs
Now is the same as onos-setup-p4-dev.
Also reduced logging in P4Runtime client.

Change-Id: I77134aa5562327a711e223f12da94c712349544c
2017-08-24 13:31:35 +02:00
Ray Milkey
c108a6b5d2 Fix typos detected by Frank Wang
Change-Id: I86b2e302569eff89d7051321a4531c7e0dc242f9
2017-08-23 15:23:50 -07:00
Andrea Campanella
0288c87839 Creating a p4runtime default driver to avoid code duplication between bmv2 and barefoot drivers
Change-Id: Id7f16a284c65278ec1a9ec682da01ddf020343c8
2017-08-22 09:42:14 +00:00
Ray Milkey
446f446a4f Refactor buck external dependencies
Change-Id: Ia4b99493407eb7d4e893804cba6b944f758f085e
2017-08-21 17:41:36 +00:00
Yi Tseng
088f4ce0f8 [ONOS-6916] Fix bmv2 flow programmable and PiCriterionTranslator
ONOS can't add flows to the bmv2 switch

Change-Id: I66ec90d0e1ed097afeffd0498e65c239b628efa4
2017-08-20 23:14:10 +00:00
Yuta HIGUCHI
1567798df2 Minor netconf fixes
Change-Id: I74b08c0905bb3efa56e6298ee888882900df65d0
2017-08-17 14:34:14 +00:00
Ray Milkey
aa279c014e Starting snapshot 1.12.0-SNAPSHOT
Change-Id: I92269af3b1103fc6622614a77681bd841438d050
2017-08-16 13:27:00 -07:00
Hesam Rahimi
9630554b04 Fix a bug in generic post operation: Do not read the entity if
the responseClass is of type Response.

Change-Id: I7dfe5f8ebcf90a8870433f16dfe334ae9a840402
2017-08-15 21:31:55 +00:00
Yuta HIGUCHI
09ae368c08 Maven test related fixes
- Workaround for usage of symlink in P4 code.
  Should probably avoid using symlink and load as resource
  for benefit of buck also
  https://buckbuild.com/concept/buckconfig.html#project.allow_symlinks

- Netconf Active client test dependency fix

- NetconfControllerImpl has mutable static variable,
  clean up after tests which potentiallu touches them

Change-Id: If7a70357a04ccc7e36377301de080385190d2776
2017-08-15 16:00:35 +00:00
Sean Condon
54d8243e53 Patch for ONOS-6840 NETCONF timeouts per device
Change-Id: Ia2e578245b97e0f68ea720cefe783e708e255ca7
2017-08-15 00:59:52 +00:00
Kamil Stasiak
9f59f449b7 netconf chunked framing v2
Change-Id: I93fad5c44315960ca6aebe5b0944947ac8bf6a51
2017-08-14 19:01:23 +00:00
Ray Milkey
d4ac0edb2f Starting snapshot 1.11.0-SNAPSHOT 2017-08-11 17:04:16 -07:00
Ray Milkey
6ecde1ff86 Tagging 1.11.0-b4 2017-08-11 17:02:33 -07:00
Yuta HIGUCHI
2f4b01dfa4 Fix file permissions
Change-Id: I42b7e7f0deb7a51e2b7d683dbb75c02f96151650
2017-08-11 03:42:11 +00:00
Mohammad Shahid
30fedc50be Adding BGP provider code to support EVPN
Change-Id: Ic5508749b64a47a70f1aabd9324e9f89e85fa39f
2017-08-10 16:22:23 +00:00
Brian O'Connor
a09fe5b0b7 Updating Copyright line to Open Networking Foundation
Change-Id: Icba96d7f39a065b53f34a6aeb71afd1f7d51f774
2017-08-03 21:12:30 -07:00
Carmelo Cascone
2cad9efec5 Various fixes to get a P4Runtime demo that works
Change-Id: Icab512fceeb6ec0faf1b402c1e325e055cdb2caf
2017-08-03 16:17:58 +02:00