netconf.git
5 years agoMerge "Close read-only transactions"
Tomas Cere [Wed, 15 May 2019 07:15:30 +0000 (07:15 +0000)]
Merge "Close read-only transactions"

5 years agoFix mdsal-netconf-connector dependencies 44/82044/1
Robert Varga [Tue, 14 May 2019 20:07:49 +0000 (22:07 +0200)]
Fix mdsal-netconf-connector dependencies

sal-broker-impl is not needed and it not pulling in in-memory DS
has broken the build. Fix up dependencies to pull in mdsal
counterparts, which is what we really need.

Change-Id: I5795877b16f55a9376e7635a360eadc962ff9b48
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump mdsal to 4.0.1 25/81825/4
Robert Varga [Tue, 30 Apr 2019 11:52:18 +0000 (13:52 +0200)]
Bump mdsal to 4.0.1

This bumps mdsal to 4.0.1.

Change-Id: I42366367b001b64d2ae23b88992fcdebcaa881d3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoClose read-only transactions 50/81950/1
Robert Varga [Tue, 7 May 2019 17:54:18 +0000 (19:54 +0200)]
Close read-only transactions

Transactions are resources just as any other, make sure we close
them as soon as we do not need them.

Change-Id: Ic11becba1a76f2aeecbf5c1e17401f6a55fd84cc
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoCapture server key before returning from callback 27/81927/2
Robert Varga [Mon, 6 May 2019 20:56:54 +0000 (22:56 +0200)]
Capture server key before returning from callback

The key exchange structure is torn down immediately after
KeyEstablished callback returns, hence we need to capture
the server key before returning.

JIRA: NETCONF-614
Change-Id: Iebe69fe374a766f1502325cb610eed8dadb5f099
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoMerge changes from topic 'web-sockets'
Robert Varga [Tue, 7 May 2019 06:54:14 +0000 (06:54 +0000)]
Merge changes from topic 'web-sockets'

* changes:
  Removal of EventBusChangeRecorder
  Refactoring of web-sockets in RESTCONF RFC-8040

5 years agoFixed deadlock between AsyncSshHandlerReader and AsyncSshHandler 14/81714/3
Jaroslav Tóth [Sat, 30 Mar 2019 18:12:03 +0000 (19:12 +0100)]
Fixed deadlock between AsyncSshHandlerReader and AsyncSshHandler

First was fix in AsyncSshHandlerReader but there was another
deadlock after that. Therefore a change in AsyncSshHandler is also
needed. Both ABBA deadlockw occur when AsyncSshHandler.disconnect
(..) and AsyncSshHandlerReader.invokeDisconnect(..) methods are
executed concurrently within the same SSH session that is going
to be closed.

Note: Snippets from stack-traces are from Oxygen distribution, so
the line numbers don't have to match exactly.

Deadlock #1:
"nioEventLoopGroupCloseable-3-20":
at org.opendaylight.netconf.nettyutil.handler.ssh.client
.AsyncSshHandlerReader.close(AsyncSshHandlerReader.java:96)
- waiting to lock <0x000000072ecffff8> (a org.opendaylight
.netconf.nettyutil.handler.ssh.client.AsyncSshHandlerReader)
at org.opendaylight.netconf.nettyutil.handler.ssh.client
.AsyncSshHandler.disconnect(AsyncSshHandler.java:235)
- locked <0x000000072ed00020> (a org.opendaylight.netconf
.nettyutil.handler.ssh.client.AsyncSshHandler)
at org.opendaylight.netconf.nettyutil.handler.ssh.client
.AsyncSshHandler.close(AsyncSshHandler.java:215)
...

"sshd-SshClient[57f78db1]-nio2-thread-1":
at org.opendaylight.netconf.nettyutil.handler.ssh.client
.AsyncSshHandler.disconnect(AsyncSshHandler.java:221)
- waiting to lock <0x000000072ed00020> (a org.opendaylight
.netconf.nettyutil.handler.ssh.client.AsyncSshHandler)
...
org.opendaylight.netconf.nettyutil.handler.ssh.client
.AsyncSshHandlerReader.operationComplete(AsyncSshHandlerReader
.java:64)
- locked <0x000000072ecffff8> (a org.opendaylight.netconf
.nettyutil.handler.ssh.client.AsyncSshHandlerReader)
...

Deadlock #2:
"nioEventLoopGroupCloseable-3-19":
at org.apache.sshd.client.session.ClientSessionImpl
.signalAuthFailure(ClientSessionImpl.java:138)
- waiting to lock <0x000000072c800218> (a java.lang.Object)
at org.apache.sshd.client.session.ClientSessionImpl
.preClose(ClientSessionImpl.java:126)
at org.apache.sshd.common.util.closeable.AbstractCloseable
.close(AbstractCloseable.java:95)
        at org.opendaylight.netconf.nettyutil.handler.ssh.client
.AsyncSshHandler.disconnect(AsyncSshHandler.java:251)
- locked <0x000000072c800480> (a org.opendaylight.netconf
.nettyutil.handler.ssh.client.AsyncSshHandler)
...

"sshd-SshClient[411a406d]-nio2-thread-8":
at org.opendaylight.netconf.nettyutil.handler.ssh.client
.AsyncSshHandler.disconnect(AsyncSshHandler.java:221)
- waiting to lock <0x000000072c800480> (a org.opendaylight
.netconf.nettyutil.handler.ssh.client.AsyncSshHandler)
...
org.apache.sshd.common.session.helpers.AbstractSession
.handleMessage(AbstractSession.java:499)
- locked <0x000000072c800218> (a java.lang.Object)
...

Change-Id: I42260213cad82250832451539d6ce11035ba37e2
Signed-off-by: Martin Sunal <msunal@frinx.io>
Signed-off-by: Jaroslav Tóth <jtoth@frinx.io>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoRemoval of EventBusChangeRecorder 26/81526/6
Jaroslav Tóth [Wed, 10 Apr 2019 06:40:44 +0000 (08:40 +0200)]
Removal of EventBusChangeRecorder

