Skip to content

Commit

Permalink
Merge pull request #1946 from pcbailey/bug-default-network-missing-fo…
Browse files Browse the repository at this point in the history
…r-it-vms-vm-overview

CNV-41209: Show default network in VM Overview for InstanceType VMs
  • Loading branch information
openshift-merge-bot[bot] committed May 15, 2024
2 parents 3ebb799 + 6b6e258 commit bfbd489
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { V1VirtualMachine, V1VirtualMachineInstance } from '@kubevirt-ui/kubevirt-api/kubevirt';
import { getInterfaces, getNetworks } from '@kubevirt-utils/resources/vm';
import { getInterfacesAndNetworks } from '@kubevirt-utils/resources/vm/utils/network/utils';

import { InterfacesData } from '../utils/types';

Expand All @@ -12,8 +12,7 @@ const useVirtualMachinesOverviewTabInterfacesData: UseVirtualMachinesOverviewTab
vm: V1VirtualMachine,
vmi: V1VirtualMachineInstance,
) => {
const networks = getNetworks(vm);
const interfaces = getInterfaces(vm);
const { interfaces, networks } = getInterfacesAndNetworks(vm, vmi);
const interfacesIPs = vmi?.status?.interfaces?.filter((iface) => !!iface.name) || [];

const networkInterfacesData = interfaces?.map((iface) => {
Expand Down

0 comments on commit bfbd489

Please sign in to comment.