Bug 197897 - iproute2: make ip route list to search by metric too
Summary: iproute2: make ip route list to search by metric too
Status: RESOLVED CODE_FIX
Alias: None
Product: Networking
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Stephen Hemminger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-16 20:05 UTC by Alexander Zubkov
Modified: 2018-01-02 15:18 UTC (History)
0 users

See Also:
Kernel Version: any
Subsystem:
Regression: No
Bisected commit-id:


Attachments
proposed patch (1.24 KB, patch)
2017-11-18 13:19 UTC, Alexander Zubkov
Details | Diff

Description Alexander Zubkov 2017-11-16 20:05:11 UTC
Hello.

Currently routes in the Linux routing table have these "key" fields: prefix, tos, table, metric (as I know). I.e. we can not have two different routes with the same set of this fields. And "ip route list" command can be all but one of those fields. We cannot pass metric to it and this is inconvenient. I ask if this behaviour can be changed by someone. We can even use "secondary" fields, for example type, dev or via, but not metric unfortunately.
Comment 1 Stephen Hemminger 2017-11-17 00:15:11 UTC
Patches accepted. Please forward to netdev@vger.kernel.org
Comment 2 Alexander Zubkov 2017-11-18 13:19:04 UTC
Created attachment 260713 [details]
proposed patch

Attaching patch.
And I posted the question to the mailing list too.
Comment 3 Alexander Zubkov 2018-01-02 15:18:36 UTC
I think this could be closed as patches have been merged already.

Note You need to log in before you can comment on or make changes to this bug.