Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
143 changes: 141 additions & 2 deletions ui/public/locales/en.json

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions ui/src/assets/icons/tungsten.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion ui/src/components/view/ListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@
<router-link :to="{ path: $route.path + '/' + record.id }" v-if="record.id">{{ $t(text.toLowerCase()) }}</router-link>
<router-link :to="{ path: $route.path + '/' + record.name }" v-else>{{ $t(text.toLowerCase()) }}</router-link>
</span>
<span v-else-if="$route.path.startsWith('/tungstenfabric')">
<router-link :to="{ path: $route.path + '/' + record.id }" v-if="record.id">{{ $t(text.toLowerCase()) }}</router-link>
<router-link :to="{ path: $route.path + '/' + record.name }" v-else>{{ $t(text.toLowerCase()) }}</router-link>
</span>
<span v-else>
<router-link :to="{ path: $route.path + '/' + record.id }" v-if="record.id">{{ text }}</router-link>
<router-link :to="{ path: $route.path + '/' + record.name }" v-else>{{ text }}</router-link>
Expand Down Expand Up @@ -464,7 +468,8 @@ export default {
'/template', '/iso',
'/project', '/account',
'/zone', '/pod', '/cluster', '/host', '/storagepool', '/imagestore', '/systemvm', '/router', '/ilbvm', '/annotation',
'/computeoffering', '/systemoffering', '/diskoffering', '/backupoffering', '/networkoffering', '/vpcoffering'].join('|'))
'/computeoffering', '/systemoffering', '/diskoffering', '/backupoffering', '/networkoffering', '/vpcoffering',
'/tungstenfabric'].join('|'))
.test(this.$route.path)
},
enableGroupAction () {
Expand Down
145 changes: 145 additions & 0 deletions ui/src/config/section/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// under the License.

import store from '@/store'
import tungsten from '@/assets/icons/tungsten.svg?inline'

export default {
name: 'network',
Expand Down Expand Up @@ -57,6 +58,9 @@ export default {
name: 'guest.ip.range',
component: () => import('@/views/network/GuestIpRanges.vue'),
show: (record) => { return 'listVlanIpRanges' in store.getters.apis && (record.type === 'Shared' || (record.service && record.service.filter(x => x.name === 'SourceNat').count === 0)) }
}, {
name: 'tungsten.router.table',
component: () => import('@/views/network/tungsten/TungstenNetworkRouterTable.vue')
},
{
name: 'comments',
Expand Down Expand Up @@ -672,6 +676,147 @@ export default {
groupMap: (selection) => { return selection.map(x => { return { id: x } }) }
}
]
},
{
name: 'tungstenfabric',
title: 'label.tungsten.fabric',
icon: tungsten,
permission: ['listTungstenFabricProviders'],
columns: [
{
field: 'name',
customTitle: 'tungsten.fabric.provider'
},
'zonename'
],
tabs: [
{
name: 'tungsten.fabric',
component: () => import('@/views/network/tungsten/TungstenFabric.vue')
},
{
name: 'tungsten.fabric.routing',
component: () => import('@/views/network/tungsten/TungstenFabricRouting.vue')
}
]
},
{
name: 'tungstennetworkroutertable',
title: 'label.tungsten.network.router.table',
icon: tungsten,
hidden: true,
permission: ['listTungstenFabricNetworkRouteTable'],
details: ['uuid', 'name'],
tabs: [
{
name: 'details',
component: () => import('@/components/view/DetailsTab.vue')
},
{
name: 'tungsten.static.routes',
component: () => import('@/views/network/tungsten/TungstenNetworkStaticRoute.vue')
}
],
actions: [
{
api: 'addTungstenFabricNetworkStaticRoute',
icon: 'plus',
label: 'label.add.tungsten.network.static.route',
dataView: true,
popup: true,
component: () => import('@/views/network/tungsten/AddTungstenNetworkStaticRoute.vue')
},
{
api: 'removeTungstenFabricNetworkRouteTable',
icon: 'delete',
label: 'label.remove.network.route.table',
message: 'label.confirm.remove.network.route.table',
dataView: true
}
]
},
{
name: 'tungsteninterfaceroutertable',
title: 'label.tungsten.interface.router.table',
icon: tungsten,
hidden: true,
permission: ['listTungstenFabricInterfaceRouteTable'],
details: ['uuid', 'name'],
tabs: [
{
name: 'details',
component: () => import('@/components/view/DetailsTab.vue')
},
{
name: 'tungsten.static.routes',
component: () => import('@/views/network/tungsten/TungstenInterfaceStaticRoute.vue')
}
],
actions: [
{
api: 'addTungstenFabricInterfaceStaticRoute',
icon: 'plus',
label: 'label.add.tungsten.interface.static.route',
dataView: true,
popup: true,
component: () => import('@/views/network/tungsten/AddTungstenInterfaceStaticRoute.vue')
},
{
api: 'removeTungstenFabricInterfaceRouteTable',
icon: 'delete',
label: 'label.remove.interface.route.table',
message: 'label.confirm.remove.interface.route.table',
dataView: true
}
]
},
{
name: 'tungstenpolicy',
title: 'label.network.policy',
icon: tungsten,
hidden: true,
permission: ['listTungstenFabricPolicy'],
details: ['name'],
tabs: [
{
name: 'details',
component: () => import('@/components/view/DetailsTab.vue')
},
{
name: 'rule',
component: () => import('@/views/network/tungsten/TungstenFabricPolicyRule.vue')
},
{
name: 'tag',
component: () => import('@/views/network/tungsten/TungstenFabricPolicyTag.vue')
}
],
actions: [
{
api: 'applyTungstenFabricPolicy',
icon: 'form',
label: 'label.apply.tungsten.network.policy',
dataView: true,
args: ['networkuuid', 'majorsequence', 'minorsequence']
},
{
api: 'removeTungstenFabricPolicy',
icon: 'close',
label: 'label.remove.tungsten.network.policy',
dataView: true,
args: ['networkuuid']
},
{
api: 'deleteTungstenFabricPolicy',
icon: 'delete',
label: 'label.delete.tungsten.policy',
message: 'label.confirm.delete.tungsten.policy',
dataView: true,
mapping: {
policyuuid: (record) => record.uuid
}
}
]
}
]
}
18 changes: 18 additions & 0 deletions ui/src/style/vars.less
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,22 @@ a {
color: @primary-color;
}

