Bug 13476 - Public IP's are not shown in the UI for the System VMs

status 13476: resolved fixed
This commit is contained in:
frank 2012-02-07 10:57:57 -08:00
parent aa2cad8f5b
commit 02075c3a2d
1 changed files with 3 additions and 2 deletions

View File

@ -1610,8 +1610,9 @@ public class ApiResponseHelper implements ResponseGenerator {
} else if (network.getTrafficType() == TrafficType.Control) {
vmResponse.setLinkLocalIp(singleNicProfile.getIp4Address());
vmResponse.setLinkLocalMacAddress(singleNicProfile.getMacAddress());
vmResponse.setLinkLocalNetmask(singleNicProfile.getNetmask());
} else if (network.getTrafficType() == TrafficType.Public) {
vmResponse.setLinkLocalNetmask(singleNicProfile.getNetmask());
} else if (network.getTrafficType() == TrafficType.Public || network.getTrafficType() == TrafficType.Guest) {
/*In basic zone, public ip has TrafficType.Guest*/
vmResponse.setPublicIp(singleNicProfile.getIp4Address());
vmResponse.setPublicMacAddress(singleNicProfile.getMacAddress());
vmResponse.setPublicNetmask(singleNicProfile.getNetmask());