Bug 50913 - redhat-config-network-cmd doesn't seem to work at all
Summary: redhat-config-network-cmd doesn't seem to work at all
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: redhat-config-network   
(Show other bugs)
Version: 7.3
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Phil Knirsch
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2001-08-04 18:40 UTC by Panic
Modified: 2015-03-05 01:09 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-08-06 14:10:52 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Panic 2001-08-04 18:40:31 UTC
Description of Problem:

redhat-config-network-cmd does not find any profiles to work on.  My
assumption is that the profiles are the files stored in
/etc/sysconfig/networking/profiles or
/etc/sysconfig/networking/profiles/defaults, but none of those filenames
work for the -p option.

The section of code that doesn't find the profile is on line 66 of
netconf.py, here:

            for opt, val in opts:
                if opt == '-p ' or opt == '--profile':
                    profilelist = getProfileList()

trying to run -cmd with a profile specified (from the profiles/default dir)
always results in the "No profile with name" error from NCProfileList.py on
line 246:

    def switchToProfile(self, val):
        devicelist = NCDeviceList.getDeviceList()
        hardwarelist = NCHardwareList.getHardwareList()
        profilelist = getProfileList()

        found = false
        for prof in profilelist:
            if prof.ProfileName == val:
                found = true

        if found == false:
            print "No Profile with name "+val+" could be found."

Apparently, "prof.ProfileName == val:" never tests as true, or I'm confused
as to what a profile is, because the break is never reached and the error
is always returned.

How Reproducible:


Steps to Reproduce:
1. attempt to run redhat-config-network-cmd with any profile that is
2. Note the error message returned.

Actual Results:

redhat-config-network-cmd does not seem to work

Expected Results:

redhat-config-network-cmd should do whatever it is supposed to do.

Additional Information:

Comment 1 Trond Eivind Glomsrxd 2001-08-05 19:56:19 UTC
The profile system is currently being adjusted.

Comment 2 Panic 2001-08-06 14:24:25 UTC
I realized how this worked after I submitted this -- I'm going to close it
NOTABUG since I didn't know what I was doing.

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