f170548 util: Add TLS attributes to virStorageSource

10 files Authored by Ashish Mittal 6 years ago, Committed by John Ferlan 6 years ago,
    util: Add TLS attributes to virStorageSource
    
    Add an optional virTristateBool haveTLS to virStorageSource to
    manage whether a storage source will be using TLS.
    
    Sample XML for a VxHS disk:
    
    <disk type='network' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source protocol='vxhs' name='eb90327c-8302-4725-9e1b-4e85ed4dc251' tls='yes'>
        <host name='192.168.0.1' port='9999'/>
      </source>
      <target dev='vda' bus='virtio'/>
    </disk>
    
    Additionally add a tlsFromConfig boolean to control whether the TLS
    setting was due to domain configuration or qemu.conf global setting
    in order to decide whether to Format the haveTLS setting for either
    a live or saved domain configuration file.
    
    Update the qemuxml2xmltest in order to add a test to show the proper
    parsing.
    
    Also update the docs to describe the tls attribute.
    
    Signed-off-by: Ashish Mittal <Ashish.Mittal@veritas.com>
    Signed-off-by: John Ferlan <jferlan@redhat.com>
    
        
file modified
+14 -3
file modified
+53 -11
file modified
+2 -1
file modified
+4 -3
file modified
+2 -0
file modified
+7 -0
file modified
+1 -0