mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-2192: [EIP/Optonal PublicIP] listNetworkOfferings is not
returning info about the capability "AssociatePublicIP" added eip and associateEip capability details to the StaticNat service response
This commit is contained in:
parent
f84a27324d
commit
470995b1c4
@ -2132,9 +2132,14 @@ public class ApiResponseHelper implements ResponseGenerator {
|
||||
|
||||
CapabilityResponse eIp = new CapabilityResponse();
|
||||
eIp.setName(Capability.ElasticIp.getName());
|
||||
eIp.setValue(offering.getElasticLb() ? "true" : "false");
|
||||
eIp.setValue(offering.getElasticIp() ? "true" : "false");
|
||||
staticNatCapResponse.add(eIp);
|
||||
|
||||
CapabilityResponse associatePublicIp = new CapabilityResponse();
|
||||
associatePublicIp.setName(Capability.AssociatePublicIP.getName());
|
||||
associatePublicIp.setValue(offering.getAssociatePublicIP() ? "true" : "false");
|
||||
staticNatCapResponse.add(associatePublicIp);
|
||||
|
||||
svcRsp.setCapabilities(staticNatCapResponse);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user