COT.helpers.ovftool module¶
Give COT access to ovftool for validating and deploying OVF to ESXi.
https://www.vmware.com/support/developer/ovf/
- class OVFTool[source]¶
Bases: COT.helpers.helper.Helper
Helper provider for ovftool from VMware.
https://www.vmware.com/support/developer/ovf/
Methods
install_helper Install ovftool. validate_ovf Use VMware’s ovftool program to validate an OVF or OVA. - install_helper()[source]¶
Install ovftool.
Raise: NotImplementedError as VMware does not currently provide any mechanism for automatic download of ovftool.
- validate_ovf(ovf_file)[source]¶
Use VMware’s ovftool program to validate an OVF or OVA.
This checks the file against the OVF standard and any VMware-specific requirements.
Parameters: ovf_file (str) – File to validate
Returns: Output from ovftool
Raises: - HelperNotFoundError – if ovftool is not found.
- HelperError – if ovftool regards the file as invalid