Skip to content

Commit 9529cf0

Browse files
vishesh92dhslove
authored andcommitted
UI: Add button to show public IPs associated with vlanid (apache#8717)
1 parent 7bf2223 commit 9529cf0

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ export default {
4242
name: 'guestnetwork',
4343
title: 'label.guest.networks',
4444
param: 'physicalnetworkid'
45+
},
46+
{
47+
name: 'publicip',
48+
title: 'label.public.ip.addresses',
49+
param: 'physicalnetworkid'
4550
}],
4651
actions: [
4752
{

ui/src/views/infra/network/IpRangesTabPublic.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454
<div
5555
class="actions"
5656
style="text-align: right" >
57+
<router-link :to="{ name: 'publicip', query: { vlanid: record.id }}" target="_blank">
58+
<tooltip-button
59+
tooltipPlacement="bottom"
60+
:tooltip="$t('label.view') + ' ' + $t('label.public.ip.addresses')"
61+
icon="environment-outlined"/>
62+
</router-link>
5763
<tooltip-button
5864
v-if="!record.domain && !basicGuestNetwork && record.gateway && !record.ip6gateway"
5965
tooltipPlacement="bottom"
@@ -748,4 +754,4 @@ export default {
748754
.pagination {
749755
margin-top: 20px;
750756
}
751-
</style>
757+
</style>

0 commit comments

Comments
 (0)