Skip to content

Commit b725d3c

Browse files
committed
add temporary filter for quarantine ips in public address list view
1 parent 2359061 commit b725d3c

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

ui/public/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2879,6 +2879,7 @@
28792879
"label.bucket.delete": "Delete Bucket",
28802880
"label.quotagib": "Quota in GiB",
28812881
"label.quotagb": "Quota in GB",
2882+
"label.quarantined": "Quarantined",
28822883
"label.edgecluster": "Edge Cluster",
28832884
"label.encryption": "Encryption",
28842885
"label.etcdnodes": "Number of etcd nodes",

ui/src/config/section/network.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ export default {
779779
return fields
780780
},
781781
details: ['ipaddress', 'id', 'associatednetworkname', 'networkid', 'issourcenat', 'isstaticnat', 'virtualmachinename', 'vmipaddress', 'vlan', 'allocated', 'account', 'domain', 'zonename'],
782-
filters: ['allocated', 'reserved', 'free'],
782+
filters: ['allocated', 'reserved', 'free', 'quarantined'],
783783
component: shallowRef(() => import('@/views/network/PublicIpResource.vue')),
784784
tabs: [{
785785
name: 'details',

ui/src/views/AutogenView.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,10 @@ export default {
10301030
}
10311031
}
10321032
1033+
if (this.apiName === 'listPublicIpAddresses' && this.$route.query.filter === 'quarantined') {
1034+
this.apiName = 'listQuarantinedIps'
1035+
}
1036+
10331037
if (this.apiName === '' || this.apiName === undefined) {
10341038
return
10351039
}
@@ -1972,6 +1976,9 @@ export default {
19721976
if (filter !== 'all') {
19731977
query.state = filter
19741978
}
1979+
if (filter === 'quarantined') {
1980+
delete query.state
1981+
}
19751982
} else if (this.$route.name === 'storagepool') {
19761983
if (filter === 'all') {
19771984
delete query.status

0 commit comments

Comments
 (0)