Make netconf node tcp-only leaf have default value 37/80137/3
authorJakub Morvay <jmorvay@frinx.io>
Sat, 2 Feb 2019 17:40:27 +0000 (18:40 +0100)
committerJakub Morvay <jakub.morvay@gmail.com>
Mon, 4 Feb 2019 19:54:23 +0000 (19:54 +0000)
commit967d712297c0160832d841688a8d50294498500f
treedf623e74baf21591b472516ef68479ba924c0a73
parent46b06eb5d3750eabf60f3490ee8195866a2ba9f6
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>
netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/RemoteDeviceConnectorImpl.java
netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/utils/NetconfTopologyUtils.java
netconf/netconf-topology/src/main/java/org/opendaylight/netconf/topology/AbstractNetconfTopology.java
netconf/sal-netconf-connector/src/main/yang/netconf-node-topology.yang