mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
network: add detail view component stubs
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
caab6b9c27
commit
72e529c338
@ -11,6 +11,18 @@ export default {
|
||||
resourceType: 'Network',
|
||||
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'],
|
||||
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: [
|
||||
{
|
||||
api: 'createNetwork',
|
||||
@ -51,6 +63,13 @@ export default {
|
||||
resourceType: 'Vpc',
|
||||
columns: ['name', 'state', 'displaytext', 'cidr', 'account', 'zonename'],
|
||||
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: [
|
||||
{
|
||||
api: 'createVPC',
|
||||
@ -90,6 +109,16 @@ export default {
|
||||
resourceType: 'SecurityGroup',
|
||||
columns: ['name', '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: [
|
||||
{
|
||||
api: 'createSecurityGroup',
|
||||
@ -116,6 +145,16 @@ export default {
|
||||
resourceType: 'PublicIpAddress',
|
||||
columns: ['ipaddress', 'state', 'associatednetworkname', 'virtualmachinename', '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: [
|
||||
{
|
||||
api: 'associateIpAddress',
|
||||
@ -124,13 +163,27 @@ export default {
|
||||
listView: true,
|
||||
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',
|
||||
icon: 'plus-circle',
|
||||
label: 'Enable Static NAT',
|
||||
dataView: true,
|
||||
args: ['ipaddressid', 'virtualmachineid', 'vmguestip'],
|
||||
show: (record) => { return !record.virtualmachineid }
|
||||
show: (record) => { return !record.virtualmachineid && !record.issourcenat }
|
||||
},
|
||||
{
|
||||
api: 'disableStaticNat',
|
||||
|
||||
23
ui/src/views/network/EgressConfigure.vue
Normal file
23
ui/src/views/network/EgressConfigure.vue
Normal 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>
|
||||
23
ui/src/views/network/EgressRuleConfigure.vue
Normal file
23
ui/src/views/network/EgressRuleConfigure.vue
Normal 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>
|
||||
23
ui/src/views/network/IngressRuleConfigure.vue
Normal file
23
ui/src/views/network/IngressRuleConfigure.vue
Normal 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>
|
||||
23
ui/src/views/network/IpConfigure.vue
Normal file
23
ui/src/views/network/IpConfigure.vue
Normal 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>
|
||||
23
ui/src/views/network/VpcConfigure.vue
Normal file
23
ui/src/views/network/VpcConfigure.vue
Normal 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>
|
||||
23
ui/src/views/network/VpnDetails.vue
Normal file
23
ui/src/views/network/VpnDetails.vue
Normal 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>
|
||||
Loading…
x
Reference in New Issue
Block a user