feat(inventory): inherit hardware attributes for ipvlan and macvlan d… #417
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 261 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.333
Real PR Conversation Timeline
1 comments
"Review active on #417"
general
weight: 0.35
aojea
What type of PR is this?
/kind feature
What this PR does / why we need it:
Virtual interfaces such as ipvlan and macvlan currently lack the hardware attributes of their underlying physical NIC, limiting topology-aware device selection.
This PR resolves physical parents through netlink parent indices and copies PCI vendor, product, subsystem, NUMA node, and PCIe root attributes to ipvlan/macvlan devices. Each virtual interface retains its independent DRA device identity and interface attributes.
Parent resolution supports nested ipvlan/macvlan/VLAN chains and stops safely when parents are missing or cycles are detected. Attribute inheritance uses an explicit allowlist and deep copies attribute values.
Which issue(s) this PR is related to:
Fixes #261
Special notes for your reviewer:
Testing completed:
TestInheritParentAttributes, covering ipvlan/macvlan, nested parent chains, VLAN parents, missing parents, cycles, and veth exclusion. The tests also verify shared-parent handling and attribute isolation.pkg/inventorytest suite, including race detection.1), and PCIe root (pci0000:bf).Does this PR introduce a user-facing change?
``
release-note
``DRANET now publishes the underlying physical NIC's PCI vendor, product, subsystem, NUMA node, and PCIe root attributes for ipvlan and macvlan devices, enabling topology-aware device selection.