Red Hat Bugzilla – Bug 602688
system-config-network removes GATEWAYDEV from /etc/sysconfig/network
Last modified: 2018-10-27 09:39:28 EDT
Created attachment 422907 [details] Possible patch Description of problem: If GATEWAYDEV is set in /etc/sysconfig/network, running system-config-network will remove the option without notice. Version-Release number of selected component (if applicable): system-config-network-1.3.99.18-1.el5 How reproducible: Always Steps to Reproduce: 1. Add GATEWAYDEV=eth0 in /etc/sysconfig/network 2. Start system-config-network 3. Select File > Save 4. Check contents of /etc/sysconfig/network Actual results: GATEWAYDEV has been removed Expected results: GATEWAYDEV is left unchanged in /etc/sysconfig/network Additional info: This is from the fix for bug #78043, in netconfpkg/NCDeviceList.py: B<------B<------B<------B<------B<------B<------B<------B<------B<------ [...] # bug #78043 # we should have device specific gateways # fixed this way, until we have a way to mark the # default GATEWAY/GATEWAYDEV cfg = Conf.ConfShellVar(netconfpkg.ROOT + SYSCONFNETWORK) if cfg.has_key('GATEWAY'): del cfg['GATEWAY'] if cfg.has_key('GATEWAYDEV'): del cfg['GATEWAYDEV'] cfg.write() B<------B<------B<------B<------B<------B<------B<------B<------B<------ Removing the part that deletes gatewaydev fixes the issue.
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0231.html