Files
napalm-vmware/CHANGELOG.md
T
Christian Manivong 6a66c05f5e
driver / lint (pull_request) Successful in 15s
driver / standard (pull_request) Failing after 17s
driver / lowest (pull_request) Successful in 34s
driver / test (3.12) (pull_request) Successful in 1m3s
driver / types (pull_request) Successful in 1m5s
driver / test (3.13) (pull_request) Successful in 1m2s
driver / build (pull_request) Successful in 24s
driver / security (pull_request) Successful in 1m8s
CI / driver (pull_request) Failing after 1m59s
driver / publish (pull_request) Skipped
feat: read the identity providers best effort; a refused list is federation not read (NetOrk/netork#662)
Listing the providers needs VcIdentityProviders.Manage besides .Read,
which allows changing the identity provider configuration. The verdict is
not assessed either way, so the driver no longer needs it: a 401/403 on
GET /api/vcenter/identity/providers yields the SSO domains plus one
source, "identity federation (not read)" (federation, unknown), instead
of an error. PermissionError stays for a refused domainList; any other
error of the REST read is raised as before. Part of 0.6.0, not yet tagged.
2026-11-29 22:41:02 +01:00

5.6 KiB
Raw Blame History

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[0.6.0] - 2026-11-29

Added

  • get_web_login_auth() on the vCenter driver (napalm-device-types 4.50.0's WebLoginAuthDict, NetOrk/netork#662): how people log in to the vSphere Client. Each identity provider of identity federation (GET /api/vcenter/identity/providers) is a source that decides itself (external), the default one first; each SSO domain the vSphere API names (UserDirectory.domainList: the system domain, localos, each AD or LDAP identity source) is a source whose second factor cannot be read (unknown): smart card and RSA SecurID live in SSO's authentication policy, which neither API exposes. Reading the providers is best effort: the vCenter lists them only to an account with VcIdentityProviders.Read and VcIdentityProviders.Manage. Manage allows changing the identity provider configuration, and the verdict is "not assessed" either way, so it is not required, and granting it is not advised. When the list is refused (401/403), the reading is the SSO domains plus one source, identity federation (not read) (federation, unknown). With both privileges the providers are named instead. PermissionError is raised only when domainList itself is refused; any other error of the REST read is raised as it is. The ESXi driver has no reader.

Changed

  • Requires napalm-device-types 4.50.0 or later (WebLoginAuthDict).

[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

  • resume_vm(name) on both drivers (napalm-device-types' HypervisorDriver, NetOrk/netork#2658): a VM suspend_vm suspended is powered on, which vSphere resumes from its saved state. A VM that is not suspended is refused.
  • get_clusters() on both drivers. The vCenter reports each cluster and each host added to a datacenter directly (as a cluster of one with no name), with the id <instanceUuid>/<MoRef>; an ESXi host reports itself, local, with its system UUID as the id. Each cluster lists its hosts (state, maintenance mode, CPU and memory; a disconnected host keeps only its name and state), the accessible datastores and the port groups its hosts see, each with the hosts that see it (NetOrk/netork#484).
  • create_vm_from_cloud_init(node=…): the host to create the VM on. A host that does not exist, is not connected, is in maintenance mode or does not see the datastore and port groups is refused with ValueError, before the image is downloaded (NetOrk/netork#1822).

Changed

  • Provisioning chooses the host before it downloads the image, so a request no host can take fails at once.
  • Python 3.12 is the floor (requires-python = ">=3.12"): netOrk runs every driver on 3.12, so 3.10 and 3.11 are no longer tested (NAPALM/driver-standard#6).
  • The floor on napalm is 5.1: older releases import pkg_resources, which a Python 3.12 venv no longer has.
  • The floor on PyYAML is 6.0.1: 6.0 has no Python 3.12 wheel and does not build there.

[0.3.0] - 2026-10-23

The first release on PyPI.

Changed

  • The driver follows the NAPALM driver standard (https://git.netork.io/NAPALM/driver-standard): CI on Gitea runs ruff, mypy, the tests on Python 3.10–3.13 and at the lowest declared versions, bandit, pip-audit and a build check, and a release tag publishes to PyPI. Python 3.10 remains the floor; requires napalm-device-types 4.21.1.
  • Provisioning fails, and removes the imported VM, when vSphere hands back fewer network adapters than NICs were asked for, instead of leaving a NIC unconfigured. A failed abort of the import lease is logged at debug level.

Added

  • VM provisioning (create_vm_from_cloud_init, destroy_vm, get_vm_status, get_network_targets, get_image_storages) from qcow2/raw cloud images: converted with qemu-img, imported over OVF/NFC, configured by cloud-init from a NoCloud seed ISO. Tested against vcsim.
  • reboot_host on ESXi, refused outside maintenance mode.
  • Declares open-vm-tools as the guest agent for provisioned VMs.

Changed

  • Breaking: get_device_warnings is gone; the driver reports facts and the caller names the warnings (netOrk #1111). get_hypervisor_hosts() gives each host's connection state (None on ESXi, which cannot tell), maintenance mode, configuration issues and managing vCenter (ESXi only); get_licenses() gives the assigned licenses with their edition key as edition. Requires napalm-device-types 4.14.0; version 0.2.0.
  • The guest agent is declared per guest OS (GUEST_AGENTS, napalm-device-types 3.0); VMware provisions Linux guests only and refuses any other guest_os.
  • The NoCloud network-config comes from napalm-device-types (provisioning.network_config), which Proxmox uses as well.

[0.1.0] - 2026-09-24

Added

  • vmware_esxi and vmware_vcenter drivers (hypervisor role) over the vSphere API: facts, interfaces, LLDP/CDP, environment, VMs, VM config, power actions, snapshots, datastores, port groups and raw device warnings.
  • tools/harvest.py and tools/sanitize.py to capture fixtures from real hosts.

Pending

  • Validation against real ESXi and vCenter installations; tested against vcsim only.