207 Commits

Author SHA1 Message Date
Carmelo Cascone
21eb042dba Enforce build with Java 11 for all by default
- Build with JDK11 and language levels (source and target) are now
enforced in .bazelrc, which depends on our own Java toolchain (defined
in tools/build/bazel/BUILD)
- Easymock bumped to v4.0.2 with support for Java 11 (minor API changes)
- The minimum required Bazel version is now 0.27.*

Change-Id: I0bb6dfe7fc1ea134b5a53dd249c369d58259688c
2019-06-18 22:26:33 +00:00
Kieran McPeake
e1b418f08b Clean up logging in (or relevant to) Juniper NETCONF provider
Also fix missing chassisId in DefaultDeviceDescription.toString()

Change-Id: I944baf0b3a4eb9960c0cbcec2ad585701d9a2989
2019-06-05 10:09:33 +01:00
gyewan.an
3c99ee77c2 Changed the how to relay proxy message within cluster
*changed the commnunication way to 'unicast' from 'sendAndReceived'

Change-Id: I0207c074fd2ab7b8378d9b4ce0cf877fc9aeab29
2019-03-05 17:55:05 +00:00
gyewan.an
91d7e7e283 [ONOS-7566] Implementation of NetconfProxySession
Change-Id: I01cbe0b10ac36cb6db53127555b551f405acdeb1
2019-03-05 17:55:05 +00:00
Andrea Campanella
c535b67566 Fix for Netconf device re-connection.
Unproprer issuing of Device_UNREGISTERED event was causing incorrect device
removal during session re-establishment.
Unconsistent state in ports and links resulted.

Change-Id: Ie07d9077ff0b197a1cb8936b1f307807fae34aeb
2019-02-26 09:45:08 +00:00
David K. Bainbridge
9b582b0b12 ONOS-7920 - mutex around access to prevent reentrant creation
Change-Id: I9492b2733686e0da4c05f304883f958f92598c79
2019-02-05 14:48:29 +00:00
David K. Bainbridge
77d8ca4d57 ONOS-7918 yes, release the reference to the reply
Change-Id: I7428cfb93c6cf0e64ee6f6504121fe706f4dd4f8
2019-02-04 09:28:06 +00:00
Andrea Campanella
a2a6c3cdeb Refactoring Netconf Device Provider to simplify device connection and avoid calling behaviours when the session is not yet established
Change-Id: I7d3b1efc6194629ba77918dfd759781f7ccf1b60
2019-01-31 10:52:43 +00:00
David K. Bainbridge
1070de9e0a ONOS-7916 address a NPE and add some more debugging logs
Change-Id: I1debef2d108177ea8d000496ff3de78349433cc5
2019-01-30 08:57:46 +00:00
gyewan.an
8d91841cac Simple refactoring AbstarctNetconfSession
Change-Id: I0fac98ec79d09d2dbb0e1d403fb025befe4a7835
2019-01-30 08:29:39 +00:00
David K. Bainbridge
56e9023a33 ONOS-7806 - add support for path differentiator for netconf config
Change-Id: Ie4bdf4eb0348f9591b958bf89284026ed1c39074
2019-01-07 14:21:22 -08:00
Andrea Campanella
59227c30a4 Removing fixed ssh timout on netconf session, if not otherwise specified it will default to INFINITE
Re-Adding down listener to thread upon session re-establishment. Enables re-opening every time.

Change-Id: I4c236cb5ff91a0a0fa6c5f70de79728415c2e63a
2019-01-07 18:47:47 +01:00
Thomas Vachuska
60434b3085 Fixed deprecation warning in test code.
Change-Id: I34deaedef576ebee826c81ce4a44de985cbe9ce6
2018-12-19 09:37:57 -08:00
DongRyeol Cha
c29f9077cf Fix starvation of file descriptors due to netconf memory leak
If there are some errors during start the netconf session, SshClient is not freed so that sockets or file descriptors that made by SshClient are not freed as well.
It leads to starvation of file descriptors for onos so that onos cannot make network connections, spawn the threads so on.

This fix does not permit reusing of already closed NetconfSessionMinaImpl.

ONOS-7833

