bug 6807: add the source nat ip with net mask

status 6807: resolved fixed
This commit is contained in:
Chiradeep Vittal 2010-10-29 00:04:24 -07:00
parent d6a2766c04
commit 149a5d0eb9
1 changed files with 6 additions and 2 deletions

View File

@ -1327,11 +1327,15 @@ public abstract class CitrixResourceBase implements StoragePoolResource, ServerR
}
if (sourceNat) {
args += " -f";
long cidrSize = NetUtils.getCidrSize(vlanNetmask);
args += " -l ";
args += publicIpAddress + "/" + Long.toString(cidrSize);
} else {
args += " -l ";
args += publicIpAddress;
}
args += " -i ";
args += privateIpAddress;
args += " -l ";
args += publicIpAddress;
args += " -c ";
args += "eth" + correctVif.getDevice(conn);
args += " -g ";