From f6f1d387249265ac9b2ee864549cc57b22d3364c Mon Sep 17 00:00:00 2001 From: keshav Date: Thu, 9 Dec 2010 22:25:42 -0800 Subject: [PATCH] - Added variable to keep track of a NicProfile's network --- api/src/com/cloud/vm/NicProfile.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/src/com/cloud/vm/NicProfile.java b/api/src/com/cloud/vm/NicProfile.java index 47dad45bf16..599b58b7ffe 100644 --- a/api/src/com/cloud/vm/NicProfile.java +++ b/api/src/com/cloud/vm/NicProfile.java @@ -15,6 +15,7 @@ import com.cloud.resource.Resource.ReservationStrategy; public class NicProfile { long id; + long networkId; BroadcastDomainType broadcastType; Mode mode; long vmId; @@ -131,7 +132,7 @@ public class NicProfile { } public long getNetworkId() { - return id; + return networkId; } public long getVirtualMachineId() { @@ -184,6 +185,7 @@ public class NicProfile { public NicProfile(Nic nic, Network network, URI broadcastUri, URI isolationUri) { this.id = nic.getId(); + this.networkId = network.getId(); this.gateway = nic.getGateway(); this.mode = network.getMode(); this.format = null;