1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

Feature #4215: Show nic-id for VR nics, CLI and sunstone

This commit is contained in:
Carlos Martín 2016-01-28 17:28:58 +01:00
parent 4851a0c49f
commit d4867b44ae
2 changed files with 10 additions and 0 deletions

View File

@ -171,6 +171,14 @@ class OneVirtualRouterHelper < OpenNebulaHelper::OneHelper
}
CLIHelper::ShowTable.new(nil, self) do
column :ID, "", :size=>3 do |d|
if d["DOUBLE_ENTRY"]
""
else
d["NIC_ID"]
end
end
column :NETWORK, "", :left, :size=>20 do |d|
if d["DOUBLE_ENTRY"]
""

View File

@ -40,6 +40,7 @@
<table class="dataTable">
<thead>
<tr>
<th>{{tr "ID"}}</th>
<th>{{tr "Network"}}</th>
<th>{{tr "Floating IP"}}</th>
<th>{{tr "Floating IPv6 ULA"}}</th>
@ -50,6 +51,7 @@
<tbody>
{{#each nics}}
<tr>
<td>{{NIC_ID}}</td>
<td>{{NETWORK}}</td>
<td>{{valOrDefault IP "--"}}</td>
<td>{{valOrDefault IP6_ULA "--"}}</td>