netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@vyatta.com>
To: Bill Fink <billfink@mindspring.com>
Cc: Ben Greear <greearb@candelatech.com>,
	David Miller <davem@davemloft.net>,
	diego@woitasen.com.ar, netdev@vger.kernel.org
Subject: Re: ip route show shows the routes in the inverse order?
Date: Tue, 13 Mar 2012 22:32:43 -0700	[thread overview]
Message-ID: <20120313223243.7d0ebf1f@nehalam.linuxnetplumber.net> (raw)
In-Reply-To: <20120314013021.4c73af0d.billfink@mindspring.com>

On Wed, 14 Mar 2012 01:30:21 -0400
Bill Fink <billfink@mindspring.com> wrote:

> On Tue, 13 Mar 2012, Ben Greear wrote:
> 
> > On 03/12/2012 11:52 PM, David Miller wrote:
> > > From: Bill Fink<billfink@mindspring.com>
> > > Date: Tue, 13 Mar 2012 02:15:29 -0400
> > >
> > >> Some scripts may depend on this plus its much more efficent that way
> > >> if trying to find a matching route since you can quit on the first
> > >> match instead of having to scan the entire routing table.
> > >
> > > No script should be doing stuff like this, let the tool do it for you
> > > via "ip route get ADDR"
> > >
> > > There is absolutely no argument for routes to be listed in one order
> > > or another, and anything depending upon order is extremely fragile
> > > and needs to be fixed up anyways.
> > 
> > The argument is ease of use by whatever human is reading the
> > information..but it could be done in the 'ip' tool.
> > 
> > Humans are fragile indeed, but it's often easier to fix the
> > computer than fix the humans.
> 
> Speaking from experience, it's a royal point to look at unsorted
> routes.  Perhaps it would be useful to add a sort option to the
> "ip route show" command.
> 
> It makes more sense to fix a single user tool like "ip" than make
> hundreds (or thousands) of admins work around the new behavior.
> 
> 						-Bill

patches accepted.

      reply	other threads:[~2012-03-14  5:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-13  1:18 ip route show shows the routes in the inverse order? Diego Woitasen
2012-03-13  2:32 ` Stephen Hemminger
2012-03-13  6:15   ` Bill Fink
2012-03-13  6:52     ` David Miller
2012-03-13 14:26       ` Diego Woitasen
2012-03-13 16:47         ` Eric Dumazet
2012-03-13 15:37       ` Ben Greear
2012-03-14  5:30         ` Bill Fink
2012-03-14  5:32           ` Stephen Hemminger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120313223243.7d0ebf1f@nehalam.linuxnetplumber.net \
    --to=shemminger@vyatta.com \
    --cc=billfink@mindspring.com \
    --cc=davem@davemloft.net \
    --cc=diego@woitasen.com.ar \
    --cc=greearb@candelatech.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).