On 1/15/24 17:28, Stefan Hanreich wrote: > Fallback to v.ref when we do not use an alias or ipset in order to be > able to use normal CIDRs as source / destination address again > > Signed-off-by: Stefan Hanreich <s.hanre...@proxmox.com> > --- > www/manager6/form/IPRefSelector.js | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/www/manager6/form/IPRefSelector.js > b/www/manager6/form/IPRefSelector.js > index b50ac1e10..7e5eea63a 100644 > --- a/www/manager6/form/IPRefSelector.js > +++ b/www/manager6/form/IPRefSelector.js > @@ -37,8 +37,10 @@ Ext.define('PVE.form.IPRefSelector', { > calculate: function(v) { > if (v.type === 'alias') { > return `${v.scope}/${v.name}`; > - } else { > + } else if (v.type === 'ipset') { > return `+${v.scope}/${v.name}`; > + } else { > + return v.ref; > } > }, > },
This removes the error reported in the bug tracker, but new changes to the IP are not recognized. E.g.: original IP range: 10.0.0.0/8 new IP range: 192.168.0.0/24 The `ok` button is still disabled unless you change anything else, change to an IPset or alias, or remove the entire IP entry via the `x` and type it again. _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel