Make more flexible with locality options

Story: #2011175
Task: #50587
Change-Id: I50673a72c7da3ac1341559a0d5264349454370c4
This commit is contained in:
Bo Tran 2024-07-17 11:00:41 +07:00
parent 50f62389b5
commit 608e986028

View File

@ -472,7 +472,9 @@ class InstanceController(wsgi.Controller):
self._check_nic(context, nic)
if locality:
locality_domain = ['affinity', 'anti-affinity']
locality_domain = [
'affinity', 'soft-affinity',
'anti-affinity', 'soft-anti-affinity']
locality_domain_msg = ("Invalid locality '%s'. "
"Must be one of ['%s']" %
(locality,