Bug 1317909

Summary: Missing interface type information
Product: [Community] Virtualization Tools Reporter: Marek Hulan <mhulan>
Component: ruby-libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: oezr
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
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: 1276780    

Description Marek Hulan 2016-03-15 13:36:20 UTC
Description of problem:

When I use ruby-libvirt to get information about interface, there's no information about interface type. Therefore I can't determine what interface is a bridge and what not when I want to display select box of available bridges to use for bridged networking. Only workaround I'm able to see is using xml_desc and do the parsing myself.

Version-Release number of selected component (if applicable):
0.6.0

How reproducible:
always

Steps to Reproduce:
1. run irb
2. get the Libvirt::Interface object
3. try to determine it's type

Actual results:
no type method available

Expected results:
type method available returning the $TYPE from <interface type="$TYPE" ...> defintion