Merge "fix the spelling mistakes"
This commit is contained in:
commit
b850a7a762
@ -1883,7 +1883,7 @@ class HostController(rest.RestController):
|
|||||||
def _validate_ip_in_mgmt_network(ip):
|
def _validate_ip_in_mgmt_network(ip):
|
||||||
network = pecan.request.systemconfig.network_get_by_type(
|
network = pecan.request.systemconfig.network_get_by_type(
|
||||||
constants.NETWORK_TYPE_MGMT)
|
constants.NETWORK_TYPE_MGMT)
|
||||||
utils.validate_address_within_nework(ip, network)
|
utils.validate_address_within_network(ip, network)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _validate_address_not_allocated(name, ip_address):
|
def _validate_address_not_allocated(name, ip_address):
|
||||||
|
@ -106,7 +106,7 @@ def validate_address_within_address_pool(ip, pool):
|
|||||||
"IP address %s is not within address pool ranges") % str(ip))
|
"IP address %s is not within address pool ranges") % str(ip))
|
||||||
|
|
||||||
|
|
||||||
def validate_address_within_nework(ip, network):
|
def validate_address_within_network(ip, network):
|
||||||
"""Determine whether an IP address is within the specified IP network.
|
"""Determine whether an IP address is within the specified IP network.
|
||||||
:param ip netaddr.IPAddress object
|
:param ip netaddr.IPAddress object
|
||||||
:param network objects.Network object
|
:param network objects.Network object
|
||||||
|
Loading…
Reference in New Issue
Block a user