diff --git a/app/models/ext_management_system.rb b/app/models/ext_management_system.rb index ffa64ca172c..c77b9f0eeb3 100644 --- a/app/models/ext_management_system.rb +++ b/app/models/ext_management_system.rb @@ -172,6 +172,7 @@ def hostname_format_valid? virtual_total :total_subnets, :cloud_subnets virtual_column :supports_block_storage, :type => :boolean virtual_column :supports_cloud_object_store_container_create, :type => :boolean + virtual_column :supports_cinder_volume_types, :type => :boolean virtual_aggregate :total_vcpus, :hosts, :sum, :total_vcpus virtual_aggregate :total_memory, :hosts, :sum, :ram_size @@ -587,6 +588,10 @@ def supports_cloud_object_store_container_create supports_cloud_object_store_container_create? end + def supports_cinder_volume_types + supports_cinder_volume_types? + end + def get_reserve(field) (hosts + ems_clusters).inject(0) { |v, obj| v + (obj.send(field) || 0) } end diff --git a/app/models/mixins/supports_feature_mixin.rb b/app/models/mixins/supports_feature_mixin.rb index fe6766d252b..88bc6d1cd79 100644 --- a/app/models/mixins/supports_feature_mixin.rb +++ b/app/models/mixins/supports_feature_mixin.rb @@ -72,6 +72,7 @@ module SupportsFeatureMixin :backup_create => 'CloudVolume backup creation', :backup_restore => 'CloudVolume backup restore', :cinder_service => 'Cinder storage service', + :cinder_volume_types => 'Cinder volume types', :create_floating_ip => 'Floating IP Creation', :create_host_aggregate => 'Host Aggregate Creation', :create_security_group => 'Security Group Creation',