Somehow it does not happen for me. If I use the command:
udo ip link add tap type veth peer eth0 netns
test-e40d1523-d29b-413e-bfff-91bf32dd042a
the veth peer inside the ns is not named "eth0" as expected:
celebdor@s21 ~ $ sudo ip netns exec
test-e40d1523-d29b-413e-bfff-91bf32dd042a ip l
1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN mode DEFAULT group
default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
6: veth0@if51: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
mode DEFAULT group default qlen 1000
link/ether 7a:a0:05:c4:53:39 brd ff:ff:ff:ff:ff:ff link-netnsid 0
9: veth1@if54: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN
mode DEFAULT group default qlen 1000
link/ether 82:98:7b:b0:b1:6b brd ff:ff:ff:ff:ff:ff link-netnsid 0
> --
> You received this message because you are subscribed to the Google Groups
> "pyroute2-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
pyroute2-dev...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.