mirror of https://github.com/apache/cloudstack.git
Bug 13476 - Public IP's are not shown in the UI for the System VMs
status 13476: resolved fixed
This commit is contained in:
parent
aa2cad8f5b
commit
02075c3a2d
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue