Skip to content

Add NodeWriter.WakeOnLanAsync and a node wake CLI command - #27

Merged
ChrisonSimtian merged 3 commits into
mainfrom
feat/node-wakeonlan
Nov 30, 2026
Merged

ChrisonSimtian merged 3 commits into
mainfrom
feat/node-wakeonlan

Conversation

@ChrisonSimtian

Copy link
Copy Markdown
Collaborator

Adds the Proxmox POST /nodes/{node}/wakeonlan call so the Homelab Ollama gate can wake desktop-01 through the API instead of a raw POST (Homelab spec PR: https://github.com/Chrison-Homelab/Homelab/pull/814).

What changed

  • ProxmoxSharp.Nodes.NodeWriter.WakeOnLanAsync(node): returns the MAC Proxmox used, or null if the response carried none. The method has no proxyto, so the node the adapter points at sends the packet; node is the target. Needs Sys.PowerMgmt on /nodes/{node}.
  • CLI: proxmoxsharp node wake <node>.
  • The form send shared by QemuWriter and PctWriter moves into an internal ProxmoxForm (the third writer, as their comments asked).
  • Fix: a nested Proxmox error field (errors: {param: msg}) was printed as its Kiota type name. It is now rendered, for all writers.
  • Library 0.2.2 -> 0.2.3, CLI 0.1.0 -> 0.1.1.

Verification

  • dotnet test ProxmoxSharp.slnx: 57 passed, 3 skipped (live integration). 18 new NodeWriterTests cases, written from the contract without reading the implementation, against a fake HTTP handler.
  • Not called live. The first real call will be the gate's, sent to hpe-01.

The Homelab gate needs the first 0.2.3-preview.N published after this merges.

POST /nodes/{node}/wakeonlan, sent to whichever node the adapter points at
(the method has no proxyto, so that node sends the packet). Hoists the form
send shared by QemuWriter/PctWriter into ProxmoxForm now a third writer uses
it. Library 0.2.3, CLI 0.1.1.
… name

Kiota keeps the per-parameter `errors` object as an UntypedNode, so the
message showed 'Microsoft.Kiota.Abstractions.Serialization.UntypedObject'
and dropped the detail. Applies to every writer through ProxmoxForm.
@ChrisonSimtian ChrisonSimtian added the enhancement New feature or request label Nov 29, 2026
@ChrisonSimtian
ChrisonSimtian merged commit b896ffb into main Nov 30, 2026
1 check passed
@ChrisonSimtian
ChrisonSimtian deleted the feat/node-wakeonlan branch November 30, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant