Skip to content

Commit

Permalink
Introduce .kind on server to support StateMachine
Browse files Browse the repository at this point in the history
Automation Engine needs to know how a specific PhysicalServer
is managed. It performs AE routing based on this parameter
to support for different approach to be taken for each kind
(e.g. redfish vs xclarity).

Signed-off-by: Miha Pleško <miha.plesko@xlab.si>
  • Loading branch information
miha-plesko committed Mar 19, 2019
1 parent db711a0 commit 5f59c21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/physical_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,8 @@ def v_availability
def v_host_os
host.try(:vmm_product).nil? ? N_("") : host.vmm_product
end

def kind
'generic' # what kind of protocol is used to manage this server e.g. "redfish", "xclarity"
end
end

0 comments on commit 5f59c21

Please sign in to comment.