@@ -3,6 +3,7 @@ class ManageIQ::Providers::Vmware::InfraManager::Host < ::Host
33 include ManageIQ ::Providers ::Vmware ::InfraManager ::EmsRefObjMixin
44
55 supports :capture
6+ supports :update
67
78 # overrides base start to support "standby" powerstate
89 supports :start do
@@ -75,4 +76,93 @@ def reserve_next_available_vnc_port
7576 def self . display_name ( number = 1 )
7677 n_ ( 'Host (Vmware)' , 'Hosts (Vmware)' , number )
7778 end
79+
80+ def params_for_update
81+ {
82+ :fields => [
83+ {
84+ :component => 'sub-form' ,
85+ :id => 'endpoints-subform' ,
86+ :name => 'endpoints-subform' ,
87+ :title => _ ( "Endpoints" ) ,
88+ :fields => [
89+ :component => 'tabs' ,
90+ :name => 'tabs' ,
91+ :fields => [
92+ {
93+ :component => 'tab-item' ,
94+ :id => 'ws-tab' ,
95+ :name => 'ws-tab' ,
96+ :title => _ ( 'Web Service' ) ,
97+ :fields => [
98+ {
99+ :component => 'validate-host-credentials' ,
100+ :id => 'endpoints.ws.valid' ,
101+ :name => 'endpoints.ws.valid' ,
102+ :skipSubmit => true ,
103+ :isRequired => true ,
104+ :fields => [
105+ {
106+ :component => "text-field" ,
107+ :id => "authentications.ws.userid" ,
108+ :name => "authentications.ws.userid" ,
109+ :label => _ ( "Username" ) ,
110+ :isRequired => true ,
111+ :validate => [ { :type => "required" } ] ,
112+ } ,
113+ {
114+ :component => "password-field" ,
115+ :id => "authentications.ws.password" ,
116+ :name => "authentications.ws.password" ,
117+ :label => _ ( "Password" ) ,
118+ :type => "password" ,
119+ :isRequired => true ,
120+ :validate => [ { :type => "required" } ] ,
121+ :helperText => _ ( 'Used for access to Web Services.' )
122+ } ,
123+ ] ,
124+ } ,
125+ ] ,
126+ } ,
127+ {
128+ :component => 'tab-item' ,
129+ :id => 'remote-tab' ,
130+ :name => 'remote-tab' ,
131+ :title => _ ( 'Remote' ) ,
132+ :fields => [
133+ {
134+ :component => 'validate-remote-credentials' ,
135+ :id => 'endpoints.remote.valid' ,
136+ :name => 'endpoints.remote.valid' ,
137+ :skipSubmit => true ,
138+ :isRequired => true ,
139+ :fields => [
140+ {
141+ :component => "text-field" ,
142+ :id => "authentications.remote.userid" ,
143+ :name => "authentications.remote.userid" ,
144+ :label => _ ( "Username" ) ,
145+ :isRequired => true ,
146+ :validate => [ { :type => "required" } ] ,
147+ } ,
148+ {
149+ :component => "password-field" ,
150+ :id => "authentications.remote.password" ,
151+ :name => "authentications.remote.password" ,
152+ :label => _ ( "Password" ) ,
153+ :type => "password" ,
154+ :isRequired => true ,
155+ :validate => [ { :type => "required" } ] ,
156+ :helperText => _ ( 'Used for SSH login.' )
157+ } ,
158+ ] ,
159+ } ,
160+ ] ,
161+ } ,
162+ ]
163+ ]
164+ } ,
165+ ]
166+ }
167+ end
78168end
0 commit comments