mirror of https://github.com/apache/cloudstack.git
bug 6807: first ip is different from sourcenat
status 6807: resolved fixed
This commit is contained in:
parent
149a5d0eb9
commit
8a1245d433
|
|
@ -1325,13 +1325,16 @@ public abstract class CitrixResourceBase implements StoragePoolResource, ServerR
|
|||
} else {
|
||||
args = "-D";
|
||||
}
|
||||
String cidrSize = Long.toString(NetUtils.getCidrSize(vlanNetmask));
|
||||
if (sourceNat) {
|
||||
args += " -f";
|
||||
long cidrSize = NetUtils.getCidrSize(vlanNetmask);
|
||||
args += " -l ";
|
||||
args += publicIpAddress + "/" + Long.toString(cidrSize);
|
||||
} else {
|
||||
args += publicIpAddress + "/" + cidrSize;
|
||||
} else if (firstIP) {
|
||||
args += " -l ";
|
||||
args += publicIpAddress + "/" + cidrSize;
|
||||
} else {
|
||||
args += " -l ";
|
||||
args += publicIpAddress;
|
||||
}
|
||||
args += " -i ";
|
||||
|
|
|
|||
Loading…
Reference in New Issue