[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ab603afe-744e-cea7-60a5-13f2cc2d8621@gmail.com>
Date: Wed, 21 Feb 2018 08:35:15 +0200
From: Serhey Popovych <serhe.popovych@...il.com>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: netdev@...r.kernel.org, dsahern@...il.com
Subject: Re: [PATCH iproute2-next v2 3/7] iplink: Use "dev" and "name"
parameters interchangeable when possible
Stephen Hemminger wrote:
> On Tue, 20 Feb 2018 23:37:25 +0200
> Serhey Popovych <serhe.popovych@...il.com> 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
>
But ip-link(8) man page is full of examples where "name" is used instead
of "dev". I suppose there are lot of configuration we can broke when
explicitly disabling "name" as an alternative to "dev".
Especially on the first lines in man page we have:
ip link add [ link DEVICE ] [ name ] NAME
...
and there is no reference to "dev".
What do you think?
Download attachment "signature.asc" of type "application/pgp-signature" (491 bytes)
Powered by blists - more mailing lists