Skip to content

Commit

Permalink
Merge pull request #23165 from nasark/add_osv_vendor_types
Browse files Browse the repository at this point in the history
Add OpenShift Virtualization vendor types for VMs and hosts
  • Loading branch information
agrare committed Sep 10, 2024
2 parents 7babb13 + a9643b9 commit 617c3d9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
1 change: 1 addition & 0 deletions app/models/host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Host < ApplicationRecord
"kubevirt" => "KubeVirt",
"vmware" => "VMware",
"openstack_infra" => "OpenStack Infrastructure",
"openshift_infra" => "OpenShift Virtualization",
"ibm_power_hmc" => "IBM Power HMC",
"unknown" => "Unknown",
nil => "Unknown",
Expand Down
39 changes: 20 additions & 19 deletions app/models/vm_or_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,26 @@ class VmOrTemplate < ApplicationRecord

VENDOR_TYPES = {
# DB Displayed
"azure" => "Azure",
"azure_stack" => "AzureStack",
"vmware" => "VMware",
"microsoft" => "Microsoft",
"xen" => "XenSource",
"parallels" => "Parallels",
"amazon" => "Amazon",
"redhat" => "Red Hat",
"ovirt" => "oVirt",
"openstack" => "OpenStack",
"oracle" => "Oracle",
"google" => "Google",
"kubevirt" => "KubeVirt",
"ibm_cloud" => "IBM Cloud",
"ibm_power_vs" => "IBM Power Systems Virtual Server",
"ibm_power_vc" => "IBM PowerVC",
"ibm_power_hmc" => "IBM Power HMC",
"ibm_z_vm" => "IBM Z/VM",
"unknown" => "Unknown"
"azure" => "Azure",
"azure_stack" => "AzureStack",
"vmware" => "VMware",
"microsoft" => "Microsoft",
"xen" => "XenSource",
"parallels" => "Parallels",
"amazon" => "Amazon",
"redhat" => "Red Hat",
"ovirt" => "oVirt",
"openstack" => "OpenStack",
"openshift_infra" => "OpenShift Virtualization",
"oracle" => "Oracle",
"google" => "Google",
"kubevirt" => "KubeVirt",
"ibm_cloud" => "IBM Cloud",
"ibm_power_vs" => "IBM Power Systems Virtual Server",
"ibm_power_vc" => "IBM PowerVC",
"ibm_power_hmc" => "IBM Power HMC",
"ibm_z_vm" => "IBM Z/VM",
"unknown" => "Unknown"
}

POWER_OPS = %w[start stop suspend reset shutdown_guest standby_guest reboot_guest]
Expand Down

0 comments on commit 617c3d9

Please sign in to comment.