cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Stevens <wstev...@cloudops.com>
Subject Supported Source NAT Type?
Date Thu, 18 Apr 2013 20:05:36 GMT
In the 'Create network service offering' flow there is this dropdown:

[image: Inline image 1]

What are the implications for picking one or the other?

This code seems related in
'com.cloud.network.ExternalFirewallDeviceManagerImpl.manageGuestNetworkWithExternalFirewall()'
:
NetworkOffering offering =
_networkOfferingDao.findById(network.getNetworkOfferingId());
boolean sharedSourceNat = offering.getSharedSourceNat();

IPAddressVO sourceNatIp = null;
if (!sharedSourceNat) {
    // Get the source NAT IP address for this account
    List<? extends IpAddress> sourceNatIps =
_networkMgr.listPublicIpsAssignedToAccount(network.getAccountId(),
            zoneId, true);

    if (sourceNatIps.size() != 1) {
        String errorMsg = "External firewall was unable to find the source
NAT IP address for account "
    + account.getAccountName();
        s_logger.error(errorMsg);
        return true;
    } else {
        sourceNatIp = _ipAddressDao.findById(sourceNatIps.get(0).getId());
    }
}

How does the 'sourceNatIp' get set if 'sharedSourceNat' is true?

Thanks,

Will

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message