X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2Fhoneynode%2F2.2.1%2Fhoneynode-plugin-impl%2Fsrc%2Fmain%2Fjava%2Fio%2Ffd%2Fhoneycomb%2Ftransportpce%2Fdevice%2Fconfiguration%2FNetconfConfigurationModule.java;fp=tests%2Fhoneynode%2F2.2.1%2Fhoneynode-plugin-impl%2Fsrc%2Fmain%2Fjava%2Fio%2Ffd%2Fhoneycomb%2Ftransportpce%2Fdevice%2Fconfiguration%2FNetconfConfigurationModule.java;h=1feec55691817780c892d97e20bb1159b43b836c;hb=7474055983b078ca899ccd3f1c56e5627bf77e52;hp=0000000000000000000000000000000000000000;hpb=d8d24165bda93e0083b0b4da2cf3edc1488049e2;p=transportpce.git diff --git a/tests/honeynode/2.2.1/honeynode-plugin-impl/src/main/java/io/fd/honeycomb/transportpce/device/configuration/NetconfConfigurationModule.java b/tests/honeynode/2.2.1/honeynode-plugin-impl/src/main/java/io/fd/honeycomb/transportpce/device/configuration/NetconfConfigurationModule.java new file mode 100644 index 000000000..1feec5569 --- /dev/null +++ b/tests/honeynode/2.2.1/honeynode-plugin-impl/src/main/java/io/fd/honeycomb/transportpce/device/configuration/NetconfConfigurationModule.java @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2018 Orange and/or its affiliates. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.fd.honeycomb.transportpce.device.configuration; + +import com.google.inject.AbstractModule; + +import io.fd.honeycomb.northbound.NetconfConfiguration; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import net.jmob.guice.conf.core.ConfigurationModule; + +/** + * @author Martial COULIBALY ( mcoulibaly.ext@orange.com ) on behalf of Orange + */ +public final class NetconfConfigurationModule extends AbstractModule { + private static final Logger LOG = LoggerFactory.getLogger(NetconfConfigurationModule.class); + + @Override + protected void configure() { + LOG.info("Initializing Netconf Readers Module"); + install(ConfigurationModule.create()); + requestInjection(NetconfConfiguration.class); + } + +}