Bug 31767

Summary: IPv6: use route -n when grepping the output
Product: [Retired] Red Hat Linux Reporter: Pekka Savola <pekkas>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-03-14 06:50:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pekka Savola 2001-03-14 06:50:24 UTC
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 16:21:28 UTC
Fixed in CVS, will show up at some point.