[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1291998740.3580.162.camel@edumazet-laptop>
Date: Fri, 10 Dec 2010 17:32:20 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: Stephen Hemminger <shemminger@...tta.com>
Cc: Octavian Purdila <opurdila@...acom.com>, netdev@...r.kernel.org,
Lucian Adrian Grijincu <lucian.grijincu@...il.com>,
Vlad Dogaru <ddvlad@...edu.org>
Subject: Re: [PATCH] iproute2: ip: add wilcard support for device matching
Le vendredi 10 décembre 2010 à 08:18 -0800, Stephen Hemminger a écrit :
> On Fri, 10 Dec 2010 16:58:12 +0200
> Octavian Purdila <opurdila@...acom.com> wrote:
>
> > Allow the users to specify a wildcard when selecting a device:
> >
> > $ ip set link dev dummy* up
> >
> > We do this by expanding the original command line in multiple lines
> > which we then feed via a pipe to a forked ip processed run in batch
> > mode.
> >
>
>
> Seems like feature creep. Can't you do this with bash completion
> script instead.
> -
furthermore, "*" is allowed in a device name
ip link add link bond0 "vlan*" txqueuelen 100 type vlan id 999
$ ifconfig "vlan*"
vlan* Link encap:Ethernet HWaddr 00:1E:0B:EC:D3:D2
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists