]> git.proxmox.com Git - pve-manager.git/commit
node: config: make wakeonlan a property string
authorChristian Ebner <c.ebner@proxmox.com>
Tue, 26 Mar 2024 09:16:56 +0000 (10:16 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 28 Mar 2024 16:27:47 +0000 (17:27 +0100)
commit3f83a0332ef5850c7b2324ca5958fa9b4b4dd61c
treeb56d738a58b7d5a358fa8881761c528d194ff81c
parent0bd4061da8c0e20522f81943c2202e5e4510b184
node: config: make wakeonlan a property string

Moves the wakeonlan property to be a property string, with current mac
address as default key. This allows to later add further optional
properties such as bind-interface and broadcast-address.

Adds the `get_wakeonlan_config` helper function to parse the string
when read from the node config.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
PVE/API2/Nodes.pm
PVE/NodeConfig.pm