Bug 714753

Summary: "pifconfig <device>" lists all devices
Product: Red Hat Enterprise Linux 6 Reporter: Petr Šplíchal <psplicha>
Component: python-ethtoolAssignee: Dave Malcolm <dmalcolm>
Status: CLOSED ERRATA QA Contact: Branislav Náter <bnater>
Severity: low Docs Contact:
Priority: low    
Version: 6.1CC: bnater, bugproxy, davids, hannsj_uhl, ohudlick
Target Milestone: rc   
Target Release: 6.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-ethtool-0.6-2.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 905576 (view as bug list) Environment:
Last Closed: 2013-02-21 10:48:13 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:
Bug Depends On:    
Bug Blocks: 804141, 905576    
Attachments:
Description Flags
Patch: Fix command line argument parser none

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