Bug 2004029

Summary: [RFE] Add an CLI to get the names of Virtual functions
Product: Red Hat Enterprise Linux 8 Reporter: Karthik Sundaravel <ksundara>
Component: NetworkManagerAssignee: NetworkManager Development Team <nm-team>
Status: CLOSED NOTABUG QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 8.4CC: atragler, bgalvani, fge, lrintel, rkhan, sukulkar, till
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-20 05:05:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Karthik Sundaravel 2021-09-14 11:52:08 UTC
Using the below command, SR-IOV shall be enabled on eno2 and the VFs shall be configured for mac, max-tx-rate, min-tx-rate, vlan, qos, spoofcheck, trust.

nmcli con add type 802-3-ethernet con-name EthernetPF ifname eno2 sriov.total-vfs 4 sriov.vfs '0 mac=00:11:22:33:44:55 vlans=10.5, 1 trust=true spoof-check=false'

os-net-config needs a cli to get the interface names of the created VFs, so that the device names could be used for configuring the VFs with MTU, promisc, ipaddress, bonds.

Comment 2 Gris Ge 2021-09-17 09:13:25 UTC
Hi Karthik,


The nmcli is not designed to provide information regarding PF/VF relationship. Could you try:

 * Find out the VF MAC address of `ip -d -j link show <pf_nic_name>`.
 * Find out the VF name for contain MAC address via `ip -j link show`.

Comment 3 Karthik Sundaravel 2021-09-20 05:04:49 UTC
Hi Gris

Thanks for the inputs. I'll close the BZ.