/*
- * Copyright (C) 2014 Red Hat, Inc.
+ * Copyright (c) 2014, 2015 Red Hat, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Authors : Dave Tucker, Flavio Fernandes
*/
+
package org.opendaylight.ovsdb.openstack.netvirt;
import java.net.HttpURLConnection;
* Handle requests for Neutron Router.
*/
public class RouterHandler extends AbstractHandler implements INeutronRouterAware, ConfigInterface {
- static final Logger logger = LoggerFactory.getLogger(RouterHandler.class);
+ private static final Logger LOG = LoggerFactory.getLogger(RouterHandler.class);
// The implementation for each of these services is resolved by the OSGi Service Manager
private volatile NeutronL3Adapter neutronL3Adapter;
*/
@Override
public int canAttachInterface(NeutronRouter router, NeutronRouter_Interface routerInterface) {
- logger.debug(" Router {} asked if it can attach interface {}. Subnet {}",
+ LOG.debug(" Router {} asked if it can attach interface {}. Subnet {}",
router.getName(),
routerInterface.getPortUUID(),
routerInterface.getSubnetUUID());
*/
@Override
public int canDetachInterface(NeutronRouter router, NeutronRouter_Interface routerInterface) {
- logger.debug(" Router {} asked if it can detach interface {}. Subnet {}",
+ LOG.debug(" Router {} asked if it can detach interface {}. Subnet {}",
router.getName(),
routerInterface.getPortUUID(),
routerInterface.getSubnetUUID());
@Override
public void processEvent(AbstractEvent abstractEvent) {
if (!(abstractEvent instanceof NorthboundEvent)) {
- logger.error("Unable to process abstract event " + abstractEvent);
+ LOG.error("Unable to process abstract event {}", abstractEvent);
return;
}
NorthboundEvent ev = (NorthboundEvent) abstractEvent;
}
break;
default:
- logger.warn("Unable to process event action " + ev.getAction());
+ LOG.warn("Unable to process event action {}", ev.getAction());
break;
}
}