- Reasons to remove :
  1) AbstractCommonSubsriber notifies event bus and then event bus
     performs operations on AbstractCommonSubsriber - what is the
     reason for this indirection?
  2) AbstractCommonSubsriber does nearly nothing; only brokes input
     events to subscribers based on EventType.
  3) There are only two possible types of subsribers that have
     common parent in which all logic is performed.
- Correction of synchronization in AbstractCommonSubscriber -
  concurrent set is not enough, because in postData(..) method this
  set is accessed twice --> explicit sync using monitor or lock is
  required.

Change-Id: Iac70127b7ebbbbe0c0ff849120818ddf71278a94
Signed-off-by: Jaroslav Tóth <jtoth@frinx.io>
5 years agoRefactoring of web-sockets in RESTCONF RFC-8040 43/80943/12
Jaroslav Tóth [Sun, 17 Mar 2019 19:21:10 +0000 (20:21 +0100)]
Refactoring of web-sockets in RESTCONF RFC-8040

- Notificator is removed and replaced by ListenersBroker; mods.:
  A. One stream-name can be associated only with one YANG
     notification listener, because it is sufficient (XML/JSON
     format is distinguished directly in stream name).
  B. YANG notification streams are divided from data-change event
     streams; refactored method signatures.
  C. Added synchronization (R/W locking that also differs between
     access to data-change and YANG notification listeners).
- Exposing of public subsriber methods to BaseListenerInterface.
- Refactoring of CreateStream utilities and RPC processors.
- Refactoring of SubsribeToStream utilities and RPC processors.

Change-Id: I521f3b893a5cfa53d59a438e871924c54d6f4d7d
Signed-off-by: Jaroslav Tóth <jtoth@frinx.io>
5 years agoRemove duplicate assignment 88/81788/2
Jie Han [Fri, 26 Apr 2019 03:57:00 +0000 (11:57 +0800)]
Remove duplicate assignment

Since it has been in a synchronized block, just remove
this line.

Change-Id: I3f6159640d76c4027ff97be447351cc8668e57d9
Signed-off-by: Jie Han <han.jie@zte.com.cn>
5 years agoFixed deadlock in AsyncSshHandlerWriter 13/81713/1
Jaroslav Tóth [Tue, 2 Apr 2019 03:41:32 +0000 (05:41 +0200)]
Fixed deadlock in AsyncSshHandlerWriter

Deadlock happened when listener for window is resized
and write is invoked at the same time.

Change-Id: I8c662d6cd5edbc3e36b31a754d826f79bec76434
Signed-off-by: Martin Sunal <msunal@frinx.io>
Signed-off-by: Jaroslav Tóth <jtoth@frinx.io>
5 years agoBump mdsal to 4.0.0 73/81273/18
Robert Varga [Thu, 28 Mar 2019 19:41:39 +0000 (20:41 +0100)]
Bump mdsal to 4.0.0

This bumps mdsal to 4.0.0, adjusting to changed APIs:
- 'type empty' mapped to yang.common.Empty
- RPC method invocation using ListenableFuture instead of FluentFuture
- DOMDataTreeReadWriteTransaction no longer having close() method

Change-Id: I7e4f3bba8cab75af750784d77c2a62ca2460e542
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoReplace EditOperationNormalizedNodeStreamWriter 90/81390/18
Robert Varga [Tue, 2 Apr 2019 16:40:19 +0000 (18:40 +0200)]
Replace EditOperationNormalizedNodeStreamWriter

Since NormalizedNodes no longer hold attributes directly, but these
are rather a separate structure communicated through an extension
to NormalizedNodeStreamWriter, the entire implementation of how
edit-config is split into individual changes needs to be reworked.

This patch replaces EditOperationNormalizedNodeStreamWriter and
DataTreeChangeTracker with SplittingNormalizedNodeMetadataStreamWriter,
which is the primary receiver of events. It takes care of delegating
them to an ImmutableNormalizedNodeStreamWriter, subclassed as
ComponentNormalizedNodeStreamWriter, which exposes build() operation,
which peels off the current builder and builds it.

Since ModifyAction hosted in yangtools was only used as an attribute
in NormalizedNodes and hence was removed, it is introduced here
in netconf-api.

The sal-netconf-connector part of this change takes care of emitting
the ModifyAction request in terms of NormalizedNodeMetadataStreamWriter.

Change-Id: I83affe10d1334ecebc9fafb9c76021c2de389239
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump yangtools to 3.0.0 72/81272/15
Robert Varga [Thu, 28 Mar 2019 19:42:16 +0000 (20:42 +0100)]
Bump yangtools to 3.0.0

This bumps yangtools to 3.0.0, adjusting by API changes introduced
in this release:
- EffectiveModelContextFactory is required by yang.model.repo.api
  constructs
- JSONParserStream.create() deprecated methods removed
- ParserConfigurationException no longer thrown from UntrustedXML
- strict if-feature validation by YANG parser
- SchemaUtils.getNodeIdentifierForAugmentation() removal
- LeafrefSchemaNode correctly using PathExpression and not the
  overly-general RevisionAwareXPath
- NormalizedNodeStreamWriter updates
- NormalizedNodes no longer having attributes

The last two items require a complete overhaul of how edit operation
is disassembled in EditOperationNormalizedNodeStreamWriter. This
is addressed in a follow-up patch.

Change-Id: Ic58c7392d6326bc785bc2f1da9f5dee866e830dc
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump odlparent to 5.0.0 71/81271/11
Robert Varga [Thu, 28 Mar 2019 19:42:52 +0000 (20:42 +0100)]
Bump odlparent to 5.0.0

This bumps odlparent to 5.0.0.

Change-Id: Icc2404f5862639639bb4936fd273c2f5a19a1f8c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoSimplify getDescription invocation 19/81519/1
Robert Varga [Wed, 10 Apr 2019 06:56:04 +0000 (08:56 +0200)]
Simplify getDescription invocation

