Bug 13185 - CloudStack UI shows incorrect info for SSVM public IP

status 13185: resolved fixed
This commit is contained in:
frank 2012-02-02 10:52:00 -08:00
parent c9795a33f6
commit e30ca89c7c
1 changed files with 1 additions and 1 deletions

View File

@ -1617,7 +1617,7 @@ public class ApiResponseHelper implements ResponseGenerator {
vmResponse.setLinkLocalIp(singleNicProfile.getIp4Address());
vmResponse.setLinkLocalMacAddress(singleNicProfile.getMacAddress());
vmResponse.setLinkLocalNetmask(singleNicProfile.getNetmask());
} else {
} else if (network.getTrafficType() == TrafficType.Public){
vmResponse.setPublicIp(singleNicProfile.getIp4Address());
vmResponse.setPublicMacAddress(singleNicProfile.getMacAddress());
vmResponse.setPublicNetmask(singleNicProfile.getNetmask());