chore: adopt the NAPALM driver standard
driver / standard (pull_request) Successful in 14s
driver / lint (pull_request) Successful in 11s
driver / types (pull_request) Successful in 46s
driver / test (3.10) (pull_request) Successful in 50s
driver / test (3.11) (pull_request) Successful in 48s
driver / test (3.12) (pull_request) Successful in 49s
driver / test (3.13) (pull_request) Successful in 42s
driver / lowest (pull_request) Successful in 24s
driver / security (pull_request) Successful in 46s
driver / build (pull_request) Successful in 22s
CI / driver (pull_request) Successful in 5m52s
driver / publish (pull_request) Skipped

- CI moves to .gitea/workflows/ci.yml and calls the shared driver workflow
  of NAPALM/driver-standard; .github/ is gone.
- setuptools>=77 with the SPDX license string, no License classifier,
  Python 3.13 classifier, napalm-device-types>=4.21.1, a dev extra with
  floors, Issues and Changelog links; README installs from PyPI and links
  pyVmomi on PyPI.
- mypy strict for the package (the blanket ignore_missing_imports is now
  limited to napalm and yaml); exempt for now (35 errors): _inventory,
  _session, _tasks, base, esxi, parse.environment, parse.snapshots,
  parse.vm_devices, provision.seed, provision.transfer, provisioning.
  Recorded in the quality baseline with the long and complex functions.
- Coverage floor 97 % (measured 97.11 %).
This commit is contained in:
Christian Manivong committed 2026-10-23 08:40:42 +02:00
1 parent 06b446934f
commit 24617b7f82
6 files changed
+103 -60

No files matched your search

+8 -3
View File
@@ -1,7 +1,7 @@
# napalm-vmware
NAPALM drivers for VMware vSphere, speaking the vSphere API through
[pyVmomi](https://github.com/vmware/pyvmomi):
[pyVmomi](https://pypi.org/project/pyvmomi/):
| Driver | Endpoint | Device in netOrk |
|---|---|---|
@@ -57,8 +57,10 @@ Unverified assumptions, to be checked against real hardware:
## Install
Python 3.10 or later.
```bash
pip install -e vendor/napalm-device-types/ -e vendor/napalm-vmware/
pip install napalm-vmware
```
## Usage
@@ -86,8 +88,11 @@ by two VMs is refused rather than guessed.
## Tests
The rules are in [STANDARDS.md](https://git.netork.io/NAPALM/driver-standard/src/branch/main/STANDARDS.md).
```bash
pytest # unit tests, no network
python -m venv .venv && .venv/bin/pip install -e ".[dev]"
.venv/bin/pytest --cov # unit tests, no network
docker run -d --rm -p 127.0.0.1:8989:8989 vmware/vcsim -l 0.0.0.0:8989
docker run -d --rm -p 127.0.0.1:8990:8989 vmware/vcsim -esx -l 0.0.0.0:8989
VCSIM_VCENTER_PORT=8989 VCSIM_ESXI_PORT=8990 pytest -m vcsim