Skip to content

Commit 185e604

Browse files
network: allowed network to show add IP address button
Signed-off-by: Rohit Yadav <[email protected]>
1 parent ca8c77f commit 185e604

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ui/src/config/section/network.js

+13
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,19 @@ export default {
5757
popup: true,
5858
component: () => import('@/views/network/CreateNetwork.vue')
5959
},
60+
{
61+
api: 'associateIpAddress',
62+
icon: 'plus',
63+
label: 'Acquire New IP',
64+
dataView: true,
65+
show: (record) => { return record && record.service && record.service.filter(x => x.name && ['StaticNat', 'SourceNat', 'Firewall', 'PortForwarding', 'Lb'].includes(x.name)).length > 0 },
66+
args: ['networkid'],
67+
mapping: {
68+
networkid: {
69+
value: (record) => { return record.id }
70+
}
71+
}
72+
},
6073
{
6174
api: 'updateNetwork',
6275
icon: 'edit',

0 commit comments

Comments
 (0)