#NEWLINE# def _validate_flavor_service_type( validate_type , valid_values = None ) : #NEWLINE# #INDENT# 'Ensure requested flavor service type plugin is loaded.' #NEWLINE# plugins = manager . NeutronManager . get_service_plugins ( ) #NEWLINE# if ( validate_type not in plugins ) : #NEWLINE# #INDENT# raise InvalidFlavorServiceType ( service_type = validate_type )