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 org.opendaylight.aaa.encrypt.AAAEncryptionService |
createAAAEncryptionService(org.opendaylight.yang.gen.v1.config.aaa.authn.encrypt.service.config.rev160915.AaaEncryptServiceConfig encrySrvConfig)
Create an instance of
AAAEncryptionService from provided configuration. |
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 org.opendaylight.yang.gen.v1.config.aaa.authn.encrypt.service.config.rev160915.AaaEncryptServiceConfig |
getDefaultAaaEncryptServiceConfig()
Create default configuration for
AAAEncryptionService. |
static NetconfConfiguration |
injectServicesToConfig(NetconfConfiguration configuration)
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) throws ConfigurationException
configuration - Netconf southbound configuration where should be services injected.ConfigurationExceptionpublic static NetconfConfiguration injectServicesToTopologyConfig(NetconfConfiguration configuration, LightyServices lightyServices) throws ConfigurationException
configuration - Netconf southbound topology configuration where should be services injected.lightyServices - LightyServices from running Lighty core.ConfigurationExceptionpublic static org.opendaylight.yang.gen.v1.config.aaa.authn.encrypt.service.config.rev160915.AaaEncryptServiceConfig getDefaultAaaEncryptServiceConfig()
AAAEncryptionService.public static org.opendaylight.aaa.encrypt.AAAEncryptionService createAAAEncryptionService(org.opendaylight.yang.gen.v1.config.aaa.authn.encrypt.service.config.rev160915.AaaEncryptServiceConfig encrySrvConfig)
throws ConfigurationException
AAAEncryptionService from provided configuration.encrySrvConfig - service configuration holder.AAAEncryptionServiceConfigurationException - in case provided configuration is not valid.Copyright © 2020. All rights reserved.