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:
Murali Reddy 2013-05-31 10:51:10 +05:30
parent f84a27324d
commit 470995b1c4

View File

@ -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);
}