You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.
If nothing else, I would like to try and patch it for our own use, but I am having trouble figuring out where exactly in the code this would need to be fixed. Does anybody have any insight?
hi @jrgarcia , do you have time take a look? I have no idea why the "selectedVnic" does not return a array of string. It only return a array of "HostVirtualNic" object, but this object doesn't include any info on it. Thanks!
Hi,
My environment:
ESXi 5.1 + vCenter 5.1
CentOS 6.4 x64 + ruby 1.9.3p448 + RbVmomi 1.6.0
I've successfully tryed to execute following commands (rails console with rbvmomi library):
opt = {:host=>'myvcenterhost',:user=>'myuser',:password=>'mypassword',:insecure=>true}
vim = RbVmomi::VIM.connect opt
dc = vim.serviceInstance.find_datacenter("datacenter_name") or fail "datacenter not found"
cluster = dc.hostFolder.childEntity.find { |x| x.name == 'cluster_name' } or fail "cluster not found"
host = cluster.host.find { |x| x.name == 'host_name' } or fail 'host not found'
hostvnicmanager = host.config.virtualNicManagerInfo
hostnetconfig = hostvnicmanager.netConfig
hostmgmt = hostnetconfig.find { |x| x.nicType == 'management' } or fail 'not found'
hostmgmtvnics = hostmgmt.selectedVnic
But all I've got at the last step is array of data which doesn't tell me anything to identify management vmk-s:
irb(main):009:0> hostmgmtvnics = hostmgmt.selectedVnic
[2014-06-03 13:09:36 +0300] => [#<RbVmomi::VIM::HostVirtualNic:0x000000094c0168 @props={:dynamicProperty=>[]}>, #<RbVmomi::VIM::HostVirtualNic:0x000000094bf768 @props={:dynamicProperty=>[]}>]
irb(main):010:0> hostmgmtvnics = hostmgmt.selectedVnic[0]
[2014-06-03 13:16:01 +0300] => #<RbVmomi::VIM::HostVirtualNic:0x000000094c0168 @props={:dynamicProperty=>[]}>
irb(main):011:0> hostmgmtvnics = hostmgmt.selectedVnic[0].key
[2014-06-03 13:19:10 +0300] => nil
Although I can see management interfaces with the MOB browser:
selectedVnic string[]
"management.key-vim.host.VirtualNic-vmk0"
"management.key-vim.host.VirtualNic-vmk1"
It seems there's a bug in retrieving list of strings in selectedVnic.
The text was updated successfully, but these errors were encountered: