From: Dominik Csapak <d.csapak@proxmox.com>
To: Thomas Lamprecht <t.lamprecht@proxmox.com>,
Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
Christoph Heiss <c.heiss@proxmox.com>
Subject: Re: [pve-devel] [PATCH manager/widget-toolkit 0/2] show altenative interface names in the web ui
Date: Tue, 15 Jul 2025 09:41:49 +0200 [thread overview]
Message-ID: <15def8ea-87cd-4800-bcd3-808920be2deb@proxmox.com> (raw)
In-Reply-To: <b551cc33-2ea4-4640-ada8-1fc921e736ce@proxmox.com>
On 7/14/25 16:31, Thomas Lamprecht wrote:
> Am 14.07.25 um 15:53 schrieb Dominik Csapak:
>> On 7/14/25 15:49, Christoph Heiss wrote:
>>> Tested the series, came across two thing:
>>>
>>> Given e.g. the following interface:
>>>
>>> 11: ens8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc [..]
>>> link/ether 01:02:03:04:05:06 brd ff:ff:ff:ff:ff:ff
>>> altname nic8
>>> altname enxdeadff02d073
>>>
>>> and the following /etc/network/interfaces snippet:
>>>
>>> auto nic8
>>> iface nic8 inet manual
>>>
>>> the interface will be displayed twice in the network page. If in the
>>> above snippet s/nic8/ens8/ is done (i.e. using the primary name), it
>>> works correctly.
>>>
>>> I guess between our /e/n/i parser and the altname mapping the interface
>>> is picked up twice, so this will need some sort of "de-duplication" in
>>> the backend, from what I can gather.
>>
>> yeah i don't touch the which interfaces will be shown, so
>> that's on the /e/n/i parser
>
> Fwiw, it's not really wrong, one is the name in /e/n/i and the others
> are interface names per `ip link`, but it naturally can be a bit
> confusing as is.
>
> Depends also a bit on what we want, i.e., it probably makes sense to always
> show the name used in the /e/n/i config in the name column, and always filter
> that out from the alternative names displayed, as that allows the easiest
> correlation to the /e/n/i config, which is the main source of true for this
> panel.
> The small downside for that is then that the Alternative Names column is not
> a 1:1 mapping of what `ip link` shows as altname, but that probably is not
> an actual issue, after all they all live in the same namespace and are
> interchangeable for usage with the iproute2 tools.
> But that might also mean that we have to treat duplicates explicitly here
> in the API call enhancing that info. Waiting until tomorrow makes sense in
> any way though, as Stefan will be back from his short vacation then and
> might have some input here.
i thought a bit about this, and I think there are some disadvantages when
just taking the names from /e/n/i:
* not sure if it would work at all (depends on ifupdown2), but some
weird configs could make the ui even more confusing, e.g. (assuming nicX is an altname of nicY):
auto nicX
iface nicY inet manual
we now would probably pick up both nicX and nicY, and show both in addition to what ip link says
* having any custom altname in the /e/n/i would require the computed/shown altnames to be
calculated for *each*, so e.g. if i have
nicX, nicY and nicZ all point to the same device, we'd have to make the altname list generation
more complicated
IMHO it would be ok to always show the 'canonical' name (whatever ip link/kernel says)
in the 'name' column and everything else in the 'altname' column regardless what is
configured in /e/n/i
Disadvantage is of course that for some this might be more confusing as some will be
taking /e/n/i as a reference and not 'ip link'....
I don't think there is a good way to make it super clear for all situations/users, but in the end
we have to decide what is the 'ground truth' (i.e. either /e/n/i or 'ip link')
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next prev parent reply other threads:[~2025-07-15 7:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-14 10:42 Dominik Csapak
2025-07-14 10:42 ` [pve-devel] [PATCH widget-toolkit 1/1] network: optionally show alternative interface names Dominik Csapak
2025-07-14 10:42 ` [pve-devel] [PATCH pve-manager 1/1] api/ui: show/return " Dominik Csapak
2025-07-14 13:49 ` [pve-devel] [PATCH manager/widget-toolkit 0/2] show altenative interface names in the web ui Christoph Heiss
2025-07-14 13:53 ` Dominik Csapak
2025-07-14 14:31 ` Thomas Lamprecht
2025-07-15 7:41 ` Dominik Csapak [this message]
2025-07-15 8:17 ` Thomas Lamprecht
2025-07-15 8:36 ` Dominik Csapak
2025-07-15 8:54 ` Thomas Lamprecht
2025-07-15 9:00 ` Dominik Csapak
2025-07-15 9:01 ` Thomas Lamprecht
2025-07-15 9:08 ` [pve-devel] superseded: " Dominik Csapak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15def8ea-87cd-4800-bcd3-808920be2deb@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=c.heiss@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
--cc=t.lamprecht@proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox