Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ Static IP Address Create
Set Environment Variable GOVC_USERNAME Administrator@vsphere.local
Set Environment Variable GOVC_PASSWORD Admin\!23

Add Host To Distributed Switch /dc1/host/cls

Log To Console Deploy VIC to the VC cluster
Set Environment Variable TEST_URL_ARRAY ${vc-ip}
Set Environment Variable TEST_USERNAME Administrator@vsphere.local
Expand Down
17 changes: 17 additions & 0 deletions tests/resources/nimbus-testbeds/vic-simple-cluster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,23 @@
]
).wait_for_completion
Log.info "bridge DPG created"

Log.info "Add hosts to the DVS"
onecluster_pnic_spec = [ VIM::DistributedVirtualSwitchHostMemberPnicSpec({:pnicDevice => 'vmnic1'}) ]
dvs_config = VIM::DVSConfigSpec({
:configVersion => dvs.config.configVersion,
:host => cluster.host.map do |host|
{
:operation => :add,
:host => host,
:backing => VIM::DistributedVirtualSwitchHostMemberPnicBacking({
:pnicSpec => onecluster_pnic_spec
})
}
end
})
dvs.ReconfigureDvs_Task(:spec => dvs_config).wait_for_completion
Log.info "Hosts added to DVS successfully"
end
}
end
Expand Down