diff --git a/pkg/harvester/components/FilterBySriov.vue b/pkg/harvester/components/FilterBySriov.vue index a52bc610..2ff3d26b 100644 --- a/pkg/harvester/components/FilterBySriov.vue +++ b/pkg/harvester/components/FilterBySriov.vue @@ -29,6 +29,8 @@ export default { required: true, }, + + }, data() { diff --git a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/DeviceList.vue b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/DeviceList.vue index 84f5b203..16afa2ed 100644 --- a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/DeviceList.vue +++ b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachinePciDevices/DeviceList.vue @@ -31,6 +31,7 @@ export default { const _hash = { pciclaims: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.PCI_CLAIM }), sriovs: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.SR_IOV }), + srigpuovs: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.SR_IOVGPU_DEVICE }), }; await allHash(_hash); @@ -106,19 +107,27 @@ export default { }, computed: { - parentSriovOptions() { + allSriovs() { const inStore = this.$store.getters['currentProduct'].inStore; - const allSriovs = this.$store.getters[`${ inStore }/all`](HCI.SR_IOV) || []; - - return allSriovs.map((sriov) => { - return sriov.id; - }); + return this.$store.getters[`${ inStore }/all`](HCI.SR_IOV) || []; + }, + allSriovGPUs() { + const inStore = this.$store.getters['currentProduct'].inStore; + return this.$store.getters[`${ inStore }/all`](HCI.SR_IOVGPU_DEVICE) || []; + }, + parentSriovOptions() { + return this.allSriovs.map((sriov) => sriov.id); + }, + parentSriovGPUOptions() { + return this.allSriovGPUs.map((sriovgpu) => sriovgpu.id); }, parentSriovLabel() { return HCI_ANNOTATIONS.PARENT_SRIOV; - } + }, + parentSriovGPULabel() { + return HCI_ANNOTATIONS.PARENT_SRIOV_GPU; + }, }, - methods: { enableGroup(rows = []) { const row = rows[0]; @@ -206,6 +215,14 @@ export default { :rows="rows" @change-rows="changeRows" /> + diff --git a/pkg/harvester/l10n/en-us.yaml b/pkg/harvester/l10n/en-us.yaml index fc69790c..aee3becf 100644 --- a/pkg/harvester/l10n/en-us.yaml +++ b/pkg/harvester/l10n/en-us.yaml @@ -1832,7 +1832,8 @@ harvester: numVFs: Number Of Virtual Functions vfAddresses: Virtual Functions Addresses showMore: Show More - parentSriov: Filter By Parent SR-IOV + parentSriov: Filter By Parent SR-IOV Netork Device + parentSriovGPU: Filter By Parent SR-IOV GPU Device sriovgpu: label: SR-IOV GPU Devices