netns
netns copied to clipboard
Bridge names longer than 15 characters result in error message that is difficult to understand
Creating a bridge with names "brmaths_overlay", "br_mathsoverlay" works, but not "br_maths_overlay". Trying to create this bridge shows an error
bridge creation for br_maths_overlay failed: numerical result out of range
[root@base01 ~]# ip link add br_maths_overlay type bridge Error: argument "br_maths_overlay" is wrong: "name" too long
Creating a bridge with names "brmaths_overlay", "br_mathsoverlay" works, but not "br_maths_overlay". Trying to create this bridge shows an error
bridge creation for br_maths_overlay failed: numerical result out of range
Thanks, the name being too long was indeed the issue. I haven't checked whether that can be told from the output of netns, but I assume the output of ip link
is not shown. Would it be possible to show this in case of errors? "numerical result out of range" is not a message I would associate with "name too long".
The reason I have not closed this issue is to maybe get a better error message for this case (name too long). I have not used netns for some time now, is this still the status? "numerical result out of range" if the bridge name is too long?