Previous patch was needlessly complicated, use flatMap()
with a method handle instead.

Change-Id: I99cddca3e81c3b40c98a6ef859701cc54d6f8501
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoMigrate away from deprecated put() method 91/81491/1
Robert Varga [Tue, 9 Apr 2019 13:37:43 +0000 (15:37 +0200)]
Migrate away from deprecated put() method

ObjectNode.put(String,JsonNode) has been deprecated in favor
of set()/replace(). Migrate to use set().

Change-Id: I3ebbdefe9238833ea994dac659a75972ebad835f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoReduce use of getDataChildByName() 90/81490/1
Robert Varga [Tue, 9 Apr 2019 13:28:14 +0000 (15:28 +0200)]
Reduce use of getDataChildByName()

findDataChildByName() is a better replacement, use that instead.

Change-Id: I8e6be2dfd68c1146c231e8381ce16d64a35896ce
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoMake javax.inject dependencies optional 89/81489/1
Robert Varga [Tue, 9 Apr 2019 13:15:09 +0000 (15:15 +0200)]
Make javax.inject dependencies optional

We do not require javax.inject to be present, make it an optional
dependency.

Change-Id: I4166174cbcb1a5dfb32ce4d997401a0ca8580530
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoReduce the use of AttrBuilders 09/81409/3
Robert Varga [Fri, 5 Apr 2019 21:38:53 +0000 (23:38 +0200)]
Reduce the use of AttrBuilders

NormalizedNode*AttrBuilders are going away, remove them from where
they are not necessary.

Change-Id: I72cb68e6565f9c05864e1c465d5db7611e5a9c02
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoFix logging arguments 08/81408/1
Robert Varga [Fri, 5 Apr 2019 18:54:50 +0000 (20:54 +0200)]
Fix logging arguments

These are pointed out by upgraded spotbugs, fix them up.

Change-Id: I520c8be21d69c73c0ca9b51d15e63df158fd242a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoFix logging arguments 06/81406/1
Robert Varga [Fri, 5 Apr 2019 18:54:50 +0000 (20:54 +0200)]
Fix logging arguments

These are pointed out by upgraded spotbugs, fix them up.

Change-Id: I766f1f26444fd10cc6858e5f064209fcf3d9860a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoShorten java.util.Optional references 05/81405/1
Robert Varga [Fri, 5 Apr 2019 18:44:48 +0000 (20:44 +0200)]
Shorten java.util.Optional references

We are getting less exposure to Guava Optional, which was forcing
us to use java.util.Optional through full reference. Fix references
to reflect the fact we can freely import it.

Change-Id: I1a87aafdac2861b0e71df1d51994ece7ff6cb78c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoMerge "Remove a FindBugs suppression"
Robert Varga [Fri, 29 Mar 2019 16:56:00 +0000 (16:56 +0000)]
Merge "Remove a FindBugs suppression"

5 years agoMerge "SchemaSourceCache init using YangModuleInfo"
Jakub Morvay [Fri, 29 Mar 2019 11:35:39 +0000 (11:35 +0000)]
Merge "SchemaSourceCache init using YangModuleInfo"

5 years agoRemove a FindBugs suppression 74/81274/1
Robert Varga [Thu, 28 Mar 2019 20:21:06 +0000 (21:21 +0100)]
Remove a FindBugs suppression

Use Deque.remove() keeps SpotBugs happy, and does not change
anything, as we know the queue is non-empty at this point.

Change-Id: I307dd22eb9a2a56a9a18490ff1e45aa6d4f2a5e0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoMerge "Hide credentials from logs"
Jakub Morvay [Thu, 28 Mar 2019 14:01:41 +0000 (14:01 +0000)]
Merge "Hide credentials from logs"

5 years agoMerge "Added implementation of ActionFactory"
Jakub Morvay [Thu, 28 Mar 2019 14:01:33 +0000 (14:01 +0000)]
Merge "Added implementation of ActionFactory"

5 years agoAdded implementation of ActionFactory 17/81117/3
Jaroslav Tóth [Fri, 22 Mar 2019 14:10:12 +0000 (15:10 +0100)]
Added implementation of ActionFactory

- Added device action factory implementation that creates
  DOMActionService implementations using netconf message
  transformer, and remote device communicator.
- Injected ActionFactory to netconf topology and callhome topogy.

JIRA: NETCONF-448
Change-Id: I48261d0ae7639f63bec3ae04a88a15a78ed56962
Signed-off-by: Jaroslav Tóth <jtoth@frinx.io>
5 years agoHide credentials from logs 56/81256/2
Jaroslav Tóth [Thu, 28 Mar 2019 11:54:14 +0000 (12:54 +0100)]
Hide credentials from logs

- Netconf credentials are replaced by '***' in
  AbstractNetconfTopology class (security fix).

Change-Id: I9276f82a3d39e10fdb41a5f5730446548ff39a30
JIRA: NETCONF-609
Signed-off-by: Jaroslav Tóth <jtoth@frinx.io>
5 years agoMerge "Output-less RPCs should return 204 (old restconf)"
Jakub Morvay [Thu, 28 Mar 2019 09:34:26 +0000 (09:34 +0000)]
Merge "Output-less RPCs should return 204 (old restconf)"

5 years agoMerge "Fix parsing of fields parameters"
Jakub Morvay [Thu, 28 Mar 2019 08:16:55 +0000 (08:16 +0000)]
Merge "Fix parsing of fields parameters"

5 years agoOutput-less RPCs should return 204 (old restconf) 22/81222/4
Jaroslav Tóth [Wed, 27 Mar 2019 12:50:21 +0000 (13:50 +0100)]
Output-less RPCs should return 204 (old restconf)

- draft-bierman-netconf-restconf-02 (5.4 Operation Resource):
  "... If the "rpc" statement has an "output" section, then a message
  body MAY be sent by the server in the response.  Otherwise the server
  MUST NOT include a message body in the response message, and MUST send
  a "204 No Content" Status-Line instead."
