Class NetconfConfigUtils

java.lang.Object
io.lighty.modules.southbound.netconf.impl.util.NetconfConfigUtils

public final class NetconfConfigUtils extends Object
  • Field Details

    • NETCONF_CONFIG_ROOT_ELEMENT_NAME

      public static final String NETCONF_CONFIG_ROOT_ELEMENT_NAME
      See Also:
    • NETCONF_TOPOLOGY_MODELS

      public static final Set<org.opendaylight.yangtools.yang.binding.YangModuleInfo> NETCONF_TOPOLOGY_MODELS
    • NETCONF_CALLHOME_MODELS

      public static final Set<org.opendaylight.yangtools.yang.binding.YangModuleInfo> NETCONF_CALLHOME_MODELS
  • Method Details

    • createNetconfConfiguration

      public static NetconfConfiguration createNetconfConfiguration(InputStream jsonConfigInputStream) throws ConfigurationException
      Load netconf southbound configuration from InputStream containing JSON data. Lighty services are not populated in this configuration.
      Parameters:
      jsonConfigInputStream - InputStream containing Netconf config. data in JSON format.
      Returns:
      Object representation of configuration data.
      Throws:
      ConfigurationException - In case JSON configuration cannot be deserializable to JSON tree nodes or cannot bind JSON tree node to type.
    • createDefaultNetconfConfiguration

      public static NetconfConfiguration createDefaultNetconfConfiguration()
      Create default Netconf Southbound configuration, Lighty services are not populated.
      Returns:
      Object representation of configuration data.
    • injectServicesToConfig

      public static NetconfConfiguration injectServicesToConfig(NetconfConfiguration configuration) throws ConfigurationException
      Inject services from LightyServices to Netconf southbound configuration.
      Parameters:
      configuration - Netconf southbound configuration where should be services injected.
      Returns:
      Netconf southbound configuration with injected services from Lighty core.
      Throws:
      ConfigurationException - in case provided configuration is not valid.
    • injectServicesToTopologyConfig

      public static NetconfConfiguration injectServicesToTopologyConfig(NetconfConfiguration configuration, LightyServices lightyServices) throws ConfigurationException
      Inject services from LightyServices and netconf client dispatcher to Netconf southbound topology configuration.
      Parameters:
      configuration - Netconf southbound topology configuration where should be services injected.
      lightyServices - LightyServices from running Lighty core.
      Returns:
      Netconf southbound topology configuration with injected services from Lighty core.
      Throws:
      ConfigurationException - in case provided configuration is not valid.
    • getDefaultAaaEncryptServiceConfig

      public static org.opendaylight.yang.gen.v1.config.aaa.authn.encrypt.service.config.rev160915.AaaEncryptServiceConfig getDefaultAaaEncryptServiceConfig()
      Create default configuration for AAAEncryptionService.
      Returns:
      default configuration.
    • createAAAEncryptionService

      public static org.opendaylight.aaa.encrypt.AAAEncryptionService createAAAEncryptionService(org.opendaylight.yang.gen.v1.config.aaa.authn.encrypt.service.config.rev160915.AaaEncryptServiceConfig encrySrvConfig) throws ConfigurationException
      Create an instance of AAAEncryptionService from provided configuration.
      Parameters:
      encrySrvConfig - service configuration holder.
      Returns:
      configured instance of AAAEncryptionService
      Throws:
      ConfigurationException - in case provided configuration is not valid.