#NEWLINE# @ classmethod #NEWLINE# def _check_sriov_properties( self , task ) : #NEWLINE# #INDENT# h_type = objects . Cluster . get_editable_attributes ( task . cluster ) [ 'common' ] [ 'libvirt_type' ] [ 'value' ] #NEWLINE# for node in self . cluster . nodes : #NEWLINE# #INDENT# if ( not objects . Node . sriov_enabled ( node ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# if ( h_type != consts . HYPERVISORS . kvm ) : #NEWLINE# #INDENT# raise errors . InvalidData ( 'Only KVM hypervisor works with SRIOV.' )