Rhev vlan information for vm


#1

Hi,

I need get information about name of vlan by vm. I Use next code:

begin
service = $evm.root[‘service’]
service.vms.each do |vm|
vm.hardware.nics.each do |nic|
next if nic.device_type != “ethernet”
$evm.log(‘info’, “#{nic.lan.inspect}”)

end
end

So if I look vm on Vmware it work good, but if I check vm on RHEV (version 3.6) I have nil.

In database I found next:
Table guest_devices column lan_id don’t have information for rhev, but exist for vmware.
Could somebody help me?