54 Commits

Author SHA1 Message Date
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
David K. Bainbridge
9b582b0b12 ONOS-7920 - mutex around access to prevent reentrant creation
Change-Id: I9492b2733686e0da4c05f304883f958f92598c79
2019-02-05 14:48:29 +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
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
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
Yuta HIGUCHI
d1c413ba8f netconf RPC message parsing utils
Change-Id: I23d0d1a95bff3f193601eaa792e7574b7cc621de
2018-04-09 13:09:58 -07: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
Yuta HIGUCHI
fbd9ae9cdf Various small fixes
Change-Id: I83802169d0d968f7b88d4be2cedba74b15fdd7da
2018-01-25 22:17:25 +00:00
Yuta HIGUCHI
e34c9c2989 minor netconf related fixes
Change-Id: Ie62c2c4f12cc672d1b5aec8feb4911e8393c6438
2017-12-05 18:30:24 +00:00
Yuta HIGUCHI
6e6c26e8bf async netconf RPC
- part of ONOS-7020

Change-Id: I27baf72dec06a2613bd4ae634f891c2420201900
2017-10-03 18:18:36 +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
Yuta HIGUCHI
dd7c3f8d78 Remove deprecated netconf classes and API
Change-Id: I3c0e37efe827060596aea667551729bf92331950
2017-09-05 16:44:11 +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
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
Brian O'Connor
a09fe5b0b7 Updating Copyright line to Open Networking Foundation
Change-Id: Icba96d7f39a065b53f34a6aeb71afd1f7d51f774
2017-08-03 21:12:30 -07:00
Yuta HIGUCHI
b6e0e914ce Moving NetconfDeviceConfig to API bundle
- Move the class to API bundle to allow config manipulation via API
- Avoid sweeping whole device tree on every Device event.
- code clean up

Change-Id: I58ebdc89688c6c9250bb546585c227d486b30df2
2017-05-22 18:41:03 +00:00
Yuta HIGUCHI
89111d973a [ONOS-6410] flexible configuration datastore specifier.
- added completer to netconf-config-get

Change-Id: I7cc88637bd51d9f4bea7d906346ffacfbd8706a6
2017-05-11 18:08:05 +00:00
Yuta HIGUCHI
d31bc6e6f6 make netconf-get-config usable on any NETCONF device.
- removed dependency to ConfigGetter

Change-Id: I00072625efc9ece327628f5034a845b0b96526f2
2017-05-04 18:43:23 +00:00
Yuta HIGUCHI
e3ae82134b Move internal classes under .impl package (1/2)
Change-Id: I72ed933ecd5ae7ffb268967f80fb395e90f7d8e9
2017-04-21 21:29:41 +00:00
Aaron Kruglikov
72db642274 Moving from a searching a string for capabilities to a Set.
ONOS-5947 ONOS-5948

Change-Id: Icac65263691e624dc74cfbc03c27e3974b935da2
2017-04-21 08:28:50 +00:00
Andrea Campanella
34cf65ce14 [ONOS-6076] Moving NETCONF devices configuration under devices key
Change-Id: I5a0dc2c2d33c7cd79655497f66373c6f4f9af656
2017-04-19 20:19:41 +00:00
Shivani Vaidya
48df84e653 unit tests for NetconfSessionImpl
Change-Id: Ic1b7d0221343f288b98c41f456809b59689e198f
2017-04-18 19:01:01 +00:00
Andrea Campanella
c362784be8 [ONOS-6236] Adding retry mechanism when NETCONF device sends socket closed signal
Change-Id: Ie48e94f92ce745f3f65a352d80b7a74c2eceba04
2017-04-14 20:05:49 +02:00
Andrei Mihaescu
ac542ca5c6 ONOS-5937
- created enum for target config and replaced all appropiate usages
 - added old methods and had them pointing to new implementation
 - added deprecated annotation to old methods

Change-Id: I2562588d32c7ab944eb44a13e9b25a342196edf2
2017-04-10 21:18:58 +00:00
Yuta HIGUCHI
0454d702c2 few minor fixes around netconf subsystem
Change-Id: I16ccd383dbaba9049e9b4a21ef1910cd12e5542d
2017-03-17 19:41:56 +00:00
Sean Condon
d2c8d4799f Fixed some concurrency issues in NETCONF Session Added Unit Tests
Change-Id: I84fe0c17e3d757948a859f78d01fbb025397a44d
2017-03-02 09:35:15 +00:00
Andrea Campanella
e7006dca2a ONOS-6020 RolledBack and deprecated a method in NetconfDeviceInfo to not break backwards compatibility
Change-Id: Ie029f6b1d3688d428130b76ed2e06c760d9a390a
2017-02-16 02:27:50 +00:00
Himanshu Ranjan
7c2ee3c7a1 connect netconf devices through ssh key
Change-Id: I1a0961ffffd33559f903ead0634dbb5492e9a154
2017-02-14 17:58:46 +00:00
Akihiro Yamanouchi
45122226d0 [ONOS-4849] NETCONF function for FUJITSU OLT #6
- Add alart command for FUJITSU OLT
   volt-notification-alertfilter <netconf:target>
   volt-notification-setalertfilter <netconf:target> <alert-severity>
   volt-notification-subscribe <netconf:target> {disable}
