Bug 31767 - IPv6: use route -n when grepping the output
IPv6: use route -n when grepping the output
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
7.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-03-14 01:50 EST by Pekka Savola
Modified: 2014-03-16 22:19 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-03-14 01:50:36 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Pekka Savola 2001-03-14 01:50:24 EST
initscripts-5.75

If we grep 'route -A inet6 | grep ...' output, it might be a good idea to use route -n just in case to avoid possible
DNS lookups.

Like:

--- network-functions-ipv6      Mon Mar  5 23:06:59 2001
+++ network-functions-ipv6.new  Wed Mar 14 08:46:54 2001
@@ -393,7 +393,7 @@
                return 1
        fi
        # Get all IPv6 routes through given interface and remove them
-       LC_ALL=C route -A inet6 | grep "::$idtuall_tunnel" | while read ipv6net nexthop flags metric ref use iface args; do
+       LC_ALL=C route -n -A inet6 | grep "::$idtuall_tunnel" | while read ipv6net nexthop flags metric ref use iface args; do
                if [ "::$idtuall_tunnel" = "$nexthop" ]; then
                        if echo $flags | grep -v -q "A"; then
                                # Only non addrconf (automatic installed) routes should be removed
@@ -536,7 +536,7 @@
        fi
 
        # Get all IPv6 routes through given interface and remove them
-       LC_ALL=C route -A inet6 | grep $idall_device | while read ipv6net nexthop flags metric ref use iface args; do
+       LC_ALL=C route -n -A inet6 | grep $idall_device | while read ipv6net nexthop flags metric ref use iface args; do
                if [ "$idall_device" = "$iface" ]; then
                        if echo $flags | grep -v -q "A"; then
                                # Only non addrconf (automatic installed) routes should be removed
Comment 1 Bill Nottingham 2001-03-14 11:21:28 EST
Fixed in CVS, will show up at some point.

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