public final class NetconfConfigUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Set<org.opendaylight.yangtools.yang.binding.YangModuleInfo> |
NETCONF_CALLHOME_MODELS |
static String |
NETCONF_CONFIG_ROOT_ELEMENT_NAME |
static Set<org.opendaylight.yangtools.yang.binding.YangModuleInfo> |
NETCONF_TOPOLOGY_MODELS |
| Modifier and Type | Method and Description |
|---|---|
static NetconfConfiguration |
createDefaultNetconfConfiguration()
Create default Netconf Southbound configuration, Lighty services are not populated.
|
static NetconfConfiguration |
createNetconfConfiguration(InputStream jsonConfigInputStream)
Load netconf southbound configuration from InputStream containing JSON data.
|
static NetconfConfiguration |
injectServicesToConfig(NetconfConfiguration configuration,
LightyServices lightyServices)
Inject services from LightyServices to Netconf southbound configuration.
|
static NetconfConfiguration |
injectServicesToTopologyConfig(NetconfConfiguration configuration,
LightyServices lightyServices)
Inject services from LightyServices and netconf client dispatcher to Netconf southbound topology configuration.
|
public static final String NETCONF_CONFIG_ROOT_ELEMENT_NAME
public static final Set<org.opendaylight.yangtools.yang.binding.YangModuleInfo> NETCONF_TOPOLOGY_MODELS
public static final Set<org.opendaylight.yangtools.yang.binding.YangModuleInfo> NETCONF_CALLHOME_MODELS
public static NetconfConfiguration createNetconfConfiguration(InputStream jsonConfigInputStream) throws ConfigurationException
jsonConfigInputStream - InputStream containing Netconf config. data in JSON format.ConfigurationException - In case JSON configuration cannot be deserializable to JSON tree nodes or cannot
bind JSON tree node to type.public static NetconfConfiguration createDefaultNetconfConfiguration()
public static NetconfConfiguration injectServicesToConfig(NetconfConfiguration configuration, LightyServices lightyServices)
configuration - Netconf southbound configuration where should be services injected.lightyServices - LightyServices from running Lighty core.public static NetconfConfiguration injectServicesToTopologyConfig(NetconfConfiguration configuration, LightyServices lightyServices)
configuration - Netconf southbound topology configuration where should be services injected.lightyServices - LightyServices from running Lighty core.Copyright © 2020. All rights reserved.