pandae c7512355e3 Add PciAddr in VF Pod Info
This commit adds PCI address field to Pod information output by the
following APIs.
/metrics
/device/{device_name}
/pci-addr/{pci-addr}

This field is already present in the JSON format output.
It's missed in the OpenMetrics format output.

Earlier VF Pod Output -
network_interface_vf_kube_pod_info{namespace="default",
pod="sriov-pod-demo1",container="test-sriovdp-netdev-single-pod-0",
resource="intel.com/pci_sriov_net_group0_data1",
device="net1",vf="1",address="ae:f7:4c:38:0f:5d"}

Updated Output -
network_interface_vf_kube_pod_info{namespace="default",
pod="sriov-pod-demo1",container="test-sriovdp-netdev-single-pod-0",
resource="intel.com/pci_sriov_net_group0_data1",device="net1",
vf="1",pciaddr="0000:8a:0a.0",address="ae:f7:4c:38:0f:5d"}

Please note, pciaddr field added to the output above

App version is upgraded with this commit
Minor change to How Broadcast address is read is also changed in
device_readers.go file

Test Plan:
PASS : GO linting
PASS : API test
PASS : Unit test

Story: 2010918
Task: 49452

Change-Id: Ic5b7b0fddf68a28e44f06ea2a8d44774558d0818
Signed-off-by: Aman Pandae <amanpandae.mothukuri@windriver.com>
2024-01-26 08:24:12 -05:00
..
2024-01-26 08:24:12 -05:00