-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Physical server page #970
Physical server page #970
Changes from 1 commit
ca99b62
95edeb1
0ef30c0
d60cc0a
3c0e12f
8affee9
aa60337
92c7549
4feb863
7142a11
bef6016
471a4e2
fb91056
ea20828
0a3a4a3
4b2916a
7bb757a
7ad7e4b
019c7f4
fefe826
4d82e5d
5c0ef75
dc082d9
6d646bc
26de5af
4b08d75
87c39e4
f3c5a59
f069e05
19d23a1
f3f6bdc
9b82528
7e836c4
762d426
3f36681
8adb93b
301bb36
1c139d0
017ae3f
088fb68
0fc2547
4bfd07a
462f14f
13ee483
420a230
ee96de7
6e61f01
fd8c51e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,68 @@ def show_ad_hoc_metrics | |
drop_breadcrumb(:name => @ems.name + _(" (Ad hoc Metrics)"), :url => show_link(@ems)) | ||
end | ||
|
||
def show_topology | ||
@showtype = "topology" | ||
@lastaction = "show_topology" | ||
drop_breadcrumb(:name => @ems.name + _(" (Topology)"), :url => show_link(@ems)) | ||
end | ||
|
||
def view_setup_params | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where is this method being called? What does it do? |
||
{ | ||
"instances" => [ManageIQ::Providers::CloudManager::Vm, _("Instances")], | ||
"images" => [ManageIQ::Providers::CloudManager::Template, _("Images")], | ||
"block_storage_managers" => [ManageIQ::Providers::StorageManager, | ||
_("Block Storage Managers"), | ||
:block_storage_managers], | ||
"object_storage_managers" => [ManageIQ::Providers::StorageManager, | ||
_("Object Storage Managers"), | ||
:object_storage_managers], | ||
"storage_managers" => [ManageIQ::Providers::StorageManager, | ||
_("Storage Managers"), | ||
:storage_managers], | ||
"miq_templates" => [MiqTemplate, _("Templates")], | ||
"vms" => [Vm, _("VMs")], | ||
"orchestration_stacks" => [OrchestrationStack, _("Stacks")], | ||
# "configuration_jobs" => [ConfigurationJob, _("Configuration Jobs")], | ||
"cloud_object_store_containers" => [CloudObjectStoreContainer, _('Cloud Object Store Containers')], | ||
'containers' => [Container, _('Containers')], | ||
'container_replicators' => [ContainerReplicator, _('Container Replicators')], | ||
'container_nodes' => [ContainerNode, _('Container Nodes')], | ||
'container_groups' => [ContainerGroup, _('Pods')], | ||
'container_services' => [ContainerService, _('Container Services')], | ||
'container_images' => [ContainerImage, _('Container Images')], | ||
'container_routes' => [ContainerRoute, _('Container Routes')], | ||
'container_builds' => [ContainerBuild, _('Container Builds')], | ||
'container_projects' => [ContainerProject, _('Container Projects')], | ||
'container_image_registries' => [ContainerImageRegistry, _('Container Image Registries')], | ||
'container_templates' => [ContainerTemplate, _('Container Templates')], | ||
'availability_zones' => [AvailabilityZone, _('Availability Zones')], | ||
'host_aggregates' => [HostAggregate, _('Host Aggregates')], | ||
'middleware_servers' => [MiddlewareServer, _('Middleware Servers')], | ||
'middleware_deployments' => [MiddlewareDeployment, _('Middleware Deployments')], | ||
'middleware_datasources' => [MiddlewareDatasource, _('Middleware Datasources')], | ||
'middleware_domains' => [MiddlewareDomain, _('Middleware Domains')], | ||
'middleware_server_groups' => [MiddlewareServerGroup, _('Middleware Server Groups')], | ||
'middleware_messagings' => [MiddlewareMessaging, _('Middleware Messagings')], | ||
'cloud_tenants' => [CloudTenant, _('Cloud Tenants')], | ||
'cloud_volumes' => [CloudVolume, _('Cloud Volumes')], | ||
'cloud_volume_snapshots' => [CloudVolumeSnapshot, _('Cloud Volume Snapshots')], | ||
'flavors' => [Flavor, _('Flavors')], | ||
'security_groups' => [SecurityGroup, _('Security Groups')], | ||
'floating_ips' => [FloatingIp, _('Floating IPs')], | ||
'network_routers' => [NetworkRouter, _('Network Routers')], | ||
'network_ports' => [NetworkPort, _('Network Ports')], | ||
'cloud_subnets' => [CloudSubnet, _('Cloud Subnets')], | ||
'cloud_networks' => [CloudNetwork, _('Cloud Networks')], | ||
'load_balancers' => [LoadBalancer, _('Load Balancers')], | ||
'storages' => [Storage, _('Managed Datastores')], | ||
'ems_clusters' => [EmsCluster, title_for_clusters], | ||
'persistent_volumes' => [PersistentVolume, _('Volumes'), :persistent_volumes], | ||
'hosts' => [Host, _("Managed Hosts")], | ||
'physical_servers' => [PhysicalServer, _("Physical Servers")], | ||
} | ||
end | ||
|
||
def display_block_storage_managers | ||
nested_list('block_storage_manager', ManageIQ::Providers::StorageManager, :parent_method => :block_storage_managers) | ||
end | ||
|
@@ -77,12 +139,6 @@ def display_hosts | |
nested_list('hosts', Host, :breadcrumb_title => _("Managed Hosts")) | ||
end | ||
|
||
def view_setup_params | ||
{ | ||
'physical_servers' => [PhysicalServer, _("Physical Servers")], | ||
} | ||
end | ||
|
||
class_methods do | ||
def display_methods | ||
%w( | ||
|
@@ -93,7 +149,7 @@ def display_methods | |
host_aggregates hosts images instances load_balancers middleware_datasources middleware_deployments | ||
middleware_domains middleware_messagings middleware_server_groups middleware_servers miq_templates | ||
network_ports network_routers object_storage_managers orchestration_stacks persistent_volumes | ||
security_groups storage_managers storages vms physical_servers | ||
security_groups storage_managers storages vms | ||
) | ||
end | ||
|
||
|
@@ -385,6 +441,10 @@ def button | |
when "network_router_tag" then tag(NetworkRouter) | ||
when "orchestration_stack_tag" then tag(OrchestrationStack) | ||
when "security_group_tag" then tag(SecurityGroup) | ||
# Physical server | ||
when "physical_server_refresh" then refreshphysicalservers | ||
when "physical_server_delete" then deletephysicalservers | ||
when "physical_server_edit" then editphysicalservers | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would expect this |
||
end | ||
|
||
pfx = pfx_for_vm_button_pressed(params[:pressed]) | ||
|
@@ -722,7 +782,6 @@ def form_instance_vars | |
@vmware_cloud_api_versions = retrieve_vmware_cloud_api_versions | ||
@emstype_display = model.supported_types_and_descriptions_hash[@ems.emstype] | ||
@nuage_api_versions = retrieve_nuage_api_versions | ||
@hawkular_security_protocols = retrieve_hawkular_security_protocols | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How is this change related to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as below. |
||
end | ||
|
||
def retrieve_provider_regions | ||
|
@@ -775,13 +834,6 @@ def retrieve_container_security_protocols | |
[_('SSL without validation'), 'ssl-without-validation']] | ||
end | ||
|
||
def retrieve_hawkular_security_protocols | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this unrelated method being removed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this was changes in the master branch and came up with a merge made. But this is fixed in the next commits: |
||
[[_('SSL'), 'ssl-with-validation'], | ||
[_('SSL trusting custom CA'), 'ssl-with-validation-custom-ca'], | ||
[_('SSL without validation'), 'ssl-without-validation'], | ||
[_('Non-SSL'), 'non-ssl']] | ||
end | ||
|
||
# Get variables from edit form | ||
def get_form_vars | ||
@ems = @edit[:ems_id] ? model.find_by_id(@edit[:ems_id]) : model.new | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this method and instead use the
MoreShowActions
mixin which has theshow_topology
method.