Skip to content

Commit 02075c3

Browse files
author
frank
committed
Bug 13476 - Public IP's are not shown in the UI for the System VMs
status 13476: resolved fixed
1 parent aa2cad8 commit 02075c3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎server/src/com/cloud/api/ApiResponseHelper.java‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,8 +1610,9 @@ public SystemVmResponse createSystemVmResponse(VirtualMachine vm) {
16101610
} else if (network.getTrafficType() == TrafficType.Control) {
16111611
vmResponse.setLinkLocalIp(singleNicProfile.getIp4Address());
16121612
vmResponse.setLinkLocalMacAddress(singleNicProfile.getMacAddress());
1613-
vmResponse.setLinkLocalNetmask(singleNicProfile.getNetmask());
1614-
} else if (network.getTrafficType() == TrafficType.Public) {
1613+
vmResponse.setLinkLocalNetmask(singleNicProfile.getNetmask());
1614+
} else if (network.getTrafficType() == TrafficType.Public || network.getTrafficType() == TrafficType.Guest) {
1615+
/*In basic zone, public ip has TrafficType.Guest*/
16151616
vmResponse.setPublicIp(singleNicProfile.getIp4Address());
16161617
vmResponse.setPublicMacAddress(singleNicProfile.getMacAddress());
16171618
vmResponse.setPublicNetmask(singleNicProfile.getNetmask());

0 commit comments

Comments
 (0)