def _validate_max_ips_per_port(self, fixed_ip_list):
if len(fixed_ip_list) > cfg.CONF.max_fixed_ips_per_port:
- msg = _('Exceeded maximim amount of fixed ips per port')
+ msg = _('Exceeded maximum amount of fixed ips per port')
raise n_exc.InvalidInput(error_message=msg)
def _get_subnet_for_fixed_ip(self, context, fixed, network_id):
new_ips, device_owner):
"""Calculate changes in IPs for the port."""
# the new_ips contain all of the fixed_ips that are to be updated
- if len(new_ips) > cfg.CONF.max_fixed_ips_per_port:
- msg = _('Exceeded maximum amount of fixed ips per port')
- raise n_exc.InvalidInput(error_message=msg)
+ self._validate_max_ips_per_port(new_ips)
add_ips = []
remove_ips = []