Merge "fix the spelling mistakes"

This commit is contained in:
Zuul 2019-10-07 14:41:20 +00:00 committed by Gerrit Code Review
commit b850a7a762
2 changed files with 2 additions and 2 deletions

View File

@ -1883,7 +1883,7 @@ class HostController(rest.RestController):
def _validate_ip_in_mgmt_network(ip):
network = pecan.request.systemconfig.network_get_by_type(
constants.NETWORK_TYPE_MGMT)
utils.validate_address_within_nework(ip, network)
utils.validate_address_within_network(ip, network)
@staticmethod
def _validate_address_not_allocated(name, ip_address):

View File

@ -106,7 +106,7 @@ def validate_address_within_address_pool(ip, pool):
"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.
:param ip netaddr.IPAddress object
:param network objects.Network object