Bug 79261 - ifup-routes adds each route twice
Summary: ifup-routes adds each route twice
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 8.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
Depends On:
TreeView+ depends on / blocked
Reported: 2002-12-09 05:29 UTC by Brian McMinn
Modified: 2014-03-17 02:32 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2002-12-09 05:29:15 UTC

Attachments (Terms of Use)

Description Brian McMinn 2002-12-09 05:29:06 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826

Description of problem:
ifup-routes adds routes from both eth0.route and route-eth0 and
ignores the "old format" file /etc/sysconfig/static-routes

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.run neat, add a static route
2.run ifup-routes eth0
3.see errors

Actual Results:  RTNETLINK answers: File exists

Additional info:

I used "neat" to add some static routes.
Neat created two files of interest:
Both of these files contain the information about the static routes
that I want to establish, but they are in different formats.

When ifup-routes is run, it first tests to see if
/etc/sysconfig/networking/devices/eth0.route exists.  If it doesn't,
ifup-routes exits.  If it does, ifup-routes then uses this file to
add the desired routes.  It then (according to the comments) uses
the "old style" file in route-eth0 to attempt to add the same routes

There are two problems with this.  First is that it should use one
or the other of these files (or neat should only create one or the
other).  I think ifup-routes should check to see if the "new" format
file exists and use it if it exists.  The second problem with
shows up if the eth0.route file doesn't exist.  In this case, I think
ifup-routes should use the old format that used to be in
/etc/sysconfig/static-routes so that it will be backwards compatible
with RH7.3.

Comment 1 Bill Nottingham 2002-12-09 17:53:56 UTC
static-routes is deprecated, there was massive docs fubarness for this. This is
fixed in CVS. As to neat, it should really only write to one file; that's a
separate bug.

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