]> git.proxmox.com Git - pve-cluster.git/commit
Add functions to resolve hostnames and iterate corosync nodes
authorStefan Reiter <s.reiter@proxmox.com>
Mon, 1 Jul 2019 15:22:14 +0000 (17:22 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 2 Jul 2019 09:18:01 +0000 (11:18 +0200)
commit5c82c8c84c178fd54d1a610d8f4c718a28f4df14
tree984b4209e78c3db4c4e69a84cd128cedf8b64dcd
parentf0f8ee413cdbe3256d7229a1040b06abbaeabe28
Add functions to resolve hostnames and iterate corosync nodes

The sub 'for_all_corosync_addresses' iterates through all nodes in a
passed corosync config and calls a specified function for every ringX_addr
on every node it finds (provided the IP-version matches the specified
one or undef was specified).

All ringX_addr entries that cannot be parsed as an IP address will be
best-effort resolved as hostnames. This has to happen in the exact same
way as corosync does internally, to ensure consistency with firewall
rules.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
data/PVE/Corosync.pm