conf: Don't encode matrix of storage protocols supporting TLS in the parser

Always parse the 'tls' source field and let the drivers decide whether
they support it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2018-05-30 11:03:28 +02:00
parent aa163d2513
commit 7b19f63e5d

View File

@ -8684,17 +8684,11 @@ virDomainDiskSourceNetworkParse(xmlNodePtr node,
goto cleanup; goto cleanup;
} }
/* Check tls=yes|no domain setting for the block device if ((haveTLS = virXMLPropString(node, "tls")) &&
* At present only VxHS. Other block devices may be added later */ (src->haveTLS = virTristateBoolTypeFromString(haveTLS)) <= 0) {
if (src->protocol == VIR_STORAGE_NET_PROTOCOL_VXHS && virReportError(VIR_ERR_XML_ERROR,
(haveTLS = virXMLPropString(node, "tls"))) { _("unknown disk source 'tls' setting '%s'"), haveTLS);
if ((src->haveTLS =
virTristateBoolTypeFromString(haveTLS)) <= 0) {
virReportError(VIR_ERR_XML_ERROR,
_("unknown disk source 'tls' setting '%s'"),
haveTLS);
goto cleanup; goto cleanup;
}
} }
if ((flags & VIR_DOMAIN_DEF_PARSE_STATUS) && if ((flags & VIR_DOMAIN_DEF_PARSE_STATUS) &&