alpine "ip" command ignores peer name on veth pair creation
This same issue has been observed on busybox: https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1838926.html
When creating a veth pair using "ip link", the virtual ethernet pair is created, but the peer name is ignored, and a random label is selected.
Observed behaviour:
user@host:~$ sudo ip link add ve_C type veth peer name ve_S
user@host:~$ ip link show ve_C
9: ve_C@veth0: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN
mode DEFAULT group default qlen 1000
link/ether 9a:81:42:e9:c4:da brd ff:ff:ff:ff:ff:ff
user@host:~$ ip link show ve_S
Device "ve_S" does not exist.
Expected behaviour (Which can be observed on Ubuntu 22.04):
user@host:~$ sudo ip link add ve_C type veth peer name ve_S
user@host:~$ ip link show ve_C
9: ve_C@ve_S: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN
mode DEFAULT group default qlen 1000
link/ether bc:d4:e1:bd:4e:07 brd ff:ff:ff:ff:ff:ff
user@host:~$ ip link show ve_S
10: ve_S@ve_C: <BROADCAST,MULTICAST,M-DOWN> mtu 1500 qdisc noop state DOWN
mode DEFAULT group default qlen 1000
link/ether 84:81:c2:ae:68:00 brd ff:ff:ff:ff:ff:ff
This bug was observed on alpine 3.15.