| Summary: | "ip route show cached" doesn't work but man page says it does? | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Cristian Morales Vega <christian.morales.vega> |
| Component: | iproute | Assignee: | Phil Sutter <psutter> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 24 | CC: | psimerda, psutter, rvokal, twoerner |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | iproute-4.4.0-4.fc24 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-03-21 16:50:40 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Cristian Morales Vega
2016-09-15 08:12:15 UTC
Hi, The mentioned kernel commit disables routing cache only for IPv4, IPv6 still has it. Subsequently, 'ip -6 route show cache' indeed shows cached routes (in case there are any). For older kernels, the documentation is also correct and since iproute2 is supposed to be backwards compatible, I don't see much need to change it. We could add a note to the description of the 'cache' option though that since v3.10 it only affects IPv6 anymore. Cheers, Phil IMHO the note would be nice. Also, I don't know the kernel interface, maybe there is no way for ip to know but, if possible, shouldn't "ip -4 route show cache" show some error message and return something other than zero when the running kernel doesn't support it? Hi Cristian, (In reply to Cristian Morales Vega from comment #2) > IMHO the note would be nice. Patch submitted upstream: http://marc.info/?l=linux-netdev&m=148049460813798&w=2 > Also, I don't know the kernel interface, maybe there is no way for ip to > know but, if possible, shouldn't "ip -4 route show cache" show some error > message and return something other than zero when the running kernel doesn't > support it? I don't like this idea. It is not a mistake to list IPv4 route cache on newer systems, it's just empty. Having iproute bail here might confuse users checking the return code as they might think they got the syntax wrong or something. Also it might break existing scripts, which is a no go. Cheers, Phil Patch accepted upstream:
commit f5f760b81250630da23a4021c30e802695be79d2
Author: Phil Sutter <phil>
Date: Wed Nov 30 09:29:48 2016 +0100
man: ip-route.8: Add notes about dropped IPv4 route cache
Signed-off-by: Phil Sutter <phil>
iproute-4.4.0-4.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-d92ee91481 iproute-4.4.0-4.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-d92ee91481 iproute-4.4.0-4.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. |