fix #6943: ui: network selector: show comments of IPv6 entries
When an interface has an IPv6 address, the selector adds a separate
entry for it and takes the comment from the 'comments6' property.
The API never returns that property: since pve-common commit f2ac9dd
("fix #3153: INotify: adding comment of interface to inet6 section when
this is the only section") the parser merges the inet6 comments into
'comments'.
As a result, the comment of IPv6-only interfaces was dropped, and the
IPv6 entry of dual-stack interfaces had no comment at all, for example
when selecting corosync links or the Ceph networks.
Just keep the 'comments' value, which is already present on the record
or on its copy.
Signed-off-by: Michal Fox <me@dualfroz.com>
Link: https://lore.proxmox.com/20260929140710.2823699-1-me@dualfroz.com
This commit is contained in:
1 parent
9cf310694d
commit
e2917b5d1e
1 file changed
-2
@@ -82,8 +82,6 @@ Ext.define('Proxmox.form.NetworkSelector', {
|
||||
dest.data.cidr = record.data.cidr6;
|
||||
dest.data.address = record.data.address6;
|
||||
delete record.data.cidr6;
|
||||
dest.data.comments = record.data.comments6;
|
||||
delete record.data.comments6;
|
||||
store.add(dest);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user