Skip to content

vmware: name mgmt/data-plane interfaces natively for ACOS/TMOS VMs - #4

Merged
dirtycache merged 1 commit into
mainfrom
wip/platform-interface-names
Jul 29, 2026
Merged

vmware: name mgmt/data-plane interfaces natively for ACOS/TMOS VMs#4
dirtycache merged 1 commit into
mainfrom
wip/platform-interface-names

Conversation

@dirtycache

Copy link
Copy Markdown
Owner

Summary

  • Names interfaces using each platform's own native identifiers (mgmt/1.1/1.2... for TMOS, management/ethernet1/ethernet2... for ACOS) instead of the generic vNIC N vSphere label, based on vNIC slot order — confirmed stable via direct MAC cross-check against 4 live VMs (aXAPI + iControl REST).
  • Fixes a real conflict with netbox-device-onboard.py's ACOS/TMOS collectors: they move a vNIC's MAC onto a differently-named interface, which caused netbox-sync's MAC-based matching fallback to rename it right back to vNIC N (...) on its next 5-minute run, clobbering the onboarder's data.
  • No new config option — this is a fixed platform/OVA convention, not something to make tunable.

Test plan

  • py_compile clean
  • Dry-run (-n) against production vCenter+NetBox: zero errors/exceptions
  • All 55 attribute 'name' changed lines confined to acos/tmos-platform VMs (one-time rename to native names)
  • thn01a/thn01b (already onboarded via the new ACOS collector) show zero changes — confirms convergence, not a fight
  • Spot-checked a non-acos/tmos VM (ubuntusrv02) — unaffected, still gets plain vNIC N naming

netbox-device-onboard.py's ACOS/TMOS collectors write interface data using
each platform's own native names (e.g. 'ethernet1', '1.1', 'mgmt') and move
the vNIC's MAC address onto that interface. netbox-sync's interface matching
falls back to MAC address when names don't match, so on its next run it would
find that MAC sitting on the differently-named interface, decide that WAS the
vSphere-reported vNIC, and rename it back to 'vNIC N (...)' - clobbering the
onboarder's data every 5 minutes.

Fixes this at the root: for VMs whose already-resolved platform is ACOS or
TMOS, name each interface using the vNIC's slot order (slot 1 = mgmt/
management, slot N = the platform's own data-plane naming) instead of the
generic 'vNIC N' vSphere label, and skip appending the portgroup/VLAN name
suffix for these platforms so the name matches exactly what the other tool
looks up. Confirmed via direct MAC cross-check (aXAPI interface/management +
interface/ethernet; iControl REST mgmt + 1.N) that vNIC slot order is stable
and platform-standard across every A10 vThunder and F5 BIG-IP VE instance in
this environment.

Verified with a dry-run against production data: zero errors, and every
'attribute name changed' transition is confined to the acos/tmos-platform
VMs (thn01a/thn01b already correctly named from prior onboarder testing show
no changes at all; bigip-ve-001..007/f50xa/f50xb/ltm01a/ltm01b/ltm02a/ltm02b
get a one-time rename to native names). No other VM type is affected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant