Merge "NSX|V3: Fix member fip error message"

This commit is contained in:
Zuul 2018-11-01 09:05:09 +00:00 committed by Gerrit Code Review
commit fc8f5d667b

View File

@ -45,8 +45,8 @@ class EdgeMemberManagerFromDict(base_mgr.Nsxv3LoadbalancerBaseManager):
return (floating_ips[0]['fixed_ip_address'],
floating_ips[0]['router_id'])
else:
msg = (_('Cannot get floating ip %(fip)s provided from '
'neutron db') % {'fip': fip})
msg = (_('Member IP %(fip)s is an external IP, and is expected to '
'be a floating IP') % {'fip': fip})
raise n_exc.BadRequest(resource='lbaas-vip', msg=msg)
@log_helpers.log_method_call