RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 714753 - "pifconfig <device>" lists all devices
Summary: "pifconfig <device>" lists all devices
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: python-ethtool
Version: 6.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: 6.4
Assignee: Dave Malcolm
QA Contact: Branislav Náter
URL:
Whiteboard:
: 834811 (view as bug list)
Depends On:
Blocks: 804141 905576
TreeView+ depends on / blocked
 
Reported: 2011-06-20 15:36 UTC by Petr Šplíchal
Modified: 2016-06-01 01:42 UTC (History)
5 users (show)

Fixed In Version: python-ethtool-0.6-2.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 905576 (view as bug list)
Environment:
Last Closed: 2013-02-21 10:48:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Patch: Fix command line argument parser (2.86 KB, text/plain)
2011-06-21 08:11 UTC, David Sommerseth
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0454 0 normal SHIPPED_LIVE python-ethtool bug fix and enhancement update 2013-02-20 21:07:41 UTC

Description Petr Šplíchal 2011-06-20 15:36:14 UTC
Description of problem:

Manual page says pifconfig displays information only about
selected device if provided on command line. However, pifconfig
always lists all devices.

    SYNOPSIS
        pifconfig [INTERFACE]

    DESCRIPTION
        This script mimic ifconfig behavior, but is written purely
        in python and python module ethtool.

    OPTIONS
        INTERFACE
            Display information about only this interface. If no
            interface is given then all interfaces are displayed.

Version-Release number of selected component (if applicable):
python-ethtool-0.6-1.el6.x86_64

Steps to Reproduce:
pifconfig eth0
  
Actual results:
lo        
          inet addr:127.0.0.1   Mask:255.0.0.0
	  UP LOOPBACK RUNNING

eth0      HWaddr 00:1e:37:1e:1d:9a 
          inet addr:10.34.24.20 Bcast:10.34.25.255   Mask:255.255.254.0
	  UP BROADCAST RUNNING MULTICAST

wlan0     HWaddr 00:1c:bf:6e:9b:7d 
          inet addr:10.34.12.146 Bcast:10.34.13.255   Mask:255.255.254.0
	  UP BROADCAST RUNNING MULTICAST

virbr0    HWaddr 52:54:00:4e:cd:6b 
          inet addr:192.168.122.1 Bcast:192.168.122.255   Mask:255.255.255.0
	  UP BROADCAST RUNNING MULTICAST


Expected results:
eth0      HWaddr 00:1e:37:1e:1d:9a 
          inet addr:10.34.24.20 Bcast:10.34.25.255   Mask:255.255.254.0
	  UP BROADCAST RUNNING MULTICAST

Comment 1 David Sommerseth 2011-06-21 08:11:35 UTC
Created attachment 505775 [details]
Patch: Fix command line argument parser

Fixed this for upstream.  The attached patch fixes this issue.

commit a45819ecb5580aeeb09c6c2201929257f5d311d2
Author: David Sommerseth <davids>
Date:   Tue Jun 21 10:06:36 2011 +0200

    Make pifconfig respect interface arguments from the command line
    
    pifconfig did not pay attention to any arguments give on the command
    line, which should only list selected devices.  This patch revamps the
    argument parsing, to behave as described in usage and man page.
    
    Signed-off-by: David Sommerseth <davids>

Comment 3 RHEL Program Management 2011-07-06 00:27:04 UTC
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. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 6 Suzanne Logcher 2012-02-14 23:10:17 UTC
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. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 9 RHEL Program Management 2012-07-10 06:03:39 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 10 RHEL Program Management 2012-07-11 01:58:25 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 12 Petr Šplíchal 2012-09-25 14:24:12 UTC
*** Bug 834811 has been marked as a duplicate of this bug. ***

Comment 16 IBM Bug Proxy 2013-02-14 14:30:41 UTC
------- Comment From chavez.com 2013-02-14 14:23 EDT-------
Verified on RHEL6.4 installed on a x86_64 system.

[root@elm17d229 ~]# uname -a
Linux elm17d229 2.6.32-353.el6.x86_64 #1 SMP Mon Jan 7 15:35:17 EST 2013 x86_64 x86_64 x86_64 GNU/Linux

[root@elm17d229 ~]# rpm -qa|grep python-ethtool
python-ethtool-0.6-3.el6.x86_64
[root@elm17d229 ~]# pifconfig -h
Usage: pifconfig [interface [interface [interface] ...]]

Options:
-h, --help  show this help message and exit
[root@elm17d229 ~]# pifconfig eth0
eth0      HWaddr e4:1f:13:69:d7:1c
inet addr:9.114.216.177 Bcast:9.114.216.255   Mask:255.255.255.0
inet6 addr: fe80::e61f:13ff:fe69:d71c/64 Scope: link
inet6 addr: fd60:3427:11a9:69:e61f:13ff:fe69:d71c/64 Scope: universe
inet6 addr: 2002:92f:653e:3e00:e61f:13ff:fe69:d71c/64 Scope: universe
inet6 addr: fd55:faaf:e1ab:3df:e61f:13ff:fe69:d71c/64 Scope: universe

Comment 17 errata-xmlrpc 2013-02-21 10:48:13 UTC
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-2013-0454.html


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