mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
- Added variable to keep track of a NicProfile's network
This commit is contained in:
parent
d9f5e63f69
commit
f6f1d38724
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user