The hypervisor contract gains resume_vm beside suspend_vm (NetOrk/netork#2658, napalm-device-types PR on the same branch).
What changes
resume_vm(name) on both drivers: suspend_vm uses SuspendVM_Task, after which the VM's runtime.powerState is suspended. vSphere has no resume call of its own: PowerOnVM_Task resumes a suspended VM from its saved state. A VM that is not suspended is refused with RuntimeError, so resume never starts a VM that was off.
get_vms() already reports such a VM as "suspended", which netOrk now offers Resume for.
README's capability table lists resume_vm.
Tests
tests/test_actions.py: resume powers a suspended VM on and waits for the task; a powered-on or powered-off VM is refused without a call. test_actions.py + test_parse_vms.py: 42 passed locally.
CHANGELOG under Unreleased; no version bump.
The hypervisor contract gains `resume_vm` beside `suspend_vm` (NetOrk/netork#2658, napalm-device-types PR on the same branch).
## What changes
- `resume_vm(name)` on both drivers: `suspend_vm` uses `SuspendVM_Task`, after which the VM's `runtime.powerState` is `suspended`. vSphere has no resume call of its own: `PowerOnVM_Task` resumes a suspended VM from its saved state. A VM that is not suspended is refused with `RuntimeError`, so resume never starts a VM that was off.
- `get_vms()` already reports such a VM as `"suspended"`, which netOrk now offers Resume for.
- README's capability table lists `resume_vm`.
## Tests
- `tests/test_actions.py`: resume powers a suspended VM on and waits for the task; a powered-on or powered-off VM is refused without a call. `test_actions.py` + `test_parse_vms.py`: 42 passed locally.
CHANGELOG under Unreleased; no version bump.
The hypervisor contract gained resume_vm beside suspend_vm. vSphere has no
call of its own for it: PowerOnVM_Task resumes a suspended VM from its saved
state. A VM that is not suspended is refused, so resume never starts a VM
that was off.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The hypervisor contract gains
resume_vmbesidesuspend_vm(NetOrk/netork#2658, napalm-device-types PR on the same branch).What changes
resume_vm(name)on both drivers:suspend_vmusesSuspendVM_Task, after which the VM'sruntime.powerStateissuspended. vSphere has no resume call of its own:PowerOnVM_Taskresumes a suspended VM from its saved state. A VM that is not suspended is refused withRuntimeError, so resume never starts a VM that was off.get_vms()already reports such a VM as"suspended", which netOrk now offers Resume for.resume_vm.Tests
tests/test_actions.py: resume powers a suspended VM on and waits for the task; a powered-on or powered-off VM is refused without a call.test_actions.py+test_parse_vms.py: 42 passed locally.CHANGELOG under Unreleased; no version bump.
Merged as part of the release PR #12 (0.4.0, merge commit
14a1b08, tag v0.4.0).Pull request closed