3 Commits
Author SHA1 Message Date
christianmanivong e1677bebb2 Merge pull request 'chore(release): 0.5.0' (#13) from feature/pve93-2728 into main
driver / types (push) Successful in 1m8s
driver / standard (push) Successful in 17s
driver / lint (push) Successful in 16s
driver / test (3.12) (push) Successful in 1m7s
driver / test (3.13) (push) Successful in 1m1s
driver / lowest (push) Successful in 36s
driver / build (push) Successful in 30s
driver / security (push) Successful in 1m12s
driver / publish (push) Successful in 34s
CI / driver (push) Successful in 6m46s
2026-11-26 17:12:08 +00:00
Christian Manivong ebf437dac6 chore(release): 0.5.0
driver / standard (pull_request) Successful in 18s
driver / lint (pull_request) Successful in 14s
driver / types (pull_request) Successful in 1m7s
driver / test (3.12) (pull_request) Successful in 1m9s
driver / test (3.13) (pull_request) Successful in 1m2s
driver / lowest (pull_request) Successful in 32s
driver / build (pull_request) Successful in 30s
driver / security (pull_request) Successful in 1m8s
CI / driver (pull_request) Successful in 2m49s
driver / publish (pull_request) Skipped
2026-11-26 18:05:27 +01:00
Christian Manivong 005575d18e feat: get_vms reports the instance UUID as the guest uid (NetOrk/netork#2728) 2026-11-26 17:26:57 +01:00
4 changed files with 15 additions and 1 deletions

No files matched your search

+7
View File
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.5.0] - 2026-11-26
### Added
- `get_vms()` reports each VM's `uid` (napalm-device-types 4.44.0's `VMDict.uid`,
NetOrk/netork#2728): its instance UUID, which already survives a migration and a
restore. netOrk knows a guest by `uid` on every hypervisor that has one.
## [0.4.0] - 2026-11-25
### Added
+2
View File
@@ -87,6 +87,8 @@ def _vm(
return {
"name": vm.get("name", ""),
"vmid": vm["config.instanceUuid"],
# VMDict.uid: the instance UUID already survives a migration and a restore.
"uid": vm["config.instanceUuid"],
"moref": vm["_moref"],
"type": "vm",
"status": _STATUS.get(vm.get("runtime.powerState", ""), "unknown"),
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "napalm-vmware"
version = "0.4.0"
version = "0.5.0"
description = "NAPALM drivers for VMware ESXi hosts and vCenter Server (vSphere API via pyVmomi)"
readme = "README.md"
requires-python = ">=3.12"
+5
View File
@@ -33,6 +33,11 @@ class TestVmListFromVcsim:
assert vm["node"] == "localhost.localdomain"
assert vm["type"] == "vm"
def test_the_uid_is_the_instance_uuid(self, esxi_data, vm0):
# VMDict.uid: an identity that survives a migration and a restore; vSphere's
# instance UUID is one (NetOrk/netork#2728).
assert _vms(esxi_data)[0]["uid"] == vm0["config.instanceUuid"]
def test_vcenter_node_is_the_esxi_host(self, vcenter_data):
nodes = {vm["name"]: vm["node"] for vm in _vms(vcenter_data)}
assert nodes["DC0_H0_VM0"] == "DC0_H0"