Subject: Re: [PATCH iproute2-next v2 3/7] iplink: Use "dev" and "name" parameters interchangeable when possible

From: Stephen Hemminger <[email-masked]>
Date: Tue, 20 Feb 2018 15:04:26 -0800

On Tue, 20 Feb 2018 23:37:25 +0200
Serhey Popovych <[email-masked]> wrote:

> Both of them accept network device name as argument, but have different
> meaning:
> 
>   dev  - is a device by it's name,
>   name - name for specific device device.
> 
> The only case where they treated separately is network device rename
> case where need to specify both ifindex and new name. In rest of the
> cases we can assume that dev == name.

I would rather keep name as only being a valid argument for set command.
And reject use of:

   ip li show name eth0