corresponding changes in the kvm resource

This commit is contained in:
abhishek 2010-11-24 10:16:35 -08:00
parent 1950bf7a99
commit 606bc6d99e
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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";