@@ -25,25 +25,25 @@ public class StaticNatRule {
2525 private String sourceIpAddress ;
2626 private String sourcePortRange ;
2727 private String destinationIpAddress ;
28- private boolean destinationIpOnDefaultNic = true ;
28+ private boolean shouldApplyCrossNetworkSnat = false ;
2929
3030 public StaticNatRule () {
3131 // Empty constructor for (de)serialization
3232 }
3333
3434 public StaticNatRule (boolean revoke , String protocol , String sourceIpAddress , String sourcePortRange , String destinationIpAddress ) {
35- this (revoke , protocol , sourceIpAddress , sourcePortRange , destinationIpAddress , true );
35+ this (revoke , protocol , sourceIpAddress , sourcePortRange , destinationIpAddress , false );
3636 }
3737
3838 public StaticNatRule (boolean revoke , String protocol , String sourceIpAddress , String sourcePortRange ,
39- String destinationIpAddress , boolean destinationIpOnDefaultNic ) {
39+ String destinationIpAddress , boolean shouldApplyCrossNetworkSnat ) {
4040 super ();
4141 this .revoke = revoke ;
4242 this .protocol = protocol ;
4343 this .sourceIpAddress = sourceIpAddress ;
4444 this .sourcePortRange = sourcePortRange ;
4545 this .destinationIpAddress = destinationIpAddress ;
46- this .destinationIpOnDefaultNic = destinationIpOnDefaultNic ;
46+ this .shouldApplyCrossNetworkSnat = shouldApplyCrossNetworkSnat ;
4747 }
4848
4949 public boolean isRevoke () {
@@ -86,12 +86,12 @@ public void setDestinationIpAddress(String destinationIpAddress) {
8686 this .destinationIpAddress = destinationIpAddress ;
8787 }
8888
89- public boolean isDestinationIpOnDefaultNic () {
90- return destinationIpOnDefaultNic ;
89+ public boolean isShouldApplyCrossNetworkSnat () {
90+ return shouldApplyCrossNetworkSnat ;
9191 }
9292
93- public void setDestinationIpOnDefaultNic (boolean destinationIpOnDefaultNic ) {
94- this .destinationIpOnDefaultNic = destinationIpOnDefaultNic ;
93+ public void setShouldApplyCrossNetworkSnat (boolean shouldApplyCrossNetworkSnat ) {
94+ this .shouldApplyCrossNetworkSnat = shouldApplyCrossNetworkSnat ;
9595 }
9696
9797}
0 commit comments