Change-Id: I1c8799cbbf8b28d23629123ad5d31ccca4a1fb3d
(cherry picked from commit 8f4c1e2ac5ed0033a472a4eb44fdfcba12145134)
2018-11-07 08:22:18 +00:00
Ray Milkey
68032db277 Remove blueprint files for 3.0 karaf CLI
Change-Id: I017db2a3c66cea8f0f7c568e5d4f3f302170936d
2018-11-01 20:39:23 +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
Thomas Vachuska
22ea6126e4 Removing BUCK files and other Buck-related auxiliaries.
Change-Id: I23691380efcd9bce4906695605214ed59ada0e87
2018-10-24 20:02:31 +00: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
Ray Milkey
ec20a291b5 netconf protocol changes for karaf 4.2.1 CLI
Change-Id: Ica9b614c4ef4f8264df13bd119531bb7806c290b
2018-10-11 15:55:42 -07:00
Ray Milkey
7a2dee599c [WIP] Add @Service tags to all commands and completers
Change-Id: I8d6ae6185ada30a92481ddb7b603af323656dc3a
2018-09-28 11:21:57 -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
Laszlo Papp
bdb6408dce Make the netconf notification stream customisable
Change-Id: I0e51861b7f8cb4961a47e88f64a493106e2c7a8a
2018-09-17 09:20:50 +00:00
zhongguo zhao
98bb37a80d fix netconf automatic reconnection issue (check both isClosed and isClosing)
Change-Id: I4b4730fe3030ae66877561ccf71f85c55919a7ce
2018-08-28 09:22:21 +00:00
zhongguo zhao
78eab37f02 fix too many open files
Change-Id: If5b31db383631dfca907a1ee1018d51ce2f0f36e
2018-08-27 16:23:45 +08:00
quan PHAM VAN
32d70e5642 [ODTN] Netconf inject capabilities and Nokia openconfig device discovery
Author:    Quan PHAM VAN <quan.pham_van@nokia.com>

Change-Id: I6bb639f0af3d1083922c4e631b8958a94d822886
2018-08-22 16:47:59 +02:00
Ray Milkey
761e80a427 Remove pom files from ONOS
Change-Id: I53e2395466cba10222d638736635b11380421d98
2018-08-21 18:11:58 +00:00
Kim JeongWoo
8b03bc583b [ONOS-7766] Modify the use of invalidated checkReply methods in Netconf
Change-Id: I4400c33373a93926bcc8a397db4f24e141790b63
2018-08-21 06:56:28 +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
Thomas Vachuska
a01ef78df3 Fixing javadoc warnings.
Change-Id: I7b99660777bf69978bf91435a63526ccb9bf8b71
2018-07-25 21:55:27 +00:00
Yuta HIGUCHI
4f55c67c98 NetconfSession refactoring
- Move netconf rpc envelope processing common across secure transport implementation
  to AbstractNetconfSession
  work by: Palash Kala <palash.kala@samsung.com>

Change-Id: I5f0d6adecf6224ae44f224291f645725b3c87739
2018-06-19 17:42:09 +00:00
Yuta HIGUCHI
2ee4fba094 Mark netconf related factory as functional interface
- deprecate/remove redundant factory implementations

Change-Id: I29ba9f3397c37c02b37d07dff16a4203186c5fcd
2018-06-13 17:31:46 +00:00
Ray Milkey
816db1086a Add modules to Bazel build
cli
core
incubator/rpc
pipelines/basic
protocols/netconf
protocols/openflow
protocols/rest

Change-Id: I165b94a04ba893d97d944e5deb2746f54566503b
2018-05-31 15:44:36 +00:00
Yuta HIGUCHI
f733373baf Bug fixes
- Netconf get family should return from <data
- adapt ODTN driver to that behavior

Change-Id: I25508518354914fdd239beab3a9951eff3586e41
2018-05-15 00:01:53 +00:00
Yuta HIGUCHI
5233decc2a Remove deprecated NetconfSessionImpl
Change-Id: I92d9407ff4bc0c25ca7b998cc4f387c3f40f9ace
2018-05-03 16:01:08 +00:00
Ray Milkey
bca9049101 Starting snapshot 1.14.0-SNAPSHOT
Change-Id: I97bab4e31d2b701f015289eae29d0c58a4937685
2018-04-13 12:47:31 -07:00
Yuta HIGUCHI
d1c413ba8f netconf RPC message parsing utils
Change-Id: I23d0d1a95bff3f193601eaa792e7574b7cc621de
2018-04-09 13:09:58 -07:00
Ray Milkey
054e23d0cf Add uptimes to device and cluster REST APIs
Change-Id: I0ccdf4e33135be4bcfd1674a76ff4b39e992268b
2018-03-22 13:48:50 -07:00
Yuta HIGUCHI
b31c4c54f9 Cleanup netconf-api pom
Change-Id: I0a37a7247586ee33fa4af9115ba93ca82662305e
2018-02-26 20:40:11 +00:00
Yuta HIGUCHI
5ac3443361 Async netconf API + command for netconf troubleshooting
- Added async API for fetching entire config (+ state)
- netconf-get
   issue netcong rpc get
- netconf-get-config
   Revised to use async API to deal with slow device

Example usage:
  onos> netconf-get netconf:192.168.56.1:2022 | ppxml

 for ONOS-7481

Change-Id: Id012e984275109c93bdae113f3fec685a7b2211b
2018-02-15 19:33:05 +00:00
Ray Milkey
d4b51c2651 Remove deprecated key file interface
Change-Id: If66006b4ffbe194be2a06eb14e3409219192edcc
2018-02-08 22:33:49 +00:00
Ray Milkey
ba547f9158 SONAR suggestion - log exceptions, don't print stack traces
Change-Id: I4814a0662912706df005972d44c48a7db39ecd50
2018-02-06 17:55:22 +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
Yuta HIGUCHI
fbd9ae9cdf Various small fixes
Change-Id: I83802169d0d968f7b88d4be2cedba74b15fdd7da
2018-01-25 22:17:25 +00:00