- Added variable to keep track of a NicProfile's network

This commit is contained in:
keshav 2010-12-09 22:25:42 -08:00
parent d9f5e63f69
commit f6f1d38724

View File

@ -15,6 +15,7 @@ import com.cloud.resource.Resource.ReservationStrategy;
public class NicProfile { public class NicProfile {
long id; long id;
long networkId;
BroadcastDomainType broadcastType; BroadcastDomainType broadcastType;
Mode mode; Mode mode;
long vmId; long vmId;
@ -131,7 +132,7 @@ public class NicProfile {
} }
public long getNetworkId() { public long getNetworkId() {
return id; return networkId;
} }
public long getVirtualMachineId() { public long getVirtualMachineId() {
@ -184,6 +185,7 @@ public class NicProfile {
public NicProfile(Nic nic, Network network, URI broadcastUri, URI isolationUri) { public NicProfile(Nic nic, Network network, URI broadcastUri, URI isolationUri) {
this.id = nic.getId(); this.id = nic.getId();
this.networkId = network.getId();
this.gateway = nic.getGateway(); this.gateway = nic.getGateway();
this.mode = network.getMode(); this.mode = network.getMode();
this.format = null; this.format = null;