class documentation
class OVFWriter(object):
Writer class for OVF files.
| Method | __init__ |
Initialize the writer - set the top element. |
| Method | |
Formatter of the XML file. |
| Method | |
Convert disk information to certain OVF sections. |
| Method | |
Convert Ganeti-specific information to GanetiSection. |
| Method | |
Convert network information to NetworkSection. |
| Method | |
Convert virtual system information to OVF sections. |
| Instance Variable | hardware |
list of items prepared for VirtualHardwareSection |
| Instance Variable | next |
next instance id to be used when creating elements on hardware_list |
| Instance Variable | tree |
XML tree that we are constructing |
| Instance Variable | virtual |
value of vssd:VirtualSystemType, for external usage in VMWare this requires to be vmx |
| Static Method | _ |
Save name and parameters information under root using data. |
Initialize the writer - set the top element.
| Parameters | |
| has | if the Ganeti schema should be added - i.e. this means that Ganeti section will be present |
Convert disk information to certain OVF sections.
| Parameters | |
| disks:list | list of dictionaries of disk options from config.ini |
Convert Ganeti-specific information to GanetiSection.
| Parameters | |
| ganeti:dict | dictionary of Ganeti-specific options from config.ini |
| networks:list | list of dictionaries of network options form config.ini |
Convert network information to NetworkSection.
| Parameters | |
| networks:list | list of dictionaries of network options form config.ini |
Convert virtual system information to OVF sections.
| Parameters | |
| name:string | name of the instance |
| vcpus:int | number of VCPUs |
| memory:int | RAM memory in MB |
virtual_system_type: string =
¶
value of vssd:VirtualSystemType, for external usage in VMWare this requires to be vmx