final InstanceIdentifier<T> iid = createInstanceIdentifier(item);
tx.put(LogicalDatastoreType.CONFIGURATION, iid, item, true);
final CheckedFuture<Void, TransactionCommitFailedException> future = tx.submit();
- future.get(); // Check if it's successfuly committed, otherwise exception will be thrown.
+ // Check if it's successfuly committed, otherwise exception will be thrown.
+ future.get();
}
protected boolean updateMd(S neutronObject) {
final InstanceIdentifier<T> iid = createInstanceIdentifier(item);
tx.delete(LogicalDatastoreType.CONFIGURATION, iid);
final CheckedFuture<Void, TransactionCommitFailedException> future = tx.submit();
- future.get(); // Check if it's successfuly committed, otherwise exception will be thrown.
+ // Check if it's successfuly committed, otherwise exception will be thrown.
+ future.get();
}
protected boolean removeMd(T item) {
extraDHCPOptsBuilder.setOptValue(extraDHCPOption.getValue());
Integer ipVersion = extraDHCPOption.getIpVersion();
if (ipVersion == null) {
- ipVersion = 4; // default as v4 for neutron api evolves
+ // default as v4 for neutron api evolves
+ ipVersion = 4;
}
extraDHCPOptsBuilder.setIpVersion((Class<? extends IpVersionBase>) mapper.get(ipVersion));
listExtraDHCPOptions.add(extraDHCPOptsBuilder.build());