mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
set isSystem for SVM IPs (#9281)
* set isSystem for SSVM IPs * Revert "set isSystem for SSVM IPs" This reverts commit 4ba71b3d6b4ea377f6778d166ff9da7d41e5d007. * set isSystem flag for SSVMs
This commit is contained in:
parent
59e9ab9efe
commit
7e00678691
@ -126,7 +126,7 @@ public class PublicNetworkGuru extends AdapterBase implements NetworkGuru {
|
||||
if (vm.getType().equals(VirtualMachine.Type.ConsoleProxy) || vm.getType().equals(VirtualMachine.Type.SecondaryStorageVm)) {
|
||||
forSystemVms = true;
|
||||
}
|
||||
PublicIp ip = _ipAddrMgr.assignPublicIpAddress(dc.getId(), null, vm.getOwner(), VlanType.VirtualNetwork, null, null, false, forSystemVms);
|
||||
PublicIp ip = _ipAddrMgr.assignPublicIpAddress(dc.getId(), null, vm.getOwner(), VlanType.VirtualNetwork, null, null, forSystemVms, forSystemVms);
|
||||
nic.setIPv4Address(ip.getAddress().toString());
|
||||
nic.setIPv4Gateway(ip.getGateway());
|
||||
nic.setIPv4Netmask(ip.getNetmask());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user