Sometimes the desired migration network is not configured on any
network interfaces on the node. For instance, if there is a full-mesh
network the CIDR for the router IPs is not configured on any network
interface, but still a valid choice as migration network. This patch
fixes this by allowing users to additionally enter arbitrary CIDRs
into the field setting the migration network.

Signed-off-by: Stefan Hanreich <s.hanre...@proxmox.com>
---
 www/manager6/dc/OptionView.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/www/manager6/dc/OptionView.js b/www/manager6/dc/OptionView.js
index b200fd12d..bd54d7618 100644
--- a/www/manager6/dc/OptionView.js
+++ b/www/manager6/dc/OptionView.js
@@ -115,6 +115,9 @@ Ext.define('PVE.dc.OptionView', {
                emptyText: Proxmox.Utils.defaultText,
                autoSelect: false,
                skipEmptyText: true,
+               editable: true,
+               notFoundIsValid: true,
+               vtype: 'IP64CIDRAddress',
            }],
        });
        me.add_inputpanel_row('ha', gettext('HA Settings'), {
-- 
2.39.5


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to