(cls, driver)
Confirm that driver is supported by Magnum for this COE.
Confirm that driver is supported by Magnum for this COE.
Confirm that driver is supported by Magnum for this COE .
def _validate_network_driver_supported(cls, driver):
        """Confirm that driver is supported by Magnum for this COE."""
        if driver not in cls.supported_network_drivers:
            raise exception.InvalidParameterValue(_(
                'Network driver type %(driver)s is not supported, '
                'expecting a %(supported_drivers)s network driver.') % {
                    'driver': driver,
                    'supported_drivers': '/'.join(
                        cls.supported_network_drivers + ['unspecified'])})
def _validate_network_driver_supported ( cls , driver ) : if driver not in cls . supported_network_drivers : raise exception . InvalidParameterValue ( _ ( 'Network driver type %(driver)s is not supported, ' 'expecting a %(supported_drivers)s network driver.' ) % { 'driver' : driver , 'supported_drivers' : '/' . join ( cls . supported_network_drivers + [ 'unspecified' ] ) } )