request.setImageRef(imageId);
request.setFlavorRef(hardwareId);
if (this.networkHelper.useManagementNetwork()) {
final String managementNetworkName = this.networkHelper.getManagementNetworkName();
final Network managementNetwork = this.getNetworkByNameThenPrefix(managementNetworkName);
<BUG>for (final String subnetId : managementNetwork.getSubnets()) {
final Port port = this.addPortToRequest(request, managementNetwork.getId(), subnetId);
reservedPortIds.add(port.getId());
}</BUG>
}

request.setImageRef(imageId);
request.setFlavorRef(hardwareId);
if (this.networkHelper.useManagementNetwork()) {
final String managementNetworkName = this.networkHelper.getManagementNetworkName();
final Network managementNetwork = this.getNetworkByNameThenPrefix(managementNetworkName);
final Port port = this.addPortToRequest(request,
managementNetwork.getId(), managementNetwork.getSubnets());
reservedPortIds.add(port.getId());
}
