Commit e8d9587c authored by Tomohiro Ono's avatar Tomohiro Ono Committed by Yas Naoi
Browse files

Issue #3268806 by onotm, yas, Ryo Yamashita: Add a detailed view to SPA (VMware Hosts)

parent 3a7e345d
Loading
Loading
Loading
Loading
+2 −0
Changes for modules/cloud_dashboard/cloud_dashboard/src/constant/entity_info_template/entity_info_template.ts: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@ import OPENSTACK_NETWORK_INTERFACE_TEMPLATE from 'constant/entity_info_template/
import OPENSTACK_KEY_PAIR_TEMPLATE from 'constant/entity_info_template/openstack/key_pair';
import OPENSTACK_VOLUME_TEMPLATE from 'constant/entity_info_template/openstack/volume';
import OPENSTACK_SNAPSHOT_TEMPLATE from 'constant/entity_info_template/openstack/snapshot';
import VMWARE_HOST_TEMPLATE from 'constant/entity_info_template/vmware/host';
import VMWARE_VM_TEMPLATE from 'constant/entity_info_template/vmware/vm';

const ENTITY_INFO_LIST = [
@@ -103,6 +104,7 @@ const ENTITY_INFO_LIST = [
  OPENSTACK_KEY_PAIR_TEMPLATE,
  OPENSTACK_VOLUME_TEMPLATE,
  OPENSTACK_SNAPSHOT_TEMPLATE,
  VMWARE_HOST_TEMPLATE,
  VMWARE_VM_TEMPLATE,
];

+49 −0
Changes for modules/cloud_dashboard/cloud_dashboard/src/constant/entity_info_template/vmware/host.ts: 49 added lines, 0 removed lines.
Original line number Diff line number Diff line
import EntityInfoTemplate from 'model/EntityInfoTemplate';
import EntityColumn from 'model/EntityColumn';

const VMWARE_HOST_TEMPLATE: EntityInfoTemplate = {
  cloudServiceProvider: 'vmware',
  entityName: 'host',
  entityRecords: [
    {
      panelName: 'Host',
      tableRecordList: [],
      keyValueRecords: [
        { labelName: 'Name', name: 'name', type: 'default' },
        { labelName: 'Host', name: 'host', type: 'default' },
        { labelName: 'Power State', name: 'power_state', type: 'default' },
        { labelName: 'Connection State', name: 'connection_state', type: 'default' },
      ]
    },
    {
      panelName: 'Tag Information',
      tableRecordList: ['tag_categories', 'tags'],
      keyValueRecords: [
        { labelName: 'Tag Categories', name: 'tag_categories', type: 'json-table', column: [
          { labelName: 'ID', name: 'id', type: 'default' },
          { labelName: 'Associable Types', name: 'associable_types', type: 'default' },
          { labelName: 'Name', name: 'name', type: 'default' },
          { labelName: 'Description', name: 'description', type: 'default' },
          { labelName: 'Used By', name: 'used_by', type: 'default' },
          { labelName: 'Cardinality', name: 'cardinality', type: 'default' },
        ] },
        { labelName: 'Tags', name: 'tags', type: 'json-table', column: [
          { labelName: 'ID', name: 'id', type: 'default' },
          { labelName: 'Category Id', name: 'category_id', type: 'default' },
          { labelName: 'Name', name: 'name', type: 'default' },
          { labelName: 'Description', name: 'description', type: 'default' },
          { labelName: 'Used By', name: 'used_by', type: 'default' },
        ] },
      ]
    },
    {
      panelName: 'Others',
      tableRecordList: [],
      keyValueRecords: [
        { labelName: 'Cloud service provider ID', name: 'cloud_context', type: 'default' },
      ]
    },
  ]
};

export default VMWARE_HOST_TEMPLATE;