public NicProfile(Nic nic, Network network, URI broadcastUri, URI isolationUri, Integer networkRate, boolean isSecurityGroupEnabled, String name) {
id = nic.getId();
networkId = network.getId();
mode = network.getMode();
broadcastType = network.getBroadcastDomainType();
trafficType = network.getTrafficType();
format = nic.getAddressFormat();
iPv4Address = nic.getIPv4Address();
iPv4Netmask = nic.getIPv4Netmask();
iPv4Gateway = nic.getIPv4Gateway();
iPv6Address = nic.getIPv6Address();
iPv6Gateway = nic.getIPv6Gateway();
iPv6Cidr = nic.getIPv6Cidr();
macAddress = nic.getMacAddress();
reservationId = nic.getReservationId();
strategy = nic.getReservationStrategy();
deviceId = nic.getDeviceId();
defaultNic = nic.isDefaultNic();
this.broadcastUri = broadcastUri;
this.isolationUri = isolationUri;
this.isSecurityGroupEnabled = isSecurityGroupEnabled;
vmId = nic.getInstanceId();
this.name = name;
uuid = nic.getUuid();
if (networkRate != null) {
this.networkRate = networkRate;
}
}