Loading modules/cloud_dashboard/cloud_dashboard/src/constant/templates/entity/openstack/router.ts +5 −1 Changes for modules/cloud_dashboard/cloud_dashboard/src/constant/templates/entity/openstack/router.ts: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -13,13 +13,17 @@ const OPENSTACK_ROUTER_TEMPLATE: EntityInfoTemplate = { entityRecords: [ { panelName: 'Router', tableRecordList: [], tableRecordList: ['routes'], keyValueRecords: [ { labelName: 'Name', name: 'name', type: 'default' }, { labelName: 'Router ID', name: 'router_id', type: 'default' }, { labelName: 'Project ID', name: 'project_id', type: 'default' }, { labelName: 'Status', name: 'status', type: 'default' }, { labelName: 'Admin State', name: 'admin_state_up', type: 'boolean', value: ['up', 'down'] }, { labelName: 'Static Routes', name: 'routes', type: 'custom-table', column: [ { labelName: 'Destination CIDR', name: 'item_key', type: 'default' }, { labelName: 'Next Hop', name: 'item_value', type: 'default' }, ] }, { labelName: 'Created', name: 'created', type: 'datetime' }, ] }, Loading modules/cloud_dashboard/cloud_dashboard/src/constant/templates/form/openstack/router.ts +23 −0 Changes for modules/cloud_dashboard/cloud_dashboard/src/constant/templates/form/openstack/router.ts: 23 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -25,6 +25,29 @@ const OPENSTACK_NETWORK_TEMPLATE: EntityFormTemplate[] = [ } ] }, { cloudServiceProvider: 'openstack', entityName: 'router', actionType: 'edit', entityRecords: [ { type: 'panel', panelName: 'Router', keyValueRecords: [ { type: 'default', labelName: 'Name', name: 'name', defaultValue: '', required: true }, { type: 'boolean', labelName: 'Admin state up', name: 'admin_state_up', defaultValue: true }, { type: 'select', labelName: 'External Network', name: 'external_gateway_network_id', url: '/cloud_dashboard/openstack/{cloud_context}/external_gateway_network_ids', defaultValue: '' }, { type: 'boolean', labelName: 'Enable SNAT', name: 'external_gateway_enable_snat', defaultValue: true }, { type: 'key-value', labelName: 'Static Routes', name: 'routes', defaultValue: [], columnLabel: { keyLabelName: 'Destination CIDR', valueLabelName: 'Next Hop'} }, ] } ] }, { cloudServiceProvider: 'openstack', entityName: 'router', Loading modules/cloud_dashboard/cloud_dashboard/src/model/EntityFormColumn.ts +1 −0 Changes for modules/cloud_dashboard/cloud_dashboard/src/model/EntityFormColumn.ts: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ type EntityFormColumnInfo = { } | { type: 'key-value', defaultValue: KeyValueItem[], columnLabel?: { keyLabelName: string, valueLabelName: string } } | { type: 'join', info: { Loading modules/cloud_dashboard/cloud_dashboard/src/model/EntityInfoRecordData.ts +2 −1 Changes for modules/cloud_dashboard/cloud_dashboard/src/model/EntityInfoRecordData.ts: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -5,7 +5,8 @@ type EntityInfoRecordData = { } | { type: 'table', title: string, record: Record<string, string>[] record: Record<string, string>[], label?: Record<string, string> } | { type: 'metrics', record: { Loading modules/cloud_dashboard/cloud_dashboard/src/molecules/EntityFormBlock.tsx +1 −0 Changes for modules/cloud_dashboard/cloud_dashboard/src/molecules/EntityFormBlock.tsx: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -141,6 +141,7 @@ const EntityFormBlock = ({ keyValueRecord, cloudContext, formData, setFormData } label={keyValueRecord.labelName} value={value} setValue={setValue} columnLabel={keyValueRecord.columnLabel} required={!!keyValueRecord.required} readOnly={!!keyValueRecord.readOnly} />; case 'radio': Loading Loading
modules/cloud_dashboard/cloud_dashboard/src/constant/templates/entity/openstack/router.ts +5 −1 Changes for modules/cloud_dashboard/cloud_dashboard/src/constant/templates/entity/openstack/router.ts: 5 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -13,13 +13,17 @@ const OPENSTACK_ROUTER_TEMPLATE: EntityInfoTemplate = { entityRecords: [ { panelName: 'Router', tableRecordList: [], tableRecordList: ['routes'], keyValueRecords: [ { labelName: 'Name', name: 'name', type: 'default' }, { labelName: 'Router ID', name: 'router_id', type: 'default' }, { labelName: 'Project ID', name: 'project_id', type: 'default' }, { labelName: 'Status', name: 'status', type: 'default' }, { labelName: 'Admin State', name: 'admin_state_up', type: 'boolean', value: ['up', 'down'] }, { labelName: 'Static Routes', name: 'routes', type: 'custom-table', column: [ { labelName: 'Destination CIDR', name: 'item_key', type: 'default' }, { labelName: 'Next Hop', name: 'item_value', type: 'default' }, ] }, { labelName: 'Created', name: 'created', type: 'datetime' }, ] }, Loading
modules/cloud_dashboard/cloud_dashboard/src/constant/templates/form/openstack/router.ts +23 −0 Changes for modules/cloud_dashboard/cloud_dashboard/src/constant/templates/form/openstack/router.ts: 23 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -25,6 +25,29 @@ const OPENSTACK_NETWORK_TEMPLATE: EntityFormTemplate[] = [ } ] }, { cloudServiceProvider: 'openstack', entityName: 'router', actionType: 'edit', entityRecords: [ { type: 'panel', panelName: 'Router', keyValueRecords: [ { type: 'default', labelName: 'Name', name: 'name', defaultValue: '', required: true }, { type: 'boolean', labelName: 'Admin state up', name: 'admin_state_up', defaultValue: true }, { type: 'select', labelName: 'External Network', name: 'external_gateway_network_id', url: '/cloud_dashboard/openstack/{cloud_context}/external_gateway_network_ids', defaultValue: '' }, { type: 'boolean', labelName: 'Enable SNAT', name: 'external_gateway_enable_snat', defaultValue: true }, { type: 'key-value', labelName: 'Static Routes', name: 'routes', defaultValue: [], columnLabel: { keyLabelName: 'Destination CIDR', valueLabelName: 'Next Hop'} }, ] } ] }, { cloudServiceProvider: 'openstack', entityName: 'router', Loading
modules/cloud_dashboard/cloud_dashboard/src/model/EntityFormColumn.ts +1 −0 Changes for modules/cloud_dashboard/cloud_dashboard/src/model/EntityFormColumn.ts: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ type EntityFormColumnInfo = { } | { type: 'key-value', defaultValue: KeyValueItem[], columnLabel?: { keyLabelName: string, valueLabelName: string } } | { type: 'join', info: { Loading
modules/cloud_dashboard/cloud_dashboard/src/model/EntityInfoRecordData.ts +2 −1 Changes for modules/cloud_dashboard/cloud_dashboard/src/model/EntityInfoRecordData.ts: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -5,7 +5,8 @@ type EntityInfoRecordData = { } | { type: 'table', title: string, record: Record<string, string>[] record: Record<string, string>[], label?: Record<string, string> } | { type: 'metrics', record: { Loading
modules/cloud_dashboard/cloud_dashboard/src/molecules/EntityFormBlock.tsx +1 −0 Changes for modules/cloud_dashboard/cloud_dashboard/src/molecules/EntityFormBlock.tsx: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -141,6 +141,7 @@ const EntityFormBlock = ({ keyValueRecord, cloudContext, formData, setFormData } label={keyValueRecord.labelName} value={value} setValue={setValue} columnLabel={keyValueRecord.columnLabel} required={!!keyValueRecord.required} readOnly={!!keyValueRecord.readOnly} />; case 'radio': Loading