Issue 695: Fix in NetworkReference builder

This commit is contained in:
Jason King 2011-12-19 15:38:47 +00:00
parent 824e45244a
commit 83605b0908
1 changed files with 7 additions and 2 deletions

View File

@ -125,7 +125,7 @@ public class NetworkReference extends BaseNamedResource<NetworkReference> {
/** /**
* @see NetworkReference#getIpAddresses * @see NetworkReference#getIpAddresses
*/ */
public Builder gatewayAddress(IpAddresses ipAddresses) { public Builder ipAddresses(IpAddresses ipAddresses) {
this.ipAddresses = ipAddresses; this.ipAddresses = ipAddresses;
return this; return this;
} }
@ -136,7 +136,12 @@ public class NetworkReference extends BaseNamedResource<NetworkReference> {
} }
public Builder fromNetworkReference(NetworkReference in) { public Builder fromNetworkReference(NetworkReference in) {
return fromNamedResource(in).networkType(in.getNetworkType()); return fromNamedResource(in).address(in.getAddress())
.networkType(in.getNetworkType())
.broadcastAddress(in.getBroadcastAddress())
.gatewayAddress(in.getGatewayAddress())
.rnatAddress(in.getRnatAddress())
.ipAddresses(in.getIpAddresses());
} }
/** /**