Re: [PATCH] Add symlink in /sys/class/net for interface altnames

From: Stephen Hemminger
Date: Mon Mar 13 2023 - 13:25:31 EST


On Mon, 13 Mar 2023 13:49:03 -0300
Jorge Merlino <jorge.merlino@xxxxxxxxxxxxx> wrote:

> Currently interface altnames behave almost the same as the interface
> principal name. One difference is that the not have a symlink in
> /sys/class/net as the principal has.
> This was mentioned as a TODO item in the original commit:
> https://lore.kernel.org/netdev/20190719110029.29466-1-jiri@xxxxxxxxxxx
> This patch adds that symlink when an altname is created and removes it
> when the altname is deleted.
>
> Signed-off-by: Jorge Merlino <jorge.merlino@xxxxxxxxxxxxx>

What about if altname is changed?