X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnetconf%2Fnetconf-tcp%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fnetconf%2Ftcp%2Fosgi%2FNetconfTCPActivator.java;h=355041f8dfffb74efb120cc99b9b9e077cc0b26e;hb=3a71a222b896b9d07e638af62300180799bdac67;hp=bc94e596d77ceabd53667c5a9ab74a2928f74fff;hpb=022c6b13e92d53db58fbcb3d754e3164357030b8;p=controller.git diff --git a/opendaylight/netconf/netconf-tcp/src/main/java/org/opendaylight/controller/netconf/tcp/osgi/NetconfTCPActivator.java b/opendaylight/netconf/netconf-tcp/src/main/java/org/opendaylight/controller/netconf/tcp/osgi/NetconfTCPActivator.java index bc94e596d7..355041f8df 100644 --- a/opendaylight/netconf/netconf-tcp/src/main/java/org/opendaylight/controller/netconf/tcp/osgi/NetconfTCPActivator.java +++ b/opendaylight/netconf/netconf-tcp/src/main/java/org/opendaylight/controller/netconf/tcp/osgi/NetconfTCPActivator.java @@ -22,22 +22,22 @@ import org.slf4j.LoggerFactory; * Opens TCP port specified in config.ini, creates bridge between this port and local netconf server. */ public class NetconfTCPActivator implements BundleActivator { - private static final Logger logger = LoggerFactory.getLogger(NetconfTCPActivator.class); + private static final Logger LOG = LoggerFactory.getLogger(NetconfTCPActivator.class); private ProxyServer proxyServer; @Override public void start(BundleContext context) { final Optional maybeAddress = NetconfConfigUtil.extractNetconfServerAddress(context, InfixProp.tcp); if (maybeAddress.isPresent() == false) { - logger.debug("Netconf tcp server is not configured to start"); + LOG.debug("Netconf tcp server is not configured to start"); return; } InetSocketAddress address = maybeAddress.get(); if (address.getAddress().isAnyLocalAddress()) { - logger.warn("Unprotected netconf TCP address is configured to ANY local address. This is a security risk. " + - "Consider changing {} to 127.0.0.1", NetconfConfigUtil.getNetconfServerAddressKey(InfixProp.tcp)); + LOG.warn("Unprotected netconf TCP address is configured to ANY local address. This is a security risk. Consider changing {} to 127.0.0.1", + NetconfConfigUtil.getNetconfServerAddressKey(InfixProp.tcp)); } - logger.info("Starting TCP netconf server at {}", address); + LOG.info("Starting TCP netconf server at {}", address); proxyServer = new ProxyServer(address, NetconfConfigUtil.getNetconfLocalAddress()); }