diff options
Diffstat (limited to 'nova/exception.py')
-rw-r--r-- | nova/exception.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py index 5d167bd5d4..bf69b4409d 100644 --- a/nova/exception.py +++ b/nova/exception.py @@ -2440,3 +2440,19 @@ class PlacementPciDependentDeviceException(PlacementPciException): "[pci]device_spec is not supported. Either the parent PF or its " "children VFs can be configured." ) + + +class PlacementPciMixedResourceClassException(PlacementPciException): + msg_fmt = _( + "VFs from the same PF cannot be configured with different " + "'resource_class' values in [pci]device_spec. We got %(new_rc)s " + "for %(new_dev)s and %(current_rc)s for %(current_devs)s." + ) + + +class PlacementPciMixedTraitsException(PlacementPciException): + msg_fmt = _( + "VFs from the same PF cannot be configured with different set " + "of 'traits' in [pci]device_spec. We got %(new_traits)s for " + "%(new_dev)s and %(current_traits)s for %(current_devs)s." + ) |