From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f179.google.com ([209.85.192.179]:34047 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751480AbeBTXEa (ORCPT ); Tue, 20 Feb 2018 18:04:30 -0500 Received: by mail-pf0-f179.google.com with SMTP id k2so936549pfi.1 for ; Tue, 20 Feb 2018 15:04:30 -0800 (PST) Date: Tue, 20 Feb 2018 15:04:26 -0800 From: Stephen Hemminger To: Serhey Popovych Cc: netdev@vger.kernel.org, dsahern@gmail.com Subject: Re: [PATCH iproute2-next v2 3/7] iplink: Use "dev" and "name" parameters interchangeable when possible Message-ID: <20180220150426.2d2527c5@xeon-e3> In-Reply-To: <1519162649-22449-4-git-send-email-serhe.popovych@gmail.com> References: <1519162649-22449-1-git-send-email-serhe.popovych@gmail.com> <1519162649-22449-4-git-send-email-serhe.popovych@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 20 Feb 2018 23:37:25 +0200 Serhey Popovych 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