Adding custom attribute to VMs in cloud view


I’m trying to modify Sunstone to show a custom host attribute in tabs/provision-tab/vms.
I want to append some access port information to the endusers there.

I’ve figured out that I need to add a provision-bullet-item

  • in provision-tab/vms/list.js but I don’t understand how I’m supposed to get the host attribute data from OpenNebula.

    Do I need to add some function in opennebula/vm.js?

    Any help is greatly appreciated.

  • Hi,

    In opennebula/host.js you have the requests to one.

    If you want the information of a specific host, use ‘show’.
    If you want to list all system hosts, use ‘list’

    Note: you need to require host.js in provision-tab/vms/list.js

    I hope it helps.