- Old restconf implementation is modified - the RPCs with empty
  output throws WebApplicationException with status code 204 (both,
  with or withput input payload versions).

Change-Id: Ie9eb836b82725b5ab7eaaf4e3b7c932815b928e6
JIRA: NETCONF-366
Signed-off-by: Jaroslav Tóth <jtoth@frinx.io>
5 years agoMerge "Allow double slashes in RESTCONF URLs"
Jakub Morvay [Thu, 28 Mar 2019 07:54:45 +0000 (07:54 +0000)]
Merge "Allow double slashes in RESTCONF URLs"

5 years agoOutput-less RPCs should return 204 (new restconf) 21/81221/2
Jaroslav Tóth [Wed, 27 Mar 2019 11:52:22 +0000 (12:52 +0100)]
Output-less RPCs should return 204 (new restconf)

- RFC-8040 (4.4.2 - Invoke Operation Mode):
  "If the POST request succeeds, a "200 OK" status-line is returned
  if there is a response message-body, and a "204 No Content"
  status-line is returned if there is no response message-body."
  The example in RFC confirms on specific RPC without output (also
  in section 4.4.2).
- Restconf RFC 8040 RPC handler is modified so it is checked
  against empty data in output container. If there is no data child
  under otuput container, WebApplicationException with status code
  204 is thrown.

Change-Id: I3e9396db8096571719ad7947cb46f6196cc54532
JIRA: NETCONF-366
Signed-off-by: Jaroslav Tóth <jtoth@frinx.io>
5 years agoFix parsing of fields parameters 95/81195/1
Jaroslav Tóth [Tue, 26 Mar 2019 15:02:24 +0000 (16:02 +0100)]
Fix parsing of fields parameters

- Multiple nested schema nodes splitted by semilcolon can be placed
  on one level of QNames, also, when the nested schema nodes are
  specified by multiple-nodes path; example:
  fields=service(type;instance/name;instance/provider)
- Previously, multiple-nodes nested path to schema node had to be
  listed as the last parameter in brackets without any other
  multi-nodes nested path.

Change-Id: I0d2f76047342e19a996fea0abe4001597d1c0a03
JIRA: NETCONF-320
Signed-off-by: Jaroslav Tóth <jtoth@frinx.io>
5 years agoAllow double slashes in RESTCONF URLs 44/81144/1
Jaroslav Tóth [Mon, 25 Mar 2019 13:47:47 +0000 (14:47 +0100)]
Allow double slashes in RESTCONF URLs

- Allowing of double slashes in URI - empty part of URI is ignored
  if list with one or more keys doesn't preceed it.
- Fix for old RESTCONF spec.

Change-Id: If3c4a6cd7c81d3e09500f74f6da3843bb525fc19
JIRA: NETCONF-24
Signed-off-by: Jaroslav Tóth <jtoth@frinx.io>
5 years agoSchemaSourceCache init using YangModuleInfo 41/81041/2
Jaroslav Tóth [Wed, 20 Mar 2019 12:26:39 +0000 (13:26 +0100)]
SchemaSourceCache init using YangModuleInfo

- SchemaSourceCache is initialized directly using set of
  YangModuleInfo, not just by paths to modules.
- Updated Configuration && ConfigurationBuilder with
  Set<YangModuleInfo>.

Change-Id: Ief27da31fdb19576bca938843042386a3965fc80
JIRA: NETCONF-528
Signed-off-by: Jaroslav Tóth <jtoth@frinx.io>
5 years agoMerge "NETCONF-527 Holding of key-pair in memory"
Jakub Morvay [Tue, 19 Mar 2019 10:20:23 +0000 (10:20 +0000)]
Merge "NETCONF-527 Holding of key-pair in memory"

5 years agoNETCONF-527 Holding of key-pair in memory 81/80981/1
Jaroslav Tóth [Tue, 19 Mar 2019 09:28:18 +0000 (10:28 +0100)]
NETCONF-527 Holding of key-pair in memory

- Generated key-pair is not saved in file but rather kept only in
  memory.
- Created VirtualKeyPairProvider that allows creation of only one
  key-pair that is returned in loadKeys(..) method.

Change-Id: If51f7ae7205bfa85c95649ce327fc01d276c0e6b
Signed-off-by: Jaroslav Tóth <jtoth@frinx.io>
5 years agoNETCONF-608 - Change Netconf keepalives to not send during large payload replies 91/80391/6
Jakub Tóth [Wed, 20 Feb 2019 10:11:35 +0000 (11:11 +0100)]
NETCONF-608 - Change Netconf keepalives to not send during large payload replies

  * stop to send the keepalive rpc to device while ODL is waiting/processing
    the response from the device
  * junit tests

Change-Id: Ib5f4c9a8e2c4cac92887750b687ea8c50e58f3c0
Signed-off-by: Jakub Tóth <jtoth@luminanetworks.com>
5 years agoUpdate DataTreeChangeTracker 94/80694/1
Robert Varga [Wed, 6 Mar 2019 09:51:57 +0000 (10:51 +0100)]
Update DataTreeChangeTracker

DataTreeChangeTracker is treated as a pure DTO, whereas it has some
characteristics attached, but kept in EditConfig support.

Refactor it to remove collection leaks and duplicate code. Also optimize
current path snapshotting by instatiating YangInstanceIdentifier
eagerly.

Change-Id: I05b4e9e6d2cfd49a289b20b6ee2072fc755a0377
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoGet rid of string payload RestconfService#invokeRpc 41/80241/5
Jakub Morvay [Fri, 8 Feb 2019 18:14:42 +0000 (19:14 +0100)]
Get rid of string payload RestconfService#invokeRpc

This method was deprecated a while ago and should not be used and
provided. invokeRpc method with NormalizedNodeContext payload is enough
and should be used on all occasions.

Change-Id: I3098861d6fd9c4923d8b5fd291344865b977d8a2
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoMerge "introduce Rfc8040RestConfWiring for standalone (simple) environments"
Jakub Morvay [Fri, 8 Feb 2019 18:41:41 +0000 (18:41 +0000)]
Merge "introduce Rfc8040RestConfWiring for standalone (simple) environments"

