Repository navigation
Add NodeWriter.WakeOnLanAsync and a node wake CLI command - #27
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the Proxmox
POST /nodes/{node}/wakeonlancall 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 noproxyto, so the node the adapter points at sends the packet;nodeis the target. NeedsSys.PowerMgmton/nodes/{node}.proxmoxsharp node wake <node>.QemuWriterandPctWritermoves into an internalProxmoxForm(the third writer, as their comments asked).errors: {param: msg}) was printed as its Kiota type name. It is now rendered, for all writers.Verification
dotnet test ProxmoxSharp.slnx: 57 passed, 3 skipped (live integration). 18 newNodeWriterTestscases, written from the contract without reading the implementation, against a fake HTTP handler.The Homelab gate needs the first
0.2.3-preview.Npublished after this merges.