fix(striker-ui-api): ignore vnet/virbr when selecting network interfaces

main
Tsu-ba-me 1 year ago
parent 99a82e3d75
commit d90d2bc7c5
  1. 1
      striker-ui-api/src/lib/request_handlers/network-interface/getNetworkInterface.ts

@ -26,6 +26,7 @@ export const getNetworkInterface = buildGetRequestHandler(
ROW_NUMBER() OVER(ORDER BY modified_date ASC) AS network_interface_order ROW_NUMBER() OVER(ORDER BY modified_date ASC) AS network_interface_order
FROM network_interfaces FROM network_interfaces
WHERE network_interface_operational != '${DELETED}' WHERE network_interface_operational != '${DELETED}'
AND network_interface_name NOT SIMILAR TO '(vnet\\d+|virbr\\d+-nic)%'
AND network_interface_host_uuid = '${hostUUID}';`; AND network_interface_host_uuid = '${hostUUID}';`;
if (buildQueryOptions) { if (buildQueryOptions) {

Loading…
Cancel
Save