# File lib/ovirt/interface.rb, line 36 def parse_xml_attributes!(xml) @mac = (xml/'mac').first[:address] rescue nil #template interfaces doesn't have MAC address. @interface = (xml/'interface').first.text @network = (xml/'network').first[:id] @vm = Link::new(@client, (xml/'vm').first[:id], (xml/'vm').first[:href]) if (xml/'vm') rescue nil @template = Link::new(@client, (xml/'template').first[:id], (xml/'template').first[:href]) rescue nil end