]> git.proxmox.com Git - pve-manager.git/commit - www/manager6/dc/Cluster.js
ui: cluster: require ring0_addr if joinee's ring and node addr differ
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 27 Nov 2018 14:22:24 +0000 (15:22 +0100)
committerDominik Csapak <d.csapak@proxmox.com>
Wed, 28 Nov 2018 11:39:40 +0000 (12:39 +0100)
commit9e3b13eb7f6d78eb6699b7babbca6c2241c4997c
treee50dc54cdba000992cd1c465484b1391a61c5653
parentcb638dba6586dff6198064e98e886dd4d63f8611
ui: cluster: require ring0_addr if joinee's ring and node addr differ

Pass the ring addresses from the node we use to join a cluster with
the encoded cluster info. Use it to determine if the nodes public
address (i.e., the onei t's node name resolves to) differs from it'S
ring0 address, if that's the case and the cluster was created with
PVE tooling then we know that it's highly probable that the ring0 is
on another network than the public net, so require the ring0_addrss
field in this case. If we have a false positive, it's not to bad
here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/dc/Cluster.js
www/manager6/dc/ClusterEdit.js