lib/vagrant-libvirt/provider.rb in vagrant-libvirt-0.0.25 vs lib/vagrant-libvirt/provider.rb in vagrant-libvirt-0.0.26

- old
+ new

@@ -47,9 +47,21 @@ #} env = @machine.action('read_ssh_info') env[:machine_ssh_info] end + def mac_addresses + # Run a custom action called "read_mac_addresses" which will return + # a list of mac addresses used by the machine. The returned data will + # be in the following format: + # + # { + # <ADAPTER_ID>: <MAC> + # } + env = @machine.action('read_mac_addresses') + env[:machine_mac_addresses] + end + # This should return the state of the machine within this provider. # The state must be an instance of {MachineState}. def state # Run a custom action we define called "read_state" which does # what it says. It puts the state in the `:machine_state_id`