From owner-freebsd-current@FreeBSD.ORG Thu Sep 29 23:15:38 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D017716A41F for ; Thu, 29 Sep 2005 23:15:38 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77B9743D53 for ; Thu, 29 Sep 2005 23:15:38 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j8TNFOrA009868; Thu, 29 Sep 2005 16:15:24 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j8TNFOt8009867; Thu, 29 Sep 2005 16:15:24 -0700 Date: Thu, 29 Sep 2005 16:15:24 -0700 From: Brooks Davis To: Fredrik Lindberg Message-ID: <20050929231524.GB18164@odin.ac.hmc.edu> References: <20050922104104.GA13539@comp.chem.msu.su> <20050925213741.GG15981@odin.ac.hmc.edu> <20050928110413.GE86457@comp.chem.msu.su> <433C14EE.6010105@shapeshifter.se> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JP+T4n/bALQSJXh8" Content-Disposition: inline In-Reply-To: <433C14EE.6010105@shapeshifter.se> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: Yar Tikhiy , freebsd-current@freebsd.org Subject: Re: "ifconfig -vlandev" syntax X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Sep 2005 23:15:38 -0000 --JP+T4n/bALQSJXh8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 29, 2005 at 06:23:10PM +0200, Fredrik Lindberg wrote: > Yar Tikhiy wrote: > >On Sun, Sep 25, 2005 at 02:37:41PM -0700, Brooks Davis wrote: > > > >>On Thu, Sep 22, 2005 at 02:41:05PM +0400, Yar Tikhiy wrote: > >> > >>>As our ifconfig(8) is growing more options for special interface > >>>types, inconsistencies sneak into their syntax. In particular, > >>>-vlandev takes a useless argument (vlan(4) cannot attach to more > >>>than one parent anyway) while, e.g., -carpdev doesn't need one. > >>>Personally, I like the latter since having to type unneeded words > >>>on the command line annoys me. Do you think that making -vlandev > >>>need no arguments in CURRENT would break many existing things? > >> > >>I agree the argument is useless. Unfortunatly, it's going to be hard to > >>deprecate the old syntax so we may need to keep it around. > > > > > >Alas, there doesn't seem to exist an easy way to support both > >syntaxes in the ifconfig(8) parameter parser. Perhaps we can > >survive the pain of syntax change in CURRENT only, with a > >heads-up message sent, release notes updated, etc? I wonder > >if many people use "ifconfig -vlandev XXX" in automated tools. > > >=20 > Why not use something simple such as the following (maybe even > without that printf(). >=20 > root@genesis> ./ifconfig vlan0 create > root@genesis> ./ifconfig vlan0 vlan 1 vlandev em0 > root@genesis> ./ifconfig vlan0 -vlandev > root@genesis> ./ifconfig vlan0 vlan 1 vlandev em0 > root@genesis> ./ifconfig vlan0 -vlandev em0 > Passing interface to -vlandev is deprecated. Excellent, this is the perfect solution. Let's get something like this committed and MFC'd so it goes out in 6.0. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --JP+T4n/bALQSJXh8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDPHWLXY6L6fI4GtQRAn+4AKDJ9byenOFmFmFHXF7ImOcwcBb9FQCfYia5 8FVxeXTnhixLmFSf8fCI9s4= =9Kmv -----END PGP SIGNATURE----- --JP+T4n/bALQSJXh8--