throws OpenstackException {
final RouteFixedIp fixedIp = new RouteFixedIp();</BUG>
fixedIp.setSubnetId(subnetId);
<BUG>final Port port = new Port();
port.addFixedIp(fixedIp);
port.setNetworkId(networkId);</BUG>
final Port createdPort = this.networkApi.createPort(port);
final NovaServerNetwork nsn = new NovaServerNetwork();
nsn.setPort(createdPort.getId());
request.addNetworks(nsn);

throws OpenstackException {
final Port port = new Port();
for (String subnetId : subnetIds) {
final RouteFixedIp fixedIp = new RouteFixedIp();
fixedIp.setSubnetId(subnetId);
port.addFixedIp(fixedIp);
}
port.setNetworkId(networkId);
final Port createdPort = this.networkApi.createPort(port);
final NovaServerNetwork nsn = new NovaServerNetwork();
nsn.setPort(createdPort.getId());
request.addNetworks(nsn);
