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

Issue #3265587 by onotm, yas, Ryo Yamashita: Add a detailed view to SPA...

Issue #3265587 by onotm, yas, Ryo Yamashita: Add a detailed view to SPA (OpenStack Network Interfaces)
parent 4ef8548e
Loading
Loading
Loading
Loading
+2 −0
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_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';
import OPENSTACK_SNAPSHOT_TEMPLATE from 'constant/entity_info_template/openstack/snapshot';
@@ -95,6 +96,7 @@ const ENTITY_INFO_LIST = [
  OPENSTACK_INSTANCE_TEMPLATE,
  OPENSTACK_IMAGE_TEMPLATE,
  OPENSTACK_SECURITY_GROUP_TEMPLATE,
  OPENSTACK_NETWORK_INTERFACE_TEMPLATE,
  OPENSTACK_KEY_PAIR_TEMPLATE,
  OPENSTACK_VOLUME_TEMPLATE,
  OPENSTACK_SNAPSHOT_TEMPLATE,
+62 −0
Original line number Diff line number Diff line
import EntityInfoTemplate from 'model/EntityInfoTemplate';

const OPENSTACK_NETWORK_INTERFACE_TEMPLATE: EntityInfoTemplate = {
  cloudServiceProvider: 'openstack',
  entityName: 'network_interface',
  entityRecords: [
    {
      panelName: 'Network interface',
      tableRecordList: [],
      keyValueRecords: [
        { labelName: 'Description', name: 'description', type: 'default' },
        { labelName: 'Network interface ID', name: 'network_interface_id', type: 'default' },
        { labelName: 'Instance ID', name: 'instance_id', type: 'default' },
        { labelName: 'Allocation ID', name: 'allocation_id', type: 'default' },
        { labelName: 'Mac Address', name: 'mac_address', type: 'default' },
        { labelName: 'Device Index', name: 'device_index', type: 'number' },
        { labelName: 'Status', name: 'status', type: 'default' },
        { labelName: 'Delete on Termination', name: 'delete_on_termination', type: 'default' },
        { labelName: 'Created', name: 'created', type: 'datetime' },
      ]
    },
    {
      panelName: 'Network',
      tableRecordList: [],
      keyValueRecords: [
        { labelName: 'Security Groups', name: 'security_groups', type: 'default' },
        { labelName: 'VPC ID', name: 'vpc_id', type: 'default' },
        { labelName: 'CIDR Block', name: 'cidr_block', type: 'default' },
        { labelName: 'Subnet ID', name: 'subnet_id', type: 'default' },
        { labelName: 'Public IPs', name: 'public_ips', type: 'default' },
        { labelName: 'Primary Private IP', name: 'primary_private_ip', type: 'default' },
        { labelName: 'Secondary Private IPs', name: 'secondary_private_ips', type: 'default' },
        { labelName: 'Private DNS', name: 'private_dns', type: 'default' },
      ]
    },
    {
      panelName: 'Attachment',
      tableRecordList: [],
      keyValueRecords: [
        { labelName: 'Attachment ID', name: 'attachment_id', type: 'default' },
        { labelName: 'Attachment Owner', name: 'attachment_owner', type: 'default' },
        { labelName: 'Attachment Status', name: 'attachment_status', type: 'default' },
      ]
    },
    {
      panelName: 'Owner',
      tableRecordList: [],
      keyValueRecords: [
        { labelName: 'AWS account ID', name: 'account_id', type: 'default' },
      ]
    },
    {
      panelName: 'Others',
      tableRecordList: [],
      keyValueRecords: [
        { labelName: 'Cloud service provider ID', name: 'cloud_context', type: 'default' },
      ]
    },
  ]
};

export default OPENSTACK_NETWORK_INTERFACE_TEMPLATE;