Hi Crish, I agree. But virsh iface-list  confirms the listing of interface, if it's network script is available in /etc/sysconfig/network-scripts, so getting this information from ifconfig or other commands is not possible.
 
This patch uses the ifup script to know the network script location as it different for each distro. Then it will scan through all ifcfg files and find the entry DEVICE=<interface name>. which is the exact logic being used by virsh iface-list


So to find out if it is bonded or bridged, we are using other linux native commands, not depends on any scripts

As for redhat,suse and fedora concerns this would work perfectly. Let me know if you think other wise. I am ready with pathes with virsh iface-mac and iface-name. Once we complete this i will update those too soon.

For bonded i have to twek my patch a little. I will submit it soon.