Example #1
0
File: base.py Project: uladz/sahara
def check_network_config(node_groups, proxy_gateway_used=False):
    if CONF.use_floating_ips and CONF.use_neutron:
        for ng in node_groups:
            require_floating = True
            if proxy_gateway_used:
                require_floating = ng.get('is_proxy_gateway', False)

            if require_floating and not _get_floating_ip_pool(ng):
                raise ex.MissingFloatingNetworkException(ng.get('name'))
Example #2
0
def check_network_config(node_groups):
    if CONF.use_floating_ips and CONF.use_neutron:
        for ng in node_groups:
            if not _get_floating_ip_pool(ng):
                raise ex.MissingFloatingNetworkException(ng.get('name'))