43e6686 storage: Disallow usage of the HBA for a fc_host backing

Authored and Committed by John Ferlan 6 years ago
    storage: Disallow usage of the HBA for a fc_host backing
    
    Disallow providing the wwnn/wwpn of the HBA in the adapter XML:
    
      
        wwpn='HBA_wwpn'/>
    
    This should be considered a configuration error since a vHBA
    would not be created. In order to use the HBA as the backing the
    following XML should be used:
    
      <adapter type='scsi_host' name='scsi_hostN'/>
    
    So add a check prior to the checkParent call to validate that
    the provided wwnn/wwpn resolves to a vHBA and not an HBA.
    
    Signed-off-by: John Ferlan <jferlan@redhat.com>
    
        
file modified
+15 -12