private static boolean sharedIp(String ip, CloudAccount sourceCloudAccount, CloudAccount targetCloudAccount, Zone zone) {
            // IPs within the same account and zone are always shared.
            if (sourceCloudAccount.equals(targetCloudAccount))
                return true;

            // Only public IPs inside (outside) an exclave account are shared outside (inside).
            if (sourceCloudAccount.isExclave(zone) || targetCloudAccount.isExclave(zone))
                return isPublic(ip);

            // IPs in noclave and inclave are always shared.
            return true;
        }
Returns the IP space of a cloud account in a zone.
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/IP.java