.custom-icon path {
fill: @navigation-text-color;
}

.ant-menu-light {
.ant-menu-item:hover > a,
.ant-menu-submenu-title:hover > a,
.ant-menu-submenu-title:hover,
.ant-menu-item:hover,
.ant-menu-submenu-title:hover {
.custom-icon path {
fill: @primary-color;
}
}
}

.ant-menu-vertical .ant-menu-item,
.ant-menu-vertical-left .ant-menu-item,
.ant-menu-vertical-right .ant-menu-item,
Expand Down Expand Up @@ -206,6 +222,7 @@ a {

.custom-icon path {
color: @primary-color;
fill: @primary-color;
}
}

Expand Down Expand Up @@ -238,6 +255,7 @@ a {

.custom-icon path {
color: @primary-color;
fill: @primary-color;
}
}

Expand Down
2 changes: 1 addition & 1 deletion ui/src/views/infra/zone/ZoneWizard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default {
},
{
title: 'label.network',
step: ['physicalNetwork', 'netscaler', 'pod', 'guestTraffic', 'storageTraffic', 'publicTraffic'],
step: ['physicalNetwork', 'tungsten', 'netscaler', 'pod', 'guestTraffic', 'storageTraffic', 'publicTraffic'],
description: this.$t('message.network.description'),
hint: this.$t('message.network.hint')
},
Expand Down
Loading