5 years agoMerge "Allow no payload for RPCs with no input"
Jakub Morvay [Fri, 8 Feb 2019 18:38:15 +0000 (18:38 +0000)]
Merge "Allow no payload for RPCs with no input"

5 years agoFix error message 40/80240/3
Jakub Morvay [Fri, 8 Feb 2019 13:38:57 +0000 (14:38 +0100)]
Fix error message

This fixes obviously wrong error message propagated to user when RPC
with an input section defined is tried to be invoked without any/empty
payload.

Change-Id: I7cb6f5b6e0b7ea6fa16907d94028502957c90166
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoAllow no payload for RPCs with no input 37/80237/2
Jakub Morvay [Fri, 8 Feb 2019 13:01:16 +0000 (14:01 +0100)]
Allow no payload for RPCs with no input

Do not require empty payload for RPCs with no input defined. Invoking
such RPCs without any payload at all should be also supported.

JIRA: NETCONF-607
Change-Id: Ibf8ca7d65cf25ac54f8283f65f4706ad3f69c5ee
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agointroduce Rfc8040RestConfWiring for standalone (simple) environments 14/80214/8
Michael Vorburger [Thu, 7 Feb 2019 17:50:37 +0000 (18:50 +0100)]
introduce Rfc8040RestConfWiring for standalone (simple) environments

very similar to the previous Bierman02RestConfWiring

including a non-regression test

Change-Id: If7b7fdabe85c39ddfb4af351daed4f8771b2bcbe
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoRemove javax.annotation nullness annotations 19/80219/2
Robert Varga [Thu, 7 Feb 2019 21:49:40 +0000 (22:49 +0100)]
Remove javax.annotation nullness annotations

These annotations should not be used and they interfere with Java EE
annotations. Migrate/eliminate them as needed.

Change-Id: Ifa3a80f2accdba369d916aaffde43025ded20b1b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoFix Revision confusion 18/80218/2
Robert Varga [Thu, 7 Feb 2019 19:07:27 +0000 (20:07 +0100)]
Fix Revision confusion

yag-library-version is a YANG string, hence the leaf needs to be
set appropriately.

JIRA: NETCONF-606
Change-Id: Iae705bf924de943871b49a8d3b39f7b7b4a55906
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agointroduce Bierman02RestConfWiring for standalone (simple) environments 88/79388/11
Michael Vorburger [Wed, 9 Jan 2019 22:19:37 +0000 (23:19 +0100)]
introduce Bierman02RestConfWiring for standalone (simple) environments

This comes out of https://github.com/vorburger/opendaylight-simple
(and see JavaDoc for the history & ACK/nod to Lighty.io)

This (now, not originally) requires
I3c632adbb4c4a9d9ac7bed4557bcaaece47dd0cf in AAA.

Change-Id: I614a48bcc425db8faa1a79ebd6236236bcd09e73
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoGet rid of some Guava dependencies 38/80138/4
Jakub Morvay [Mon, 4 Feb 2019 20:01:11 +0000 (21:01 +0100)]
Get rid of some Guava dependencies

Use Java 8 Optional and Objects requireNonNull instead of their guava
counterparts.

Change-Id: Ieaebd36ec8b3fc9745739c243b3ee8285de8a04b
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoMake netconf node tcp-only leaf have default value 37/80137/3
Jakub Morvay [Sat, 2 Feb 2019 17:40:27 +0000 (18:40 +0100)]
Make netconf node tcp-only leaf have default value

Netconf node tcp-only leaf defines if we should use SSH or TCP as an
underlying protocol for netconf session to a netconf device.

Currently it does not have any default value defined. That means if we
forgot to fill in tcp-only field when configuring netconf mount point,
netconf topology implementation will not know what protocol to use and
will throw NPE. However, it would be more user friendly to have some
default protocol defined. We should aim to use SSH by default as it is
more secure protocol than just plain TCP.

Make tcp-only field default to false.

JIRA: NETCONF-488
Change-Id: I99d17ad54db55089b9ec3e417d69e711058c760a
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoDisable servlet sessions for /rests web context 32/80132/2
Jakub Morvay [Mon, 4 Feb 2019 11:52:39 +0000 (12:52 +0100)]
Disable servlet sessions for /rests web context

Follow-up patch to https://git.opendaylight.org/gerrit/#/c/80006/.

Disable servlet sessions for /rests web context for the same reasons why
we disable it for /restconf web context. That is, it seems we do not
have to keep track of Servlet API HTTP Sesssion objects.

Change-Id: I8d8165a0a8e515db85718dd08fd3a40a4a8ffed5
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agodisable Servlet sessions for /restconf web context 06/80006/2
Michael Vorburger [Tue, 29 Jan 2019 20:49:55 +0000 (21:49 +0100)]
disable Servlet sessions for /restconf web context

Unless RESTCONF, or JAX RS, is doing something I am not aware of, I
doubt that we need our chosen Servlet Container (currently Jetty) tokeep
track of Servlet API HTTP Sesssion objects for connections to /restconf?

This probably saves a (little bit) of memory in Jetty & Co.

Change-Id: Ia57c22036b65b03eada81991e1566fc9da65ecb6
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoMerge bierman02-auth and bierman02-base features 23/80123/7
Jakub Morvay [Sat, 2 Feb 2019 10:01:00 +0000 (11:01 +0100)]
Merge bierman02-auth and bierman02-base features

We do not need odl-restconf-nb-bierman02-base feature now. It is
bierman-02 restconf implementations and used to be pulled by both
bierman02-auth and bierman02-noauth features. These two features just
initialized the web application (with or without authentication).

Since bierman02-noauth is no longer with us, merge remaining two
features into odl-restconf-nb-bierman02 feature.

