final InstanceIdentifier<T> iid = createInstanceIdentifier(item);
tx.put(LogicalDatastoreType.CONFIGURATION, iid, item, true);
final CheckedFuture<Void, TransactionCommitFailedException> future = tx.submit();
- // Check if it's successfuly committed, otherwise exception will be thrown.
+ // Check if it's successfully committed, otherwise exception will be thrown.
future.get();
}
final InstanceIdentifier<T> iid = createInstanceIdentifier(item);
tx.delete(LogicalDatastoreType.CONFIGURATION, iid);
final CheckedFuture<Void, TransactionCommitFailedException> future = tx.submit();
- // Check if it's successfuly committed, otherwise exception will be thrown.
+ // Check if it's successfully committed, otherwise exception will be thrown.
future.get();
}
answer.setRouteMode(ipsecSiteConnection.getRouteMode());
}
if (ipsecSiteConnection.getMtu() != null) {
- answer.setMtu((ipsecSiteConnection.getMtu()).intValue());
+ answer.setMtu(ipsecSiteConnection.getMtu().intValue());
}
if (ipsecSiteConnection.getAuthMode() != null) {
answer.setAuthMode(ipsecSiteConnection.getAuthMode());
ipsecSiteConnectionBuilder.setRouteMode(ipsecSiteConnection.getRouteMode());
}
if (ipsecSiteConnection.getMtu() != null) {
- ipsecSiteConnectionBuilder.setMtu((ipsecSiteConnection.getMtu()).shortValue());
+ ipsecSiteConnectionBuilder.setMtu(ipsecSiteConnection.getMtu().shortValue());
}
if (ipsecSiteConnection.getAuthMode() != null) {
ipsecSiteConnectionBuilder.setAuthMode(ipsecSiteConnection.getAuthMode());