]> git.proxmox.com Git - pve-cluster.git/commit
Enable support for up to 8 corosync links
authorStefan Reiter <s.reiter@proxmox.com>
Thu, 9 Jan 2020 15:31:34 +0000 (16:31 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 5 Feb 2020 09:38:28 +0000 (10:38 +0100)
commit8ef581e4181b7928487e9ad7c07af66b8ee85b89
treecc1d21e583f0536252a344df7f0ee0dd7c645ba7
parentb2cae1f8453cb2bed4ff29e1cfa38f601cf633d9
Enable support for up to 8 corosync links

add_corosync_link_properties/extract_corosync_link_args are introduced
as helpers to avoid hardcoding links in parameters=>properties on
several occasions, while still providing autocompletion with pvecm by
being seperate parameters instead of an array.

Maximum number of links is given as constant MAX_LINK_COUNT, should it
change in the future.

All necessary functions have been updated to
use the new $links array format instead of seperate $link0/$link1
parameters, and call sites changed accordingly.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
data/PVE/API2/ClusterConfig.pm
data/PVE/CLI/pvecm.pm
data/PVE/Cluster/Setup.pm
data/PVE/Corosync.pm