try {
return nodeFuture.checkedGet();
} catch (final ReadFailedException e) {
- LOG.info("Unable to read node with Iid {}", nodeIid);
+ LOG.error("Unable to read node with Iid {}", nodeIid, e);
}
return Optional.absent();
}
transaction.submit().checkedGet();
result = true;
} catch (final TransactionCommitFailedException e) {
- LOG.error("Unable to remove node with Iid {} from store {}.", genericNode, store);
+ LOG.error("Unable to remove node with Iid {} from store {}", genericNode, store, e);
}
return result;
}
try {
return linkFuture.checkedGet();
} catch (final ReadFailedException e) {
- LOG.info("Unable to read node with Iid {}", linkIid);
+ LOG.info("Unable to read node with Iid {}", linkIid, e);
}
return Optional.absent();
}
try {
return nodeFuture.checkedGet();
} catch (final ReadFailedException e) {
- LOG.info("Unable to read node with Iid {}", nodeIid);
+ LOG.info("Unable to read node with Iid {}", nodeIid, e);
}
return Optional.absent();
}
transaction.submit();
LOG.info("Created and submitted a new OVSDB node {}", nodeData.getNodeId());
} catch (final Exception e) {
- LOG.error("Exception while creating OvsdbNodeAugmentation, " + "Uni is null. Node Id: {}", ovsdbNodeId);
+ LOG.error("Exception while creating OvsdbNodeAugmentation, Uni is null. Node Id: {}", ovsdbNodeId, e);
}
}
LOG.info("Created and submitted a new OVSDB node {}", nodeData.getNodeId());
return nodeData;
} catch (final Exception e) {
- LOG.error("Exception while creating OvsdbNodeAugmentation, " + "Uni is null. Node Id: {}", ovsdbNodeId);
+ LOG.error("Exception while creating OvsdbNodeAugmentation, Uni is null. Node Id: {}", ovsdbNodeId, e);
}
return null;
}
try {
Thread.sleep(UnimgrConstants.OVSDB_UPDATE_TIMEOUT);
} catch (final InterruptedException e) {
- LOG.warn("Interrupted while waiting after OVSDB node augmentation {} {}", ovsdbNodeId, e);
+ LOG.warn("Interrupted while waiting after OVSDB node augmentation {}", ovsdbNodeId, e);
}
try {
future.checkedGet();
- LOG.trace("Update qos and queues to ovsdb for node {} {}", ovsdbNodeId, ovsdbNodeAugmentationIid);
+ LOG.trace("Update qos and queues to ovsdb for node {} {}", ovsdbNodeId, ovsdbNodeAugmentationIid);
} catch (final TransactionCommitFailedException e) {
LOG.warn("Failed to put {} ", ovsdbNodeAugmentationIid, e);
}
final CheckedFuture<Void, TransactionCommitFailedException> future = transaction.submit();
try {
future.checkedGet();
- LOG.info("Update qos-entries to ovsdb for node {} {}", ovsdbNodeId, queueIid);
+ LOG.info("Update qos-entries to ovsdb for node {} {}", ovsdbNodeId, queueIid);
} catch (final TransactionCommitFailedException e) {
LOG.warn("Failed to put {} ", queueIid, e);
}
final CheckedFuture<Void, TransactionCommitFailedException> future = transaction.submit();
try {
future.checkedGet();
- LOG.info("Update qos-entries max-rate to ovsdb for node {} {}", ovsdbNodeId, qosOtherConfigIid);;
+ LOG.info("Update qos-entries max-rate to ovsdb for node {} {}", ovsdbNodeId, qosOtherConfigIid);;
} catch (final TransactionCommitFailedException e) {
- LOG.warn("Failed to put {} ", qosOtherConfigIid, e);
+ LOG.warn("Failed to put {}", qosOtherConfigIid, e);
}
}
final CheckedFuture<Void, TransactionCommitFailedException> future = transaction.submit();
try {
future.checkedGet();
- LOG.info("Update queues max-rate to ovsdb for node {} {}", ovsdbNodeId, queuesOtherConfigIid);;
+ LOG.info("Update queues max-rate to ovsdb for node {} {}", ovsdbNodeId, queuesOtherConfigIid);;
} catch (final TransactionCommitFailedException e) {
LOG.warn("Failed to put {} ", queuesOtherConfigIid, e);
}
final WriteTransaction transaction = dataBroker.newWriteOnlyTransaction();
transaction.delete(LogicalDatastoreType.CONFIGURATION, terminationPointPath);
transaction.delete(LogicalDatastoreType.OPERATIONAL, terminationPointPath);
- transaction.submit();
- final CheckedFuture<Void, TransactionCommitFailedException> future = transaction.submit();
- return future;
+ return transaction.submit();
}
final Node ovsdbNode = node.get();
final OvsdbNodeAugmentation ovsdbNodeAugmentation = ovsdbNode
.getAugmentation(OvsdbNodeAugmentation.class);
- final ConnectionInfo connectionInfo = ovsdbNodeAugmentation.getConnectionInfo();
- return connectionInfo;
+ return ovsdbNodeAugmentation.getConnectionInfo();
} else {
return null;
}
try {
ip = InetAddress.getLocalHost().getHostAddress();
final Ipv4Address ipv4 = new Ipv4Address(ip);
- final IpAddress ipAddress = new IpAddress(ipv4);
- return ipAddress;
+ return new IpAddress(ipv4);
} catch (final UnknownHostException e) {
- LOG.info("Unable to retrieve controller's ip address, using loopback.");
+ LOG.info("Unable to retrieve controller's ip address, using loopback. {}", e);
}
return new IpAddress(UnimgrConstants.LOCAL_IP);
}