1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-03 13:47:01 +03:00

M #-: Add host drivers to VM xml (short)

- This will help to identify VM class (e.g. KVM vs VMware) in list views
- Update xsd schema for vm pool (VM_MAD/TM_MAD)
This commit is contained in:
Ruben S. Montero 2022-03-16 18:38:15 +01:00
parent d56d2f8c9f
commit 289846f67f
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87
2 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,8 @@
<xs:element name="HID" type="xs:integer"/>
<xs:element name="CID" type="xs:integer"/>
<xs:element name="DS_ID" type="xs:integer"/>
<xs:element name="VM_MAD" type="xs:string"/>
<xs:element name="TM_MAD" type="xs:string"/>
<xs:element name="ACTION" type="xs:integer"/>
</xs:sequence>
</xs:complexType>

View File

@ -404,6 +404,8 @@ string& History::to_xml_short(string& xml) const
"<HID>" << hid << "</HID>" <<
"<CID>" << cid << "</CID>" <<
"<DS_ID>" << ds_id << "</DS_ID>" <<
"<VM_MAD>" << one_util::escape_xml(vmm_mad_name)<<"</VM_MAD>"<<
"<TM_MAD>" << one_util::escape_xml(tm_mad_name) <<"</TM_MAD>" <<
"<ACTION>" << one_util::escape_xml(action) << "</ACTION>" <<
"</HISTORY>";