diff --git a/ui/src/config/section/network.js b/ui/src/config/section/network.js index e6faeb4bd70..c4173393af0 100644 --- a/ui/src/config/section/network.js +++ b/ui/src/config/section/network.js @@ -57,6 +57,19 @@ export default { popup: true, component: () => import('@/views/network/CreateNetwork.vue') }, + { + api: 'associateIpAddress', + icon: 'plus', + label: 'Acquire New IP', + dataView: true, + show: (record) => { return record && record.service && record.service.filter(x => x.name && ['StaticNat', 'SourceNat', 'Firewall', 'PortForwarding', 'Lb'].includes(x.name)).length > 0 }, + args: ['networkid'], + mapping: { + networkid: { + value: (record) => { return record.id } + } + } + }, { api: 'updateNetwork', icon: 'edit',