mirror of https://github.com/apache/cloudstack.git
corresponding changes in the kvm resource
This commit is contained in:
parent
1950bf7a99
commit
606bc6d99e
|
|
@ -98,9 +98,9 @@ public class SetFirewallRuleCommand extends RoutingCommand {
|
|||
return this.oldPrivatePort;
|
||||
}
|
||||
|
||||
public boolean isNat(){
|
||||
return this.nat;
|
||||
}
|
||||
// public boolean isNat(){
|
||||
// return this.nat;
|
||||
// }
|
||||
|
||||
public boolean isCreate() {
|
||||
return create;
|
||||
|
|
|
|||
|
|
@ -449,7 +449,7 @@ public class VirtualRoutingResource implements Manager {
|
|||
protected Answer execute(final SetFirewallRuleCommand cmd) {
|
||||
String args;
|
||||
|
||||
if(cmd.isNat()){
|
||||
if(cmd.getProtocol().toLowerCase().equals(NetUtils.NAT_PROTO)){
|
||||
//1:1 NAT needs instanceip;publicip;domrip;op
|
||||
if(cmd.isCreate())
|
||||
args = "-A";
|
||||
|
|
|
|||
Loading…
Reference in New Issue