1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
This commit reverts commit 530122d. Commit 530122d contained changes to
how the mac address for an domain's interfaces was retrieved.  The
change was made due to an broken development environment and was
unnecessary.
This commit is contained in:
Carl Caum 2012-08-03 22:12:05 -07:00
parent 831be2d4f7
commit 5b0b1218f7

View file

@ -241,9 +241,7 @@ module Fog
# Currently only one ip address is returned, but in the future this could be multiple
# if the server has multiple network interface
def addresses(connection=connection, options={})
unless mac = self.mac
mac = Nokogiri::XML(`virsh dumpxml #{self.name}`).xpath('//domain/devices/interface/mac').first.attribute('address').content
end
mac=self.mac
# Aug 24 17:34:41 juno arpwatch: new station 10.247.4.137 52:54:00:88:5a:0a eth0.4
# Aug 24 17:37:19 juno arpwatch: changed ethernet address 10.247.4.137 52:54:00:27:33:00 (52:54:00:88:5a:0a) eth0.4