Change-Id: I121e3c109ca1b5f60aac66e76af011cef0774f7d
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoRemove bierman02-noauth feature 22/80122/5
Jakub Morvay [Sat, 2 Feb 2019 09:30:00 +0000 (10:30 +0100)]
Remove bierman02-noauth feature

odl-restconf-nb-bierman02-noauth was deprecated in Neon. Get rid of it
now in Sodium.

Change-Id: I848f09af7a82d91fc564842838c9ba535decad69
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoBump versions by x.y.(z+1) 90/80090/1
jenkins-releng [Fri, 1 Feb 2019 13:06:30 +0000 (13:06 +0000)]
Bump versions by x.y.(z+1)

Change-Id: I5c4aee9a480a4fbec891d07af883dbe3c916d16d
Signed-off-by: jenkins-releng <jenkins-releng@opendaylight.org>
5 years agoAdd custom EXI buffer management 46/76546/7
Robert Varga [Wed, 30 Jan 2019 23:25:02 +0000 (00:25 +0100)]
Add custom EXI buffer management

Exificient's SAXDecoder by default does not free its internal buffer,
and allocates one for each decoder. With version 1.0.4 we have enough
visibility to perform buffer management.

This adds a thread-local buffer, which is reused during parse operation
and retained if it is under 64kB after the operation completes.

Change-Id: Ie2f7c72b1160d389a07c473fda6739b7eb7212cb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoMerge "Bump exificient to 1.0.4"
Jakub Morvay [Thu, 31 Jan 2019 05:30:50 +0000 (05:30 +0000)]
Merge "Bump exificient to 1.0.4"

5 years agoBump exificient to 1.0.4 52/80052/1
Robert Varga [Wed, 30 Jan 2019 22:52:45 +0000 (23:52 +0100)]
Bump exificient to 1.0.4

This brings in a xerces upgrade, allowing us to remove the override
we have been carrying.

Change-Id: If2c8cd061b5c034ad62fedd15d76966785863d97
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoInitialize EXISchema grammars lazily 47/80047/7
Jakub Morvay [Wed, 30 Jan 2019 19:19:54 +0000 (20:19 +0100)]
Initialize EXISchema grammars lazily

Creating schema-backed netconf grammar is costly operation. Do not
create it until we actually need it.

This way we do not introduce any performance regression for netconf
sessions that do not want to use schema-informed grammars for EXI
encoding.

Also do not force grammar instantiation when a mismatching option
is specified by the peer.

JIRA: NETCONF-584
Change-Id: I83f5e18f423cd21c1dc993980f42e030f36a12ed
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoremove curious hard-coded yangtools 2.1.8 which seems no longer needed 10/80010/1
Michael Vorburger [Tue, 29 Jan 2019 23:01:48 +0000 (00:01 +0100)]
remove curious hard-coded yangtools 2.1.8 which seems no longer needed

This appears to have been introduced in
I417b22698df04edc8263b57e6fcd5d0a558c6ef4, but with the subsequent "Bump
to mdsal 3.0.6" in I6bbb6fa8af6860d9da08fcdde165a43c4abc6998 (and
"Finish bumping to yangtools 2.1.8" in
I51f7a2b30d40ae2b694df000465d383d165d9a0d) can be removed, given that
mdsal 3.0.6 already pulls yangtools 2.1.8.

Change-Id: Iaefc1c066b13aa7181c93e1f2963d798c43f121b
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoMove BP xml files to standard OSGI-INF/blueprint 64/79964/3
Tom Pantelis [Mon, 28 Jan 2019 16:45:00 +0000 (11:45 -0500)]
Move BP xml files to standard OSGI-INF/blueprint

Change-Id: I879cabdb7591fccfbe22d84cd64d4cdae66a9cc8
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
5 years agodestroyInstance() WebSocketServer in two tests 60/79860/1
Michael Vorburger [Wed, 23 Jan 2019 19:03:26 +0000 (20:03 +0100)]
destroyInstance() WebSocketServer in two tests

This is required so that other tests can createInstance() again.

JIRA: NETCONF-604
Change-Id: Id374487105bb71bd24de21717bb5e3fa763062af
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
5 years agoMerge changes I22b99bc2,I3f296862
Jakub Morvay [Wed, 23 Jan 2019 08:50:04 +0000 (08:50 +0000)]
Merge changes I22b99bc2,I3f296862

* changes:
  Remove netconf-ssh from netconf-artifacts
  Remove netconf-notification

5 years agoMerge "Remove netconf-impl test resources"
Jakub Morvay [Wed, 23 Jan 2019 07:47:21 +0000 (07:47 +0000)]
Merge "Remove netconf-impl test resources"

5 years agoRemove netconf-ssh from netconf-artifacts 38/79838/1
Jakub Morvay [Wed, 23 Jan 2019 07:42:36 +0000 (08:42 +0100)]
Remove netconf-ssh from netconf-artifacts

netconf-ssh does not longer exist, remove it also from
netconf-artifacts.

Change-Id: I22b99bc278c656bf89c3c022463c63e1f7797c63
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoRemove netconf-notification 57/79657/8
Jakub Morvay [Fri, 18 Jan 2019 13:19:43 +0000 (14:19 +0100)]
Remove netconf-notification

Remove netconf-notification project. This project has two
functions. It provides implementation of netconf notifications logic in
netconf servers. The second function is that it also starts netconf
notification infrastructure. This used to be wired with other netconf
server components and together they formed netconf server for css.

css does not longer exist. Get rid of netconf-notification instantiation
logic (Activator and other related classes). It is not longer needed.

Also move other classes to mdsal-netconf-notification project. This
project just starts this notification infrastructure for mdsal netconf
northbound endpoint and now is primary user of this classes.

Change-Id: I3f2968623295beff9bcfbce6aa48c82532ef1502
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoRemove netconf-impl test resources 35/79835/1
Jakub Morvay [Wed, 23 Jan 2019 06:46:29 +0000 (07:46 +0100)]
Remove netconf-impl test resources

netconf-impl test resources do not seem to have any usage. Remove them.