- Update fujitsu-drivers.xml and shell-config.xml in FUJITSU directory
- Apply Yuta's and Andrea's suggestion to startSubscription method and other methods which related to startSubscription method.
  -> Remove startSubscriptionConnection() and createSubscriptionString() method in 4th patch-set.
  -> Modify cosmetic issue related to Static-string.
  -> Update "No replay" to "No reply" in VoltGetPonLinksCommand.java

Change-Id: I2c8d5484ea0ff9f0b1b970fe8b183bec12193c46
2016-07-25 23:29:31 +00:00
Akihiro Yamanouchi
8d3a9d3a72 [ONOS-4837] NETCONF function for FUJITSU OLT #4 and #5
- Add the following commands for FJ OLT
  volt-onus <netconf:target> <ONU ID>
  volt-setonu <netconf:target> <ONU-ID:parameter type:parameter value>
  volt-onustats <netconf:target> {ONU-ID}
  volt-rebootonu <netconf:target> <ONU-ID>
  volt-ethloopback <netconf:target> <ONU-ETH-ID[:loopback mode]>
- Add the method of doUserRpc() in Netconfsession/NetconfSessionImpl
   *If you dont allow to implement the method, i can move it to our XmlUtility method.
- Add new behaviours in /core/.../net/behaviour, and @Beta in the interface.
- Move those behaviour interface to fujitsu driver directory.
   * VoltPonLinkConfig.java as well.
- Update fujitsu-drivers.xml
- Change the method name from doUserRpc to doWrappedRpc

Change-Id: Ic39d3a11ba35d2377e552af097eda65c5554c63f
2016-07-14 22:37:52 +00:00
helenyrwu
0407c641ef NetconfAlarmProvider alerts core about notifications given subscription.
Change-Id: I7561ba680eb8bac33a8543d6aa1bccf6732e95db
2016-06-29 22:00:16 +00:00
Akihiro Yamanouchi
5e5d4df902 [ONOS-4654] NETCONF function for FUJITSU OLT #1
Change-Id: I3565d127252de732d249ed5dd919874d6438c2fa
2016-06-22 00:52:25 +00:00
Brian O'Connor
5ab426f9ff Updating copyrights
New format: 'Copyright .year-present Open Networking Laboratory'

Change-Id: I1a9e58b355b775e75245ad875a2d7a4df3f03098
2016-04-09 01:20:21 -07:00
Andrea Campanella
7e6200aa41 [ONOS-4045]Adding mastership service to NetconfProvider
Change-Id: Id39cbef54a079ab6e080a9d3f60770c4bea90b3f
2016-03-29 00:42:49 +00:00
Andrea Campanella
86294db0e1 Removing Rest and Netconf devices when the providers are disabled
Change-Id: Icac7146fea1295c11972ae4cbf87f8ef9689c671
2016-03-08 19:42:18 +00:00
HIGUCHI Yuta
e48434a0d4 Fix minor javadoc issues
Change-Id: I9803f17ca2b2a21920dccb0e92de6c39f84af315
2016-03-02 08:16:30 +00:00
Andrea Campanella
950310c913 ONOS-3929 Netconf Device Factory
Change-Id: I03f63dd5344f3bde8786acd0fc5de367e8e39c6e
2016-02-17 01:56:55 +00:00
Andreas Papazois
d4712e2aac [ONOS-3918] Handling of NETCONF <rpc-error> and no message-id
Change-Id: I8b9396a727fb54b5b84d02f258c14cfccad5bb99
2016-02-16 17:33:20 +00:00
Andrea Campanella
57efbb25e7 Refactoring ID creation for netconf and REST
Change-Id: I4165ad53e19c86d9d9b304d09e24dcfeec2b9ddf
2016-02-12 00:24:43 +00:00
Andrea Campanella
b029b9e4bd ONOS-3839 Fixing errors in sending requests and hanging on future.join
Change-Id: I6da5bf1ff728efeb0d531cf7f04f6bf49f11a0a9
2016-02-09 18:42:44 +00:00
Andrea Campanella
8b1cb67def ONOS-3791 NETCONF session factory and exception on device connection
Change-Id: I7c6651a4f76537056a2dc8f94d54818b5b238b9a
2016-01-29 20:50:12 +00:00
Andrea Campanella
101417da64 ONOS-3605 Create thread Session input stream mechanism, adding listener for events from the device
Change-Id: Ib323487f61d9e595f7ccdc1957a92e58b7002d2a
2016-01-19 21:02:20 +00:00
Andrea Campanella
f4fd035953 ONOS-3577 Adding getConfig with realtive config XML-tree argument
Change-Id: I3ee69bea55352e35007826659277c839d8457d3f
2016-01-07 18:21:52 +00:00