fix the spelling mistakes

Change-Id: I7731f7446b48db18eb74bb6dd382eb6e8cb62269
This commit is contained in:
jiasirui 2019-09-12 19:28:30 +08:00
parent 67d4ba105f
commit 7868a59dcc
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): 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):

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)) "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