Skip to content

Commit affc162

Browse files
committed
AutoScale: Fixing issues that occurred during rebase with master
1 parent 8fdd0a4 commit affc162

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎plugins/network-elements/netscaler/src/com/cloud/network/element/NetscalerElement.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ public boolean applyStaticNats(Network config, List<? extends StaticNat> rules)
754754
}
755755
}
756756

757-
SetStaticNatRulesCommand cmd = new SetStaticNatRulesCommand(rulesTO);
757+
SetStaticNatRulesCommand cmd = new SetStaticNatRulesCommand(rulesTO, null);
758758
answer = (SetStaticNatRulesAnswer) _agentMgr.send(lbDevice.getHostId(), cmd);
759759
if (answer == null) {
760760
return false;

‎server/src/com/cloud/api/ApiResponseHelper.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3722,7 +3722,7 @@ public VpcOfferingResponse createVpcOfferingResponse(VpcOffering offering) {
37223722
if (service == Service.Gateway) {
37233723
continue;
37243724
}
3725-
svcRsp.setName(service.getName());response.setObjectName
3725+
svcRsp.setName(service.getName());
37263726
List<ProviderResponse> providers = new ArrayList<ProviderResponse>();
37273727
for (Provider provider : serviceProviderMap.get(service)) {
37283728
if (provider != null) {

‎ui/scripts/network.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1961,7 +1961,11 @@
19611961
});
19621962
}
19631963
}
1964-
});
1964+
if(args.context.ipAddresses[0].networkOfferingConserveMode == false) {
1965+
/*
1966+
(1) If IP is SourceNat, no StaticNat/VPN/PortForwarding/LoadBalancer can be enabled/added.
1967+
*/
1968+
if (args.context.ipAddresses[0].issourcenat){
19651969
if(havingFirewallService == false) { //firewall is not supported in IP from VPC section (because ACL has already supported in tier from VPC section)
19661970
disallowedActions.push("firewall");
19671971
}

0 commit comments

Comments
 (0)