Skip to content

Commit 606bc6d

Browse files
author
abhishek
committed
corresponding changes in the kvm resource
1 parent 1950bf7 commit 606bc6d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎core/src/com/cloud/agent/api/routing/SetFirewallRuleCommand.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ public String getOldPrivatePort() {
9898
return this.oldPrivatePort;
9999
}
100100

101-
public boolean isNat(){
102-
return this.nat;
103-
}
101+
// public boolean isNat(){
102+
// return this.nat;
103+
// }
104104

105105
public boolean isCreate() {
106106
return create;

‎core/src/com/cloud/agent/resource/virtualnetwork/VirtualRoutingResource.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ public void cleanupPrivateNetwork(String privNwName, String privBrName){
449449
protected Answer execute(final SetFirewallRuleCommand cmd) {
450450
String args;
451451

452-
if(cmd.isNat()){
452+
if(cmd.getProtocol().toLowerCase().equals(NetUtils.NAT_PROTO)){
453453
//1:1 NAT needs instanceip;publicip;domrip;op
454454
if(cmd.isCreate())
455455
args = "-A";

0 commit comments

Comments
 (0)