Skip to content

Commit 0204cb7

Browse files
authored
ui: show guest networks for guest vlans list (#9554)
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent b4325ec commit 0204cb7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ui/src/components/view/ListView.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,12 @@
240240
<template v-if="column.key === 'guestnetworkname'">
241241
<router-link :to="{ path: '/guestnetwork/' + record.guestnetworkid }">{{ text }}</router-link>
242242
</template>
243+
<template v-if="column.key === 'guest.networks' && record.network">
244+
<template v-for="(item, idx) in record.network" :key="idx">
245+
<router-link :to="{ path: '/guestnetwork/' + item.id }">{{ item.name }}</router-link>
246+
<span v-if="idx < (record.network.length - 1)">, </span>
247+
</template>
248+
</template>
243249
<template v-if="column.key === 'associatednetworkname'">
244250
<router-link :to="{ path: '/guestnetwork/' + record.associatednetworkid }">{{ text }}</router-link>
245251
</template>

ui/src/config/section/network.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ export default {
13641364
permission: ['listGuestVlans'],
13651365
resourceType: 'GuestVlan',
13661366
filters: ['allocatedonly', 'all'],
1367-
columns: ['vlan', 'allocationstate', 'physicalnetworkname', 'taken', 'account', 'project', 'domain', 'zonename'],
1367+
columns: ['vlan', 'allocationstate', 'physicalnetworkname', 'taken', 'account', 'project', 'domain', 'zonename', 'guest.networks'],
13681368
details: ['vlan', 'allocationstate', 'physicalnetworkname', 'taken', 'account', 'project', 'domain', 'isdedicated', 'zonename'],
13691369
searchFilters: ['zoneid'],
13701370
tabs: [{

0 commit comments

Comments
 (0)