Bug 1296997

Summary: allow for 'ip link show type bridge'
Product: Red Hat Enterprise Linux 7 Reporter: Phil Sutter <psutter>
Component: iprouteAssignee: Phil Sutter <psutter>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact:
Priority: low    
Version: 7.3   
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-25 21:42:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Phil Sutter 2016-01-08 16:36:54 UTC
Listing interfaces by type (or other selectors maybe?) is a nice to have feature. Sadly, RHEL7 seems not to support it yet:

# ip link show type bridge
Error: either "dev" is duplicate, or "bridge" is a garbage.

Comment 1 Phil Sutter 2016-01-12 17:40:03 UTC
To enable this feature, the following upstream commit should be backported:

commit 712249d8fac88bcf3a9fd0b1de2263074075873b
Author: Vadim Kochan <vadim4j>
Date:   Wed Dec 10 10:11:29 2014 +0200

    ip link: Show devices by type
    
    Added new option 'type' to 'ip link show'
    command which allows to filter devices by type:
    
        ip link show type bridge
        ip link show type vlan
    
    Signed-off-by: Vadim Kochan <vadim4j>

Maybe a good opportunity to check if there are other simple enhancements missing which make life easier.

Comment 3 Phil Sutter 2016-01-25 21:42:13 UTC
This is a duplicate of bug 1297000, just specific to link type bridge, which it should not be as upstream did not fix the issue for that type separately.

*** This bug has been marked as a duplicate of bug 1297000 ***