Skip to content

Commit 345c575

Browse files
config: add resource filter and view buttons
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 645e637 commit 345c575

File tree

13 files changed

+112
-1
lines changed

13 files changed

+112
-1
lines changed

ui/src/config/section/compute.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ export default {
3838
'account', 'zonename'
3939
],
4040
related: [{
41+
name: 'volume',
42+
title: 'Volumes',
43+
param: 'virtualmachineid'
44+
}, {
4145
name: 'vmsnapshot',
4246
title: 'VM Snapshots',
4347
param: 'virtualmachineid'
@@ -234,6 +238,11 @@ export default {
234238
permission: ['listSSHKeyPairs'],
235239
columns: ['name', 'fingerprint', 'account', 'domain'],
236240
details: ['name', 'fingerprint', 'account', 'domain'],
241+
related: [{
242+
name: 'vm',
243+
title: 'Instances',
244+
param: 'keypair'
245+
}],
237246
actions: [
238247
{
239248
api: 'createSSHKeyPair',
@@ -265,6 +274,11 @@ export default {
265274
permission: ['listAffinityGroups'],
266275
columns: ['name', 'type', 'description', 'account', 'domain'],
267276
details: ['name', 'id', 'description', 'type', 'account', 'domain'],
277+
related: [{
278+
name: 'vm',
279+
title: 'Instances',
280+
param: 'affinitygroupid'
281+
}],
268282
actions: [
269283
{
270284
api: 'createAffinityGroup',

ui/src/config/section/iam.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ export default {
157157
resourceType: 'Domain',
158158
columns: ['name', 'state', 'path', 'parentdomainname', 'level'],
159159
details: ['name', 'id', 'path', 'parentdomainname', 'level', 'networkdomain', 'iptotal', 'vmtotal', 'volumetotal', 'vmlimit', 'iplimit', 'volumelimit', 'snapshotlimit', 'templatelimit', 'vpclimit', 'cpulimit', 'memorylimit', 'networklimit', 'primarystoragelimit', 'secondarystoragelimit'],
160+
related: [{
161+
name: 'account',
162+
title: 'Accounts',
163+
param: 'domainid'
164+
}],
160165
actions: [
161166
{
162167
api: 'createDomain',

ui/src/config/section/image.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ export default {
2929
resourceType: 'Template',
3030
columns: ['name', 'ostypename', 'status', 'hypervisor', 'account', 'domain'],
3131
details: ['name', 'id', 'displaytext', 'checksum', 'hypervisor', 'format', 'ostypename', 'size', 'isready', 'passwordenabled', 'directdownload', 'isextractable', 'isdynamicallyscalable', 'ispublic', 'isfeatured', 'crosszones', 'type', 'account', 'domain', 'created'],
32+
related: [{
33+
name: 'vm',
34+
title: 'Instances',
35+
param: 'templateid'
36+
}],
3237
tabs: [{
3338
name: 'details',
3439
component: () => import('@/components/view/DetailsTab.vue')
@@ -102,6 +107,11 @@ export default {
102107
resourceType: 'ISO',
103108
columns: ['name', 'ostypename', 'account', 'domain'],
104109
details: ['name', 'id', 'displaytext', 'checksum', 'ostypename', 'size', 'bootable', 'isready', 'directdownload', 'isextractable', 'ispublic', 'isfeatured', 'crosszones', 'account', 'domain', 'created'],
110+
related: [{
111+
name: 'vm',
112+
title: 'Instances',
113+
param: 'isoid'
114+
}],
105115
actions: [
106116
{
107117
api: 'registerIso',

ui/src/config/section/infra/clusters.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ export default {
2222
permission: ['listClustersMetrics', 'listClusters'],
2323
columns: ['name', 'state', 'clustertype', 'hypervisortype', 'hosts', 'cpuused', 'cpumaxdeviation', 'cpuallocated', 'cputotal', 'memoryused', 'memorymaxdeviation', 'memoryallocated', 'memorytotal', 'podname', 'zonename'],
2424
details: ['name', 'id', 'allocationstate', 'clustertype', 'hypervisortype', 'podname', 'zonename'],
25+
related: [{
26+
name: 'host',
27+
title: 'Hosts',
28+
param: 'clusterid'
29+
}],
2530
actions: [
2631
{
2732
api: 'addCluster',

ui/src/config/section/infra/hosts.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ export default {
2424
params: { type: 'routing' },
2525
columns: ['name', 'state', 'resourcestate', 'powerstate', 'ipaddress', 'hypervisor', 'instances', 'cpunumber', 'cputotalghz', 'cpuusedghz', 'cpuallocatedghz', 'memorytotalgb', 'memoryusedgb', 'memoryallocatedgb', 'networkread', 'networkwrite', 'clustername', 'zonename'],
2626
details: ['name', 'id', 'resourcestate', 'ipaddress', 'hypervisor', 'hypervisorversion', 'version', 'type', 'oscategoryname', 'hosttags', 'clustername', 'podname', 'zonename', 'created'],
27+
related: [{
28+
name: 'vm',
29+
title: 'Instances',
30+
param: 'hostid'
31+
}],
2732
actions: [
2833
{
2934
api: 'addHost',

ui/src/config/section/infra/pods.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ export default {
2222
permission: ['listPods'],
2323
columns: ['name', 'allocationstate', 'gateway', 'netmask', 'zonename'],
2424
details: ['name', 'id', 'allocationstate', 'netmask', 'gateway', 'zonename'],
25+
related: [{
26+
name: 'cluster',
27+
title: 'Clusters',
28+
param: 'podid'
29+
}, {
30+
name: 'host',
31+
title: 'Hosts',
32+
param: 'podid'
33+
}],
2534
actions: [
2635
{
2736
api: 'createPod',

ui/src/config/section/infra/primaryStorages.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ export default {
2222
permission: ['listStoragePoolsMetrics', 'listStoragePools'],
2323
columns: ['name', 'state', 'ipaddress', 'type', 'path', 'scope', 'disksizeusedgb', 'disksizetotalgb', 'disksizeallocatedgb', 'disksizeunallocatedgb', 'clustername', 'zonename'],
2424
details: ['name', 'id', 'ipaddress', 'type', 'scope', 'path', 'provider', 'hypervisor', 'overprovisionfactor', 'disksizetotal', 'disksizeallocated', 'disksizeused', 'clustername', 'podname', 'zonename', 'created'],
25+
related: [{
26+
name: 'volume',
27+
title: 'Volumes',
28+
param: 'storageid'
29+
}],
2530
actions: [
2631
{
2732
api: 'createStoragePool',

ui/src/config/section/infra/zones.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,27 @@ export default {
2222
permission: ['listZonesMetrics', 'listZones'],
2323
columns: ['name', 'state', 'networktype', 'clusters', 'cpuused', 'cpumaxdeviation', 'cpuallocated', 'cputotal', 'memoryused', 'memorymaxdeviation', 'memoryallocated', 'memorytotal'],
2424
details: ['name', 'id', 'allocationstate', 'networktype', 'guestcidraddress', 'localstorageenabled', 'securitygroupsenabled', 'dns1', 'dns2', 'internaldns1', 'internaldns2'],
25+
related: [{
26+
name: 'pod',
27+
title: 'Pods',
28+
param: 'zoneid'
29+
}, {
30+
name: 'cluster',
31+
title: 'Clusters',
32+
param: 'zoneid'
33+
}, {
34+
name: 'host',
35+
title: 'Hosts',
36+
param: 'zoneid'
37+
}, {
38+
name: 'storagepool',
39+
title: 'Primate Storage',
40+
param: 'zoneid'
41+
}, {
42+
name: 'imagestore',
43+
title: 'Secondary Storage',
44+
param: 'zoneid'
45+
}],
2546
actions: [
2647
{
2748
api: 'createZone',

ui/src/config/section/monitor.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ export default {
2828
permission: ['listEvents'],
2929
columns: ['username', 'description', 'state', 'level', 'type', 'account', 'domain', 'created'],
3030
details: ['username', 'id', 'description', 'state', 'level', 'type', 'account', 'domain', 'created'],
31+
related: [{
32+
name: 'event',
33+
title: 'Event Timeline',
34+
param: 'startid'
35+
}],
3136
actions: [
3237
{
3338
api: 'archiveEvents',

ui/src/config/section/network.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ export default {
3131
related: [{
3232
name: 'publicip',
3333
title: 'IP Addresses',
34-
param: 'associatedNetworkId'
34+
param: 'associatednetworkid'
35+
}, {
36+
name: 'vm',
37+
title: 'Instances',
38+
param: 'networkid'
3539
}],
3640
tabs: [{
3741
name: 'details',
@@ -80,6 +84,11 @@ export default {
8084
resourceType: 'Vpc',
8185
columns: ['name', 'state', 'displaytext', 'cidr', 'account', 'zonename'],
8286
details: ['name', 'id', 'displaytext', 'cidr', 'networkdomain', 'ispersistent', 'redundantvpcrouter', 'restartrequired', 'zonename', 'account', 'domain'],
87+
related: [{
88+
name: 'vm',
89+
title: 'Instances',
90+
param: 'vpcid'
91+
}],
8392
tabs: [{
8493
name: 'configure',
8594
component: () => import('@/views/network/VpcConfigure.vue')

0 commit comments

Comments
 (0)