Merge "Use constant from neutron-lib"
This commit is contained in:
commit
376fa8aef4
|
@ -239,7 +239,8 @@ class QoSPlugin(qos.QoSPluginBase):
|
||||||
# will not have 'binding:profile.allocation', but this policy
|
# will not have 'binding:profile.allocation', but this policy
|
||||||
# update must be rejected.
|
# update must be rejected.
|
||||||
if (port.device_owner is not None and
|
if (port.device_owner is not None and
|
||||||
port.device_owner.startswith('compute:')):
|
port.device_owner.startswith(
|
||||||
|
nl_constants.DEVICE_OWNER_COMPUTE_PREFIX)):
|
||||||
raise NotImplementedError(_(
|
raise NotImplementedError(_(
|
||||||
'Cannot update QoS policies/rules backed by resources '
|
'Cannot update QoS policies/rules backed by resources '
|
||||||
'tracked in Placement'))
|
'tracked in Placement'))
|
||||||
|
|
Loading…
Reference in New Issue