Change-Id: I05e9e5159ca02e72e886f23bcb23d7f85f9b82f6
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoRemove empty monitoring classes 34/79834/1
Jakub Morvay [Wed, 23 Jan 2019 06:11:08 +0000 (07:11 +0100)]
Remove empty monitoring classes

Remove empty remaining monitoring classes. These were missed during
removal of netconf-monitoring project.

Change-Id: Id7d520ebb7f8eb80a7180a3b2691d10d2fb2246f
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoGet rid of netconf-tcp project 54/79654/6
Jakub Morvay [Fri, 18 Jan 2019 11:16:05 +0000 (12:16 +0100)]
Get rid of netconf-tcp project

netconf-tcp includes basic TCP server implementation used in netconf
project. It also contains instantiation logic for tcp server used by
css netconf northbound.

css is no longer in the game. Remove TCP server instantiation logic for
css netconf northbound endpoint. Move NetconfNorthboundTcpServer class
(only class used elsewhere) to mdsal-netconf-tcp projects. This project
is its primary and only user now.

Change-Id: I7dea91f33f3c3f6364d57e5a590505a058fd7957
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoMerge "Do not start netconf-impl for css netconf endpoint"
Tom Pantelis [Wed, 23 Jan 2019 02:13:37 +0000 (02:13 +0000)]
Merge "Do not start netconf-impl for css netconf endpoint"

5 years agoMerge "Remove netconf-impl's getConfig_candidate.xml"
Tom Pantelis [Wed, 23 Jan 2019 02:13:23 +0000 (02:13 +0000)]
Merge "Remove netconf-impl's getConfig_candidate.xml"

5 years agoDo not start netconf-impl for css netconf endpoint 94/79794/4
Jakub Morvay [Mon, 21 Jan 2019 15:46:17 +0000 (16:46 +0100)]
Do not start netconf-impl for css netconf endpoint

netconf-impl project contains both implementation of APIs defined in
netconf-api and netconf-mapping-api projects and also instantiation
logic of some base netconf server components for netconf css northbound
endpoint. Remove this logic, css is not used anymore, so it is its
netconf endpoint.

Change-Id: Iad381885d229e374957d87087a4a96ba46f75551
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoRemove netconf-impl's getConfig_candidate.xml 95/79795/4
Jakub Morvay [Mon, 21 Jan 2019 16:28:19 +0000 (17:28 +0100)]
Remove netconf-impl's getConfig_candidate.xml

This resource is not used anywhere, get rid of it.

Change-Id: I9ecbecdf2b26db53344cb7362aa716d4b971f9bb
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoRemove netconf-ssh project 24/79624/10
Jakub Morvay [Thu, 17 Jan 2019 17:34:16 +0000 (18:34 +0100)]
Remove netconf-ssh project

netconf-ssh contains logic for setting up ssh servers used in netconf
project (netconf test-tool, mdsal netconf northbound and css netconf
northbound). Moreover it also actually instantiates ssh server for css
netconf northbound.

Since css is no longer around, get rid of the above mentioned ssh server
instantiation logic. Move other classes to mdsal-netconf-ssh project --
it is their primary user now.

Change-Id: Ifffcf97429887cd6533def887c29dca9678ec815
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoFinish bumping to yangtools 2.1.8 24/79824/1
Stephen Kitt [Tue, 22 Jan 2019 16:03:45 +0000 (17:03 +0100)]
Finish bumping to yangtools 2.1.8

Change-Id: I51f7a2b30d40ae2b694df000465d383d165d9a0d
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoBump to mdsal 3.0.6 12/79812/1
Stephen Kitt [Tue, 22 Jan 2019 08:52:46 +0000 (09:52 +0100)]
Bump to mdsal 3.0.6

Change-Id: I6bbb6fa8af6860d9da08fcdde165a43c4abc6998
Signed-off-by: Stephen Kitt <skitt@redhat.com>
5 years agoMerge "Bump mdsal to 3.0.5"
Stephen Kitt [Mon, 21 Jan 2019 18:05:52 +0000 (18:05 +0000)]
Merge "Bump mdsal to 3.0.5"

5 years agoMerge "Bump yangtools to 2.1.8"
Jakub Morvay [Mon, 21 Jan 2019 15:49:49 +0000 (15:49 +0000)]
Merge "Bump yangtools to 2.1.8"

5 years agoMerge "Bump to odlparent 4.0.9"
Stephen Kitt [Mon, 21 Jan 2019 14:33:45 +0000 (14:33 +0000)]
Merge "Bump to odlparent 4.0.9"

5 years agoDeprecate odl-restconf-noauth feature 91/79791/2
Jakub Morvay [Mon, 21 Jan 2019 11:18:12 +0000 (12:18 +0100)]
Deprecate odl-restconf-noauth feature

odl-restconf-noauth feature is just a historic relic. It does not really
have any usage and odl-restconf should be use instead (this has the same
functionality but with authentication).

Deprecate odl-restconf-noauth feature.

Change-Id: I5007a0318f75415ecbbec4ea02e123f8f6b35324
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoBump mdsal to 3.0.5 47/79747/4
Robert Varga [Sun, 20 Jan 2019 00:01:43 +0000 (01:01 +0100)]
Bump mdsal to 3.0.5

This aligns with odlparent-4.0.9 and yangtools-2.1.8.

Change-Id: I0a6aed6c6101eef6313b57a3608e56f0ae08f32f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump yangtools to 2.1.8 56/79656/4
Robert Varga [Fri, 18 Jan 2019 10:25:59 +0000 (11:25 +0100)]
Bump yangtools to 2.1.8

yangtools-2.1.8 should address compatibility issues with woodstox,
bump to it.

Change-Id: I417b22698df04edc8263b57e6fcd5d0a558c6ef4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoBump to odlparent 4.0.9 71/79671/3
Stephen Kitt [Fri, 18 Jan 2019 15:33:15 +0000 (16:33 +0100)]
Bump to odlparent 4.0.9

