From 83605b0908242a389aff2c12cdc7f6b997d653e3 Mon Sep 17 00:00:00 2001 From: Jason King Date: Mon, 19 Dec 2011 15:38:47 +0000 Subject: [PATCH] Issue 695: Fix in NetworkReference builder --- .../enterprisecloud/domain/network/NetworkReference.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sandbox-providers/tmrk-enterprisecloud/src/main/java/org/jclouds/tmrk/enterprisecloud/domain/network/NetworkReference.java b/sandbox-providers/tmrk-enterprisecloud/src/main/java/org/jclouds/tmrk/enterprisecloud/domain/network/NetworkReference.java index be010907c1..3598a856e8 100644 --- a/sandbox-providers/tmrk-enterprisecloud/src/main/java/org/jclouds/tmrk/enterprisecloud/domain/network/NetworkReference.java +++ b/sandbox-providers/tmrk-enterprisecloud/src/main/java/org/jclouds/tmrk/enterprisecloud/domain/network/NetworkReference.java @@ -125,7 +125,7 @@ public class NetworkReference extends BaseNamedResource { /** * @see NetworkReference#getIpAddresses */ - public Builder gatewayAddress(IpAddresses ipAddresses) { + public Builder ipAddresses(IpAddresses ipAddresses) { this.ipAddresses = ipAddresses; return this; } @@ -136,7 +136,12 @@ public class NetworkReference extends BaseNamedResource { } 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()); } /**