* 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<InetSocketAddress> 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());
}