1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-24 21:34:01 +03:00

Feature #2858: Fix onevnet cli columns

(cherry picked from commit 0d14b64e484c9f02249fec4df0a6dbbb349a2c3f)
This commit is contained in:
Carlos Martín 2014-07-16 17:50:05 +02:00
parent 63d8cae268
commit 118fcf4782
2 changed files with 5 additions and 18 deletions

View File

@ -5,7 +5,7 @@
:USER:
:desc: Username of the Virtual Network owner
:size: 12
:size: 15
:left: true
:GROUP:
@ -15,7 +15,7 @@
:NAME:
:desc: Name of the Virtual Network
:size: 15
:size: 19
:left: true
:CLUSTER:
@ -23,14 +23,6 @@
:size: 10
:left: true
:TYPE:
:desc: Type of Virtual Network
:size: 6
:SIZE:
:desc: Size of the Virtual Network
:size: 5
:BRIDGE:
:desc: Bridge associated to the Virtual Network
:size: 8
@ -46,6 +38,5 @@
- :GROUP
- :NAME
- :CLUSTER
- :TYPE
- :BRIDGE
- :LEASES

View File

@ -99,7 +99,7 @@ class OneVNetHelper < OpenNebulaHelper::OneHelper
end
column :USER, "Username of the Virtual Network owner", :left,
:size=>12 do |d|
:size=>15 do |d|
helper.user_name(d, options)
end
@ -109,7 +109,7 @@ class OneVNetHelper < OpenNebulaHelper::OneHelper
end
column :NAME, "Name of the Virtual Network", :left,
:size=>15 do |d|
:size=>19 do |d|
d["NAME"]
end
@ -117,10 +117,6 @@ class OneVNetHelper < OpenNebulaHelper::OneHelper
OpenNebulaHelper.cluster_str(d["CLUSTER"])
end
column :SIZE, "Size of the Virtual Network", :size=>5 do |d|
d["SIZE"]
end
column :BRIDGE, "Bridge associated to the Virtual Network", :left,
:size=>8 do |d|
d["BRIDGE"]
@ -131,7 +127,7 @@ class OneVNetHelper < OpenNebulaHelper::OneHelper
d["USED_LEASES"]
end
default :ID, :USER, :GROUP, :NAME, :CLUSTER, :TYPE, :BRIDGE, :LEASES
default :ID, :USER, :GROUP, :NAME, :CLUSTER, :BRIDGE, :LEASES
end
table