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

Issue #3265571 by onotm, yas, Ryo Yamashita: Add a detailed view to SPA (OpenStack Floating IPs)

parent b58ee3fc
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
@@ -44,6 +44,7 @@ import K8S_SCHEDULE_TEMPLATE from 'constant/entity_info_template/k8s/schedule';
import OPENSTACK_INSTANCE_TEMPLATE from 'constant/entity_info_template/openstack/instance';
import OPENSTACK_IMAGE_TEMPLATE from 'constant/entity_info_template/openstack/image';
import OPENSTACK_SECURITY_GROUP_TEMPLATE from 'constant/entity_info_template/openstack/security_group';
import OPENSTACK_FLOATING_IP_TEMPLATE from 'constant/entity_info_template/openstack/floating_ip';
import OPENSTACK_NETWORK_INTERFACE_TEMPLATE from 'constant/entity_info_template/openstack/network_interface';
import OPENSTACK_KEY_PAIR_TEMPLATE from 'constant/entity_info_template/openstack/key_pair';
import OPENSTACK_VOLUME_TEMPLATE from 'constant/entity_info_template/openstack/volume';
@@ -96,6 +97,7 @@ const ENTITY_INFO_LIST = [
  OPENSTACK_INSTANCE_TEMPLATE,
  OPENSTACK_IMAGE_TEMPLATE,
  OPENSTACK_SECURITY_GROUP_TEMPLATE,
  OPENSTACK_FLOATING_IP_TEMPLATE,
  OPENSTACK_NETWORK_INTERFACE_TEMPLATE,
  OPENSTACK_KEY_PAIR_TEMPLATE,
  OPENSTACK_VOLUME_TEMPLATE,
+39 −0
Changes for modules/cloud_dashboard/cloud_dashboard/src/constant/entity_info_template/openstack/floating_ip.ts: 39 added lines, 0 removed lines.
Original line number Diff line number Diff line
import EntityInfoTemplate from 'model/EntityInfoTemplate';

// Template for displaying detailed information about entities in OpenStack.
const OPENSTACK_FLOATING_IP_TEMPLATE: EntityInfoTemplate = {
  cloudServiceProvider: 'openstack',
  entityName: 'floating_ip',
  entityRecords: [
    {
      panelName: 'IP Address',
      tableRecordList: [],
      keyValueRecords: [
        { labelName: 'Floating IP', name: 'public_ip', type: 'default' },
        { labelName: 'Private IP Address', name: 'private_ip_address', type: 'default' },
        { labelName: 'Created', name: 'created', type: 'datetime' },
      ]
    },
    {
      panelName: 'Assign',
      tableRecordList: [],
      keyValueRecords: [
        { labelName: 'Instance ID', name: 'instance_id', type: 'join', info: {
          entityTypeId: 'openstack_instance', keyColumn: 'instance_id', valueColumn: 'name' } },
        { labelName: 'Network interface ID', name: 'network_interface_id', type: 'default' },
        { labelName: 'Allocation ID', name: 'allocation_id', type: 'default' },
        { labelName: 'Association ID', name: 'association_id', type: 'default' },
        { labelName: 'Network interface owner', name: 'network_interface_owner', type: 'default' },
      ]
    },
    {
      panelName: 'Others',
      tableRecordList: [],
      keyValueRecords: [
        { labelName: 'Cloud service provider ID', name: 'cloud_context', type: 'default' },
      ]
    },
   ]
};

export default OPENSTACK_FLOATING_IP_TEMPLATE;