Interface ovsInterface = TyperUtils.getTypedRowWrapper(transaction.getDatabaseSchema(), Interface.class);
ovsInterface.setName(terminationPoint.getName());
ovsInterface.setType(SouthboundMapper.createOvsdbInterfaceType(terminationPoint.getInterfaceType()));
- Integer ofPort = terminationPoint.getOfport();
+ Long ofPort = terminationPoint.getOfport();
if (ofPort != null) {
- ovsInterface.setOpenFlowPort(Sets.newHashSet(ofPort.longValue()));
+ ovsInterface.setOpenFlowPort(Sets.newHashSet(ofPort));
}
Integer ofPortRequest = terminationPoint.getOfportRequest();
if (ofPortRequest != null) {
Set<Long> ofPorts = interfIter.getOpenFlowPortColumn().getData();
if (ofPorts != null && !ofPorts.isEmpty()) {
Iterator<Long> ofPortsIter = ofPorts.iterator();
- int ofPort = ofPortsIter.next().intValue();
+ long ofPort = ofPortsIter.next();
if (ofPort >= 0) {
ovsdbTerminationPointBuilder
.setOfport(ofPort);