Subject: Re: displayed name changed in ip link show for bridge- and other interfaces

From: Oliver Hartkopp <[email-masked]>
Date: Sun, 14 Jun 2015 20:50:50 +0200

On 14.06.2015 12:00, Ulrich Gemkow wrote:

> between Linux 4.0.5 and 4.1-rc7 the name as shown by "ip link show"
> of bridge interfaces (and at least the dummy interface) changed from
> (i.e.) br1 to br1@NONE.
>
> This breaks (at least for me :-) userspace (ip link show parsing
> scripts). It is easy to solve, so not a big problem. I am using
> Ubuntu 14.04.
>
> Is this user visible change intended?
>

Hi Ulrich,

looking at iproute2 I found this patch:

http://git.kernel.org/cgit/linux/kernel/git/shemminger/iproute2.git/commit/ip/ipaddress.c?id=ccdcbf35f120c754660b3b3f48fa67cc950a6407

 > iplink: add support of IFLA_LINK_NETNSID attribute
 > This new attribute is now advertised by the kernel for x-netns interfaces. 
 > It's also possible to set it when an interface is created (and thus
 > creating a x-netns interface with one single message).

Due to the fact that the kernel now provides the new attribute we get this 
@NONE stuff for interfaces that have no iflink value.

This definitely is @UGLY !

@Nicloas: Why don't you just omit the @NONE when iflink is zero in the new 
attribute?

Regards,
Oliver