network: add detail view component stubs

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2019-10-15 19:28:16 +05:30
parent caab6b9c27
commit 72e529c338
7 changed files with 192 additions and 1 deletions

View File

@ -11,6 +11,18 @@ export default {
resourceType: 'Network', resourceType: 'Network',
columns: ['name', 'state', 'type', 'cidr', 'ip6cidr', 'broadcasturi', 'account', 'zonename'], columns: ['name', 'state', 'type', 'cidr', 'ip6cidr', 'broadcasturi', 'account', 'zonename'],
details: ['name', 'id', 'description', 'type', 'traffictype', 'vpcid', 'vlan', 'broadcasturi', 'cidr', 'ip6cidr', 'netmask', 'gateway', 'ispersistent', 'restartrequired', 'reservediprange', 'redundantrouter', 'networkdomain', 'zonename', 'account', 'domain'], details: ['name', 'id', 'description', 'type', 'traffictype', 'vpcid', 'vlan', 'broadcasturi', 'cidr', 'ip6cidr', 'netmask', 'gateway', 'ispersistent', 'restartrequired', 'reservediprange', 'redundantrouter', 'networkdomain', 'zonename', 'account', 'domain'],
related: [{
name: 'publicip',
title: 'IP Addresses',
param: 'associatedNetworkId'
}],
tabs: [{
name: 'details',
component: () => import('@/views/common/DetailsTab.vue')
}, {
name: 'egress-rules',
component: () => import('@/views/network/EgressConfigure.vue')
}],
actions: [ actions: [
{ {
api: 'createNetwork', api: 'createNetwork',
@ -51,6 +63,13 @@ export default {
resourceType: 'Vpc', resourceType: 'Vpc',
columns: ['name', 'state', 'displaytext', 'cidr', 'account', 'zonename'], columns: ['name', 'state', 'displaytext', 'cidr', 'account', 'zonename'],
details: ['name', 'id', 'displaytext', 'cidr', 'networkdomain', 'ispersistent', 'redundantvpcrouter', 'restartrequired', 'zonename', 'account', 'domain'], details: ['name', 'id', 'displaytext', 'cidr', 'networkdomain', 'ispersistent', 'redundantvpcrouter', 'restartrequired', 'zonename', 'account', 'domain'],
tabs: [{
name: 'configure',
component: () => import('@/views/network/VpcConfigure.vue')
}, {
name: 'details',
component: () => import('@/views/common/DetailsTab.vue')
}],
actions: [ actions: [
{ {
api: 'createVPC', api: 'createVPC',
@ -90,6 +109,16 @@ export default {
resourceType: 'SecurityGroup', resourceType: 'SecurityGroup',
columns: ['name', 'description', 'account', 'domain'], columns: ['name', 'description', 'account', 'domain'],
details: ['name', 'id', 'description', 'account', 'domain'], details: ['name', 'id', 'description', 'account', 'domain'],
tabs: [{
name: 'details',
component: () => import('@/views/common/DetailsTab.vue')
}, {
name: 'ingress-rules',
component: () => import('@/views/network/IngressRuleConfigure.vue')
}, {
name: 'egress-rules',
component: () => import('@/views/network/EgressRuleConfigure.vue')
}],
actions: [ actions: [
{ {
api: 'createSecurityGroup', api: 'createSecurityGroup',
@ -116,6 +145,16 @@ export default {
resourceType: 'PublicIpAddress', resourceType: 'PublicIpAddress',
columns: ['ipaddress', 'state', 'associatednetworkname', 'virtualmachinename', 'allocated', 'account', 'zonename'], columns: ['ipaddress', 'state', 'associatednetworkname', 'virtualmachinename', 'allocated', 'account', 'zonename'],
details: ['ipaddress', 'id', 'associatednetworkname', 'virtualmachinename', 'networkid', 'issourcenat', 'isstaticnat', 'virtualmachinename', 'vmipaddress', 'vlan', 'allocated', 'account', 'zonename'], details: ['ipaddress', 'id', 'associatednetworkname', 'virtualmachinename', 'networkid', 'issourcenat', 'isstaticnat', 'virtualmachinename', 'vmipaddress', 'vlan', 'allocated', 'account', 'zonename'],
tabs: [{
name: 'configure',
component: () => import('@/views/network/IpConfigure.vue')
}, {
name: 'vpn',
component: () => import('@/views/network/VpnDetails.vue')
}, {
name: 'details',
component: () => import('@/views/common/DetailsTab.vue')
}],
actions: [ actions: [
{ {
api: 'associateIpAddress', api: 'associateIpAddress',
@ -124,13 +163,27 @@ export default {
listView: true, listView: true,
args: ['networkid'] args: ['networkid']
}, },
{
api: 'createRemoteAccessVpn',
icon: 'link',
label: 'Enable Remote Access VPN',
dataView: true,
args: ['publicipid', 'domainid', 'account']
},
{
api: 'deleteRemoteAccessVpn',
icon: 'disconnect',
label: 'Disable Remove Access VPN',
dataView: true,
args: ['publicipid', 'domainid']
},
{ {
api: 'enableStaticNat', api: 'enableStaticNat',
icon: 'plus-circle', icon: 'plus-circle',
label: 'Enable Static NAT', label: 'Enable Static NAT',
dataView: true, dataView: true,
args: ['ipaddressid', 'virtualmachineid', 'vmguestip'], args: ['ipaddressid', 'virtualmachineid', 'vmguestip'],
show: (record) => { return !record.virtualmachineid } show: (record) => { return !record.virtualmachineid && !record.issourcenat }
}, },
{ {
api: 'disableStaticNat', api: 'disableStaticNat',

View File

@ -0,0 +1,23 @@
<template>
<div>
TODO: Egress view for isolated network
</div>
</template>
<script>
export default {
name: '',
components: {
},
data () {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</style>

View File

@ -0,0 +1,23 @@
<template>
<div>
TODO: Egress view for SG
</div>
</template>
<script>
export default {
name: '',
components: {
},
data () {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</style>

View File

@ -0,0 +1,23 @@
<template>
<div>
TODO: Ingress view for SG
</div>
</template>
<script>
export default {
name: '',
components: {
},
data () {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</style>

View File

@ -0,0 +1,23 @@
<template>
<div>
TODO: IP configure view: firewall, pf, lb
</div>
</template>
<script>
export default {
name: '',
components: {
},
data () {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</style>

View File

@ -0,0 +1,23 @@
<template>
<div>
TODO: VPC configure view
</div>
</template>
<script>
export default {
name: '',
components: {
},
data () {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</style>

View File

@ -0,0 +1,23 @@
<template>
<div>
TODO: IP configure view: firewall, pf, lb
</div>
</template>
<script>
export default {
name: '',
components: {
},
data () {
return {
}
},
methods: {
}
}
</script>
<style scoped>
</style>