automatically insert numa_cpus[:id] based on array index, and remove user's ability to edit

This commit is contained in:
Homero Pawlowski
2017-08-16 11:50:29 -04:00
parent 8bf16ba34f
commit 26b3e3c8fe
2 changed files with 4 additions and 4 deletions

View File

@@ -306,8 +306,8 @@ end
```
v.cpus = 4
v.numa_nodes = [
{:id => 0, :cpus => "0-1", :memory => "1024"},
{:id => 1, :cpus => "2-3", :memory => "4096"}
{:cpus => "0-1", :memory => "1024"},
{:cpus => "2-3", :memory => "4096"}
]
```
* `loader` - Sets path to custom UEFI loader.

View File

@@ -18,8 +18,8 @@
<% end %>
<% if @numa_nodes %>
<numa>
<% @numa_nodes.each do |node| %>
<cell id='<%= node[:id] %>' cpus='<%= node[:cpus] %>' memory='<%= node[:memory] %>'/>
<% @numa_nodes.each_with_index do |node, index| %>
<cell id='<%= index %>' cpus='<%= node[:cpus] %>' memory='<%= node[:memory] %>'/>
<% end %>
</numa>
<% end %>