-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a topology view for a single physical infra provider
- Loading branch information
Showing
6 changed files
with
101 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1 @@ | ||
- tooltip_options = {"tooltip-placement" => "bottom", "uib-tooltip" => "{{vm.legendTooltip}}"} | ||
.topology{'ng-controller' => "containerTopologyController as vm"} | ||
.legend | ||
%label#selected | ||
%div{'ng-if' => "vm.kinds"} | ||
%kubernetes-topology-icon{tooltip_options, :kind => "ContainerReplicator"} | ||
%label | ||
%i.pficon.pficon-replicator | ||
= _("Replicators") | ||
%kubernetes-topology-icon{tooltip_options, :kind => "ContainerGroup"} | ||
%label | ||
%i.fa.fa-cubes | ||
= _("Pods") | ||
%kubernetes-topology-icon{tooltip_options, :kind => "Container"} | ||
%label | ||
%i.fa.fa-cube | ||
= _("Containers") | ||
%kubernetes-topology-icon{tooltip_options, :kind => "ContainerService"} | ||
%label | ||
%i.pficon.pficon-service | ||
= _("Services") | ||
%kubernetes-topology-icon{tooltip_options, :kind => "ContainerRoute"} | ||
%label | ||
%i.pficon.pficon-route | ||
= _("Routes") | ||
%kubernetes-topology-icon{tooltip_options, :kind => "ContainerNode"} | ||
%label | ||
%i.pficon.pficon-container-node | ||
= _("Nodes") | ||
%kubernetes-topology-icon{tooltip_options, :kind => "Vm"} | ||
%label | ||
%i.pficon.pficon-virtual-machine | ||
= _("VMs") | ||
%kubernetes-topology-icon{tooltip_options, :kind => "Host"} | ||
%label | ||
%i.pficon.pficon-screen | ||
= _("Hosts") | ||
|
||
.alert.alert-info.alert-dismissable | ||
%button.close{"aria-hidden" => "true", "data-dismiss" => "alert", :type => "button"} | ||
%span.pficon.pficon-close | ||
%span.pficon.pficon-info | ||
%strong | ||
= _("Click on the legend to show/hide entities, and double click/right click the entities in the graph to navigate to their summary pages.") | ||
.alert.alert-warning.alert-dismissable | ||
%button.close{"aria-hidden" => "true", "data-dismiss" => "alert", :type => "button"} | ||
%span.pficon.pficon-close | ||
%span.pficon.pficon-warning-triangle-o | ||
%strong | ||
= _("Note: displaying a very large number of objects in the topology display can adversely affect the performance of some web browsers.") | ||
= render :partial => "shared/topology/not_found_vm" | ||
%kubernetes-topology-graph{:items => "vm.items", :relations => "vm.relations", :kinds => "vm.kinds"} | ||
:javascript | ||
miq_bootstrap('.topology'); | ||
= render :partial => "ems_container/show_topology" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
- tooltip_options = {"tooltip-placement" => "bottom", "uib-tooltip" => "{{vm.legendTooltip}}"} | ||
.topology{'ng-controller' => "containerTopologyController as vm"} | ||
.legend | ||
%label#selected | ||
%div{'ng-if' => "vm.kinds"} | ||
%kubernetes-topology-icon{tooltip_options, :kind => "ContainerReplicator"} | ||
%label | ||
%i.pficon.pficon-replicator | ||
= _("Replicators") | ||
%kubernetes-topology-icon{tooltip_options, :kind => "ContainerGroup"} | ||
%label | ||
%i.fa.fa-cubes | ||
= _("Pods") | ||
%kubernetes-topology-icon{tooltip_options, :kind => "Container"} | ||
%label | ||
%i.fa.fa-cube | ||
= _("Containers") | ||
%kubernetes-topology-icon{tooltip_options, :kind => "ContainerService"} | ||
%label | ||
%i.pficon.pficon-service | ||
= _("Services") | ||
%kubernetes-topology-icon{tooltip_options, :kind => "ContainerRoute"} | ||
%label | ||
%i.pficon.pficon-route | ||
= _("Routes") | ||
%kubernetes-topology-icon{tooltip_options, :kind => "ContainerNode"} | ||
%label | ||
%i.pficon.pficon-container-node | ||
= _("Nodes") | ||
%kubernetes-topology-icon{tooltip_options, :kind => "Vm"} | ||
%label | ||
%i.pficon.pficon-virtual-machine | ||
= _("VMs") | ||
%kubernetes-topology-icon{tooltip_options, :kind => "Host"} | ||
%label | ||
%i.pficon.pficon-screen | ||
= _("Hosts") | ||
|
||
.alert.alert-info.alert-dismissable | ||
%button.close{"aria-hidden" => "true", "data-dismiss" => "alert", :type => "button"} | ||
%span.pficon.pficon-close | ||
%span.pficon.pficon-info | ||
%strong | ||
= _("Click on the legend to show/hide entities, and double click/right click the entities in the graph to navigate to their summary pages.") | ||
.alert.alert-warning.alert-dismissable | ||
%button.close{"aria-hidden" => "true", "data-dismiss" => "alert", :type => "button"} | ||
%span.pficon.pficon-close | ||
%span.pficon.pficon-warning-triangle-o | ||
%strong | ||
= _("Note: displaying a very large number of objects in the topology display can adversely affect the performance of some web browsers.") | ||
= render :partial => "shared/topology/not_found_vm" | ||
%kubernetes-topology-graph{:items => "vm.items", :relations => "vm.relations", :kinds => "vm.kinds"} | ||
:javascript | ||
miq_bootstrap('.topology'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
- tooltipOptions = {"tooltip-placement" => "bottom", "uib-tooltip" => "{{vm.legendTooltip}}"} | ||
.topology{'ng-controller' => "physicalInfraTopologyController as vm"} | ||
.legend | ||
%label#selected | ||
%div{'ng-if' => "vm.kinds"} | ||
%kubernetes-topology-icon{tooltipOptions, :kind => "PhysicalRack"} | ||
%label | ||
%i.pficon.pficon-enterprise | ||
= _("Physical Racks") | ||
%kubernetes-topology-icon{tooltipOptions, :kind => "PhysicalServer"} | ||
%label | ||
%i.pficon.pficon-server-group | ||
= _("Physical Servers") | ||
%kubernetes-topology-icon{tooltipOptions, :kind => "PhysicalSwitch"} | ||
%label | ||
%i.ff.ff-network-switch | ||
= _("Physical Switches") | ||
%kubernetes-topology-icon{tooltipOptions, :kind => "Host"} | ||
%label | ||
%i.pficon.pficon-screen | ||
= _("Hosts") | ||
%kubernetes-topology-icon{tooltipOptions, :kind => "Vm"} | ||
%label | ||
%i.pficon.pficon-screen | ||
= _("VMs") | ||
|
||
.alert.alert-info.alert-dismissable | ||
%button.close{"aria-hidden" => "true", "data-dismiss" => "alert", :type => "button"} | ||
%span.pficon.pficon-close | ||
%span.pficon.pficon-info | ||
%strong | ||
= _("Click on the legend to show/hide entities, and double click/right click the entities in the graph to navigate to their summary pages.") | ||
= render :partial => "shared/topology/not_found_vm" | ||
%kubernetes-topology-graph{:items => "vm.items", :relations => "vm.relations", :kinds => "vm.kinds"} | ||
:javascript | ||
miq_bootstrap('.topology'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1 @@ | ||
- tooltipOptions = {"tooltip-placement" => "bottom", "uib-tooltip" => "{{vm.legendTooltip}}"} | ||
.topology{'ng-controller' => "physicalInfraTopologyController as vm"} | ||
.legend | ||
%label#selected | ||
%div{'ng-if' => "vm.kinds"} | ||
%kubernetes-topology-icon{tooltipOptions, :kind => "PhysicalRack"} | ||
%label | ||
%i.pficon.pficon-enterprise | ||
= _("Physical Racks") | ||
%kubernetes-topology-icon{tooltipOptions, :kind => "PhysicalServer"} | ||
%label | ||
%i.pficon.pficon-server-group | ||
= _("Physical Servers") | ||
%kubernetes-topology-icon{tooltipOptions, :kind => "PhysicalSwitch"} | ||
%label | ||
%i.ff.ff-network-switch | ||
= _("Physical Switches") | ||
%kubernetes-topology-icon{tooltipOptions, :kind => "Host"} | ||
%label | ||
%i.pficon.pficon-screen | ||
= _("Hosts") | ||
%kubernetes-topology-icon{tooltipOptions, :kind => "Vm"} | ||
%label | ||
%i.pficon.pficon-screen | ||
= _("VMs") | ||
|
||
.alert.alert-info.alert-dismissable | ||
%button.close{"aria-hidden" => "true", "data-dismiss" => "alert", :type => "button"} | ||
%span.pficon.pficon-close | ||
%span.pficon.pficon-info | ||
%strong | ||
= _("Click on the legend to show/hide entities, and double click/right click the entities in the graph to navigate to their summary pages.") | ||
= render :partial => "shared/topology/not_found_vm" | ||
%kubernetes-topology-graph{:items => "vm.items", :relations => "vm.relations", :kinds => "vm.kinds"} | ||
:javascript | ||
miq_bootstrap('.topology'); | ||
= render :partial => "ems_physical_infra/show_topology" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters