On Wed, 2023-08-23 at 11:26 +0800, Zhengchao Shao wrote:
If failed to set link1_1 to netns client, we should delete link1_1 in the cleanup path. But if set link1_1 to netns client successfully, delete link1_1 will report warning. So delete link1_1 in the cleanup path and drop any warning message.
I think the same could happen also for the link1_2 device.
It would probably be safer creating directly the devices in the target namespaces, with the 'final' name
ip link add dev eth0 netns client type veth peer name eth0 netns server
Cheers,
Paolo