Nat 185
Compare changes
- NAT-152: fix bug in host allocation behavior when all networks are full or don't existJORGE SASIAIN authored
+ 96
− 83
@@ -87,6 +87,8 @@ def _find_networks(network_container=None, network=None, ip_version=4):
@@ -105,7 +107,6 @@ def _find_networks(network_container=None, network=None, ip_version=4):
@@ -177,7 +178,7 @@ def _allocate_network(
@@ -194,7 +195,7 @@ def allocate_service_ipv4_network(service_type, comment="", extattrs={}
@@ -211,7 +212,7 @@ def allocate_service_ipv6_network(service_type, comment="", extattrs={}
@@ -236,10 +237,10 @@ def _find_next_available_ip(infoblox_params, network_ref):
@@ -265,15 +266,15 @@ def _allocate_host(hostname=None,
@@ -346,8 +347,8 @@ def _allocate_host(hostname=None,
@@ -415,9 +416,9 @@ def allocate_service_host(hostname=None,
@@ -425,15 +426,19 @@ def allocate_service_host(hostname=None,
@@ -462,7 +467,10 @@ def allocate_service_host(hostname=None,
@@ -495,7 +503,7 @@ def allocate_service_host(hostname=None,
@@ -509,8 +517,8 @@ def delete_service_network(network, service_type=None
@@ -561,6 +569,75 @@ def delete_service_network(network, service_type=None
@@ -622,70 +699,6 @@ def _get_network_capacity(network=None):