@Override
public void onFailure(Throwable throwable) {
if (add) {
- LOG.error("InterfaceStateChangeListener: VrfEntries for {} failed to store into destination {}"
- + " with exception: {}", interfaceName, txnDestination, throwable);
+ LOG.error("InterfaceStateChangeListener: VrfEntries for {} failed to store into destination {}",
+ interfaceName, txnDestination, throwable);
} else {
- LOG.error("InterfaceStateChangeListener: VrfEntries for {} removal failed with exception: {}",
- interfaceName, throwable);
+ LOG.error("InterfaceStateChangeListener: VrfEntries for {} removal failed", interfaceName, throwable);
VpnUtil.unsetScheduledToRemoveForVpnInterface(dataBroker, interfaceName);
}
}
dpnId = InterfaceUtils.getDpIdFromInterface(intrf);
} catch (Exception e) {
LOG.error("{} add: Unable to obtain dpnId for interface {} in subnet {},"
- + " subnetroute inclusion for this interface failed with exception {}",
+ + " subnetroute inclusion for this interface failed",
LOGGING_PREFIX, interfaceName, subnetId, e);
}
InstanceIdentifier<VpnInterface> id = VpnUtil
dpnId = InterfaceUtils.getDpIdFromInterface(intrf);
} catch (Exception e) {
LOG.error("{} remove: Unable to retrieve dpnId for interface {} in subnet {}. "
- + "Fetching from vpn interface itself due to exception {}",
+ + "Fetching from vpn interface itself",
LOGGING_PREFIX, intrf.getName(), subnetId, e);
}
InstanceIdentifier<VpnInterface> id = VpnUtil
dpnId = InterfaceUtils.getDpIdFromInterface(update);
} catch (Exception e) {
LOG.error("{} remove: Unable to retrieve dpnId for interface {} in subnet {}. "
- + "Fetching from vpn interface itself due to exception {}",
+ + "Fetching from vpn interface itself",
LOGGING_PREFIX, update.getName(), subnetId, e);
}
InstanceIdentifier<VpnInterface> id = VpnUtil
if (elanTag == 0L) {
VpnManagerCounters.subnet_route_packet_failed.inc();
LOG.error("{} onPacketReceived: elanTag value from metadata found to be 0, for IPv4 "
- + " Packet received with Target IP {} src Ip vpnId", LOGGING_PREFIX, dstIpStr, srcIp,
- vpnId);
+ + " Packet received with Target IP {} src Ip {} vpnId {}",
+ LOGGING_PREFIX, dstIpStr, srcIp, vpnId);
return;
}
throws UnknownHostException {
String routerId = VpnUtil.getAssociatedExternalRouter(dataBroker, srcIpStr);
if (null == routerId) {
- LOG.debug("The ip is not associated with any external router", srcIpStr);
+ LOG.debug("This ip is not associated with any external router: {}", srcIpStr);
}
handlePacketToExternalNetwork(new Uuid(vpnIdVpnInstanceName), routerId, dstIp, elanTag);
}
Optional<NetworkMap> optionalNetworkMap = VpnUtil.read(broker, LogicalDatastoreType.CONFIGURATION,
VpnUtil.buildNetworkMapIdentifier(new Uuid(elanInfo.getName())));
if (!optionalNetworkMap.isPresent()) {
- LOG.debug("{} getTargetDpnForPacketOut: No network map found for elan info {}", elanInfo.getName());
+ LOG.debug("{} getTargetDpnForPacketOut: No network map found for elan info {}", LOGGING_PREFIX,
+ elanInfo.getName());
return null;
}
List<VpnInstance> vpnInstances = VpnHelper.getAllVpnInstances(broker);
if (vpnInstances == null || vpnInstances.isEmpty()) {
- LOG.warn("add: dpnId: {}: tep: tep.getInterfaceName(): No VPN instances defined",
- dpnId, tep.getInterfaceName());
+ LOG.warn("add: dpnId: {}: tep: {}: No VPN instances defined", dpnId, tep.getInterfaceName());
return;
}
}
}
} else {
- LOG.error("add: Ignoring addition of tunnel interface{} dpn {} for vpnInstance {} with primaryRd {},"
- + " as the VPN is already marked for deletion", tep.getInterfaceName(),
+ LOG.error("add: Ignoring addition of tunnel interface {} dpn {} for vpnInstance {} with primaryRd {},"
+ + " as the VPN is already marked for deletion", tep.getInterfaceName(), dpnId,
vpnName, primaryRd);
}
}
List<Adjacency> adjacencies = optAdjacencies.get().getAdjacency();
if (!adjacencies.isEmpty()) {
- LOG.trace("delAdjFromVpnInterface: Adjacencies are " + adjacencies);
+ LOG.trace("delAdjFromVpnInterface: Adjacencies are {}", adjacencies);
Iterator<Adjacency> adjIt = adjacencies.iterator();
while (adjIt.hasNext()) {
Adjacency adjElem = adjIt.next();
@Override
public void onFailure(Throwable throwable) {
if (add) {
- LOG.error("VpnInterfaceManager: VrfEntries for {} failed to store into destination {}"
- + " with exception: {}", interfaceName, txnDestination, throwable);
+ LOG.error("VpnInterfaceManager: VrfEntries for {} failed to store into destination {}",
+ interfaceName, txnDestination, throwable);
} else {
- LOG.error("VpnInterfaceManager: VrfEntries for {} removal failed with exception: {}", interfaceName,
- throwable);
+ LOG.error("VpnInterfaceManager: VrfEntries for {} removal failed", interfaceName, throwable);
VpnUtil.unsetScheduledToRemoveForVpnInterface(dataBroker, interfaceName);
}
}