From b725d3c5a55e5d51f9efa3fd72aca9e52ba30651 Mon Sep 17 00:00:00 2001 From: Manoj Kumar Date: Thu, 12 Mar 2026 17:56:15 +0530 Subject: [PATCH] add temporary filter for quarantine ips in public address list view --- ui/public/locales/en.json | 1 + ui/src/config/section/network.js | 2 +- ui/src/views/AutogenView.vue | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ui/public/locales/en.json b/ui/public/locales/en.json index 82fa22b5333e..c7e22305df6c 100644 --- a/ui/public/locales/en.json +++ b/ui/public/locales/en.json @@ -2879,6 +2879,7 @@ "label.bucket.delete": "Delete Bucket", "label.quotagib": "Quota in GiB", "label.quotagb": "Quota in GB", +"label.quarantined": "Quarantined", "label.edgecluster": "Edge Cluster", "label.encryption": "Encryption", "label.etcdnodes": "Number of etcd nodes", diff --git a/ui/src/config/section/network.js b/ui/src/config/section/network.js index acc7424c9f0c..10f9d58fe7ed 100644 --- a/ui/src/config/section/network.js +++ b/ui/src/config/section/network.js @@ -779,7 +779,7 @@ export default { return fields }, details: ['ipaddress', 'id', 'associatednetworkname', 'networkid', 'issourcenat', 'isstaticnat', 'virtualmachinename', 'vmipaddress', 'vlan', 'allocated', 'account', 'domain', 'zonename'], - filters: ['allocated', 'reserved', 'free'], + filters: ['allocated', 'reserved', 'free', 'quarantined'], component: shallowRef(() => import('@/views/network/PublicIpResource.vue')), tabs: [{ name: 'details', diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index a5c0be3d4884..abe962531383 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -1030,6 +1030,10 @@ export default { } } + if (this.apiName === 'listPublicIpAddresses' && this.$route.query.filter === 'quarantined') { + this.apiName = 'listQuarantinedIps' + } + if (this.apiName === '' || this.apiName === undefined) { return } @@ -1972,6 +1976,9 @@ export default { if (filter !== 'all') { query.state = filter } + if (filter === 'quarantined') { + delete query.state + } } else if (this.$route.name === 'storagepool') { if (filter === 'all') { delete query.status