[one-users] about variable order in Host information tab

Carlos Martín Sánchez cmartin at opennebula.org
Mon Jun 30 01:50:31 PDT 2014


Hi Carlo,

In the core, the host monitoring information is stored in a Template
(check Host::update_info if you want to poke around). The Template object
uses a multimap, and the attributes are ordered as the Template::to_xml
method puts them (should be in alphabetical order).

If you want to customize how the info is presented in Sunstone, you can
take a look at hosts-tab.js, function updateHostInfo; and
sunstone.js, function insert_extended_template_table.

Hope it helps,
Carlos

--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | cmartin at opennebula.org | @OpenNebula
<http://twitter.com/opennebula> <cmartin at opennebula.org>


On Tue, Jun 10, 2014 at 9:27 AM, Carlo Daffara <
carlo.daffara at cloudweavers.eu> wrote:

> Dear friends,
> we are working on extending/adding a few IM scripts to check for presence
> of virtualization extensions, support in the bios and so on. We already
> have a nicely working prototype,
> but we have a hard time understanding what order is used to show the
> information- it's clearly not ordered by executed IM script (or VMXCPU and
> VMXBIOS would be one after the other).
> Is it possible to order it afterwards? Or change the ordering?
> cheers,
> carlo daffara
> CloudWeavers
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140630/46884314/attachment.htm>


More information about the Users mailing list