From owner-freebsd-rc@FreeBSD.ORG Sun Jun 12 03:54:27 2011 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 712DD1065670; Sun, 12 Jun 2011 03:54:27 +0000 (UTC) (envelope-from melifaro@ipfw.ru) Received: from no.spam.no.ddos.ru (no.spam.no.ddos.ru [IPv6:2a02:978:2:1000::3]) by mx1.freebsd.org (Postfix) with ESMTP id EFD3A8FC12; Sun, 12 Jun 2011 03:54:26 +0000 (UTC) Received: from ws.su29.net (v6.mpls.in [IPv6:2a02:978:2::5]) by no.spam.no.ddos.ru (Postfix) with ESMTPA id 76CFE362A32; Sun, 12 Jun 2011 07:52:51 +0400 (MSD) Message-ID: <4DF43813.5020508@ipfw.ru> Date: Sun, 12 Jun 2011 07:52:51 +0400 From: "Alexander V. Chernikov" User-Agent: Thunderbird 2.0.0.24 (X11/20100515) MIME-Version: 1.0 To: Hiroki Sato References: <20110612.055610.725598761140735688.hrs@allbsd.org> In-Reply-To: <20110612.055610.725598761140735688.hrs@allbsd.org> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: dougb@FreeBSD.org, pluknet@gmail.com, freebsd-rc@FreeBSD.org Subject: Re: [CFR] rc.conf interface description X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jun 2011 03:54:27 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hiroki Sato wrote: > Sergey Kandaurov wrote > in : > > pl> Hello. > pl> > pl> Some time ago there was a discussion about ifconfig descr integration > pl> into rc. That means you can store interface descriptions in rc.conf file, > pl> so that the descriptions survive between system reboots. To achieve it, > pl> you need to place one-line option into rc.conf, e.g. like this: > pl> ifconfig_em0_descr="Uplink to Gigabit Switch 1", or > pl> ifconfig_vlan8_descr="description '1 2 3' vlan 255 vlandev IFACE" > pl> > pl> so after reboot or manual `rc.d/netif restart $iface` invocation, you''ll see > pl> something like this: > pl> vlan8: flags=8843 metric 0 mtu 1500 > pl> description: description '1 2 3' vlan 255 vlandev IFACE > pl> [...] > pl> And rc.d/netif stop $iface removes description from a network interface. > pl> > pl> You can see the previous discussion in -current@ and -rc@ mail archives: > pl> http://www.mail-archive.com/freebsd-current@freebsd.org/msg124513.html > pl> However, that time it went nowhere due to luck of time/interest. > pl> > pl> Recently I learned that this patch is actually used. > pl> I was requested to integrate it into the head. > pl> I'd like to collect your opinions/objections/thoughts to ensure whether > pl> there are might be issues preventing from committing it. > > I have no strong objection but I am still wondering if we really need > to have the dedicated variable for ifconfig descr. Is simply > specifying ifconfig_IF="descr FOO" not enough? Unfortunately it is not. You can't (easily) set interface description like 'FOO BAR' via ifconfig_IF. Please see conf/156675 for a bit longer desciption. > > -- Hiroki -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk30OBMACgkQwcJ4iSZ1q2lY0ACfbnCI1gV2PZVVujFB0pH7w+S+ 0jMAoKNEWxWnI8qdrB0ASIiA7DgRbFKY =R7Ok -----END PGP SIGNATURE-----