Change-Id: Ieaf9938f8f0439eed91e001a256612aae1bab2a7
Signed-off-by: Stephen Kitt <skitt@redhat.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoCheck time expiry before attempting to format notification 62/79762/2
Robert Varga [Sun, 20 Jan 2019 16:34:20 +0000 (17:34 +0100)]
Check time expiry before attempting to format notification

If the listener is not started yet, or it has stopped, we should
not try to format the document. This splits the checking into two
phases, improving things and laying the foundation for a complete
factoring out the common bits.

Change-Id: Ibff73a4979a5d67385f10647ca7c9ab64a35f42a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoFix adapters retaining state 59/79759/2
Robert Varga [Sun, 20 Jan 2019 15:05:22 +0000 (16:05 +0100)]
Fix adapters retaining state

Storing notifications in a field causes them to be retained for
longer than needed.

Pass them as arguments, fixing the leak and making the adapters
stateless.

Change-Id: I3977a912280740a83a3209aadf2c190336fabe1e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoFix bierman02 ListenerAdapter memory leak 58/79758/1
Robert Varga [Sun, 20 Jan 2019 15:05:22 +0000 (16:05 +0100)]
Fix bierman02 ListenerAdapter memory leak

Storing notifications in a field causes them to be retained for
longer than needed. Pass them as arguments, fixing the leak and
making the adapter stateless.

Change-Id: I8cfb335db0ad21d37d5cce79e6fdbe31efc1ab8a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoSimplify NotificationListenerAdapter 57/79757/1
Robert Varga [Sun, 20 Jan 2019 13:52:19 +0000 (14:52 +0100)]
Simplify NotificationListenerAdapter

There is just no need for the ceremony around what sort of normalized
node a DOMNotification has -- just use ContainerNode.

Change-Id: I66e2e0e72b75b0ce58be359eaa40668bc0c53b81
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoMerge "Fix NetconfKeystoreAdapter onDataTreeChanged method"
Jakub Morvay [Thu, 17 Jan 2019 15:56:04 +0000 (15:56 +0000)]
Merge "Fix NetconfKeystoreAdapter onDataTreeChanged method"

5 years agoFix NetconfKeystoreAdapter onDataTreeChanged method 18/79618/4
Jakub Morvay [Thu, 17 Jan 2019 14:19:32 +0000 (15:19 +0100)]
Fix NetconfKeystoreAdapter onDataTreeChanged method

Make sure to process all incoming DataObject modifications under
netconf-keystore:keystore container. Do not stop after handling
key-credential list items, handle also modified private-key and
trusted-certificate list items.

JIRA: NETCONF-598
Change-Id: I7e56791c46bd860f98259f73f2832e49abc2e3dc
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoFix typos in netconf-keystore YANG model 20/79620/1
Jakub Morvay [Thu, 17 Jan 2019 14:34:00 +0000 (15:34 +0100)]
Fix typos in netconf-keystore YANG model

Change-Id: I62d1d2a5fecbffb6c61cfddfc0f407d8e88c0297
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoMerge "Eliminate XmlUtil.createElement(Document, String)"
Jakub Morvay [Thu, 17 Jan 2019 14:11:46 +0000 (14:11 +0000)]
Merge "Eliminate XmlUtil.createElement(Document, String)"

5 years agoMigrate netconf-console to Karaf 4 way 11/79611/2
Jakub Morvay [Thu, 17 Jan 2019 11:06:09 +0000 (12:06 +0100)]
Migrate netconf-console to Karaf 4 way

Some migration of netconf-console commands has been already done. We
updated commands to use new Karaf shell-related APIs, but we are still
using blueprint XML to create and register these commands.

This does not work with the new API. Avoid using blueprint, use new
available annotations and refactor commands to be more Karaf 4
compliant.

See https://karaf.apache.org/manual/latest/update-notes.html#_commands
for more detail.

JIRA: NETCONF-599
Change-Id: Ib43ecf01e168f77528dadc6a9224dbf70fba4606
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>
5 years agoEliminate XmlUtil.createElement(Document, String) 92/79592/4
Robert Varga [Thu, 17 Jan 2019 01:13:29 +0000 (02:13 +0100)]
Eliminate XmlUtil.createElement(Document, String)

This is just a shorthand for Document.createElement(String), just
migrate users over to that.

Change-Id: Ia20d02b8566c5a2abd2b904c84c5916d63399385
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoUse XMLConstants for "xmlns" and its URI 91/79591/2
Robert Varga [Thu, 17 Jan 2019 00:54:01 +0000 (01:54 +0100)]
Use XMLConstants for "xmlns" and its URI

Rather than spelling this out in XmlUtil, use well-known place
defining these constants. While we are at it, eliminate one copy
of XmlUtil.createElement().

Change-Id: Ie4f91a731b3b5e5ce3584514f69e183506f2097c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
5 years agoMerge "Provide NetconfKeystoreService RPCs in clustered topology"
Jakub Morvay [Wed, 16 Jan 2019 18:17:48 +0000 (18:17 +0000)]
Merge "Provide NetconfKeystoreService RPCs in clustered topology"

5 years agoMerge "Remove jackson dependency from restconf"
Jakub Morvay [Wed, 16 Jan 2019 18:17:35 +0000 (18:17 +0000)]
Merge "Remove jackson dependency from restconf"

5 years agoProvide NetconfKeystoreService RPCs in clustered topology 80/79580/1
Jakub Morvay [Wed, 16 Jan 2019 15:55:33 +0000 (16:55 +0100)]
Provide NetconfKeystoreService RPCs in clustered topology

Since now we support Netconf over TLS in odl-netconf-clustered-topology,
we should provide users with RPCs for configuring keys and certificates
used in Netconf over TLS.

Make sure NetconfKeystoreService RPCs are exposed once
odl-netconf-clustered-topology is installed.

JIRA: NETCONF-595
Change-Id: Id435cabe44916e01171203dc4f6b6a9a49f3239b
Signed-off-by: Jakub Morvay <jmorvay@frinx.io>