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:
parent
63d8cae268
commit
118fcf4782
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
:USER:
|
:USER:
|
||||||
:desc: Username of the Virtual Network owner
|
:desc: Username of the Virtual Network owner
|
||||||
:size: 12
|
:size: 15
|
||||||
:left: true
|
:left: true
|
||||||
|
|
||||||
:GROUP:
|
:GROUP:
|
||||||
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
:NAME:
|
:NAME:
|
||||||
:desc: Name of the Virtual Network
|
:desc: Name of the Virtual Network
|
||||||
:size: 15
|
:size: 19
|
||||||
:left: true
|
:left: true
|
||||||
|
|
||||||
:CLUSTER:
|
:CLUSTER:
|
||||||
@ -23,14 +23,6 @@
|
|||||||
:size: 10
|
:size: 10
|
||||||
:left: true
|
:left: true
|
||||||
|
|
||||||
:TYPE:
|
|
||||||
:desc: Type of Virtual Network
|
|
||||||
:size: 6
|
|
||||||
|
|
||||||
:SIZE:
|
|
||||||
:desc: Size of the Virtual Network
|
|
||||||
:size: 5
|
|
||||||
|
|
||||||
:BRIDGE:
|
:BRIDGE:
|
||||||
:desc: Bridge associated to the Virtual Network
|
:desc: Bridge associated to the Virtual Network
|
||||||
:size: 8
|
:size: 8
|
||||||
@ -46,6 +38,5 @@
|
|||||||
- :GROUP
|
- :GROUP
|
||||||
- :NAME
|
- :NAME
|
||||||
- :CLUSTER
|
- :CLUSTER
|
||||||
- :TYPE
|
|
||||||
- :BRIDGE
|
- :BRIDGE
|
||||||
- :LEASES
|
- :LEASES
|
||||||
|
@ -99,7 +99,7 @@ class OneVNetHelper < OpenNebulaHelper::OneHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
column :USER, "Username of the Virtual Network owner", :left,
|
column :USER, "Username of the Virtual Network owner", :left,
|
||||||
:size=>12 do |d|
|
:size=>15 do |d|
|
||||||
helper.user_name(d, options)
|
helper.user_name(d, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ class OneVNetHelper < OpenNebulaHelper::OneHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
column :NAME, "Name of the Virtual Network", :left,
|
column :NAME, "Name of the Virtual Network", :left,
|
||||||
:size=>15 do |d|
|
:size=>19 do |d|
|
||||||
d["NAME"]
|
d["NAME"]
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -117,10 +117,6 @@ class OneVNetHelper < OpenNebulaHelper::OneHelper
|
|||||||
OpenNebulaHelper.cluster_str(d["CLUSTER"])
|
OpenNebulaHelper.cluster_str(d["CLUSTER"])
|
||||||
end
|
end
|
||||||
|
|
||||||
column :SIZE, "Size of the Virtual Network", :size=>5 do |d|
|
|
||||||
d["SIZE"]
|
|
||||||
end
|
|
||||||
|
|
||||||
column :BRIDGE, "Bridge associated to the Virtual Network", :left,
|
column :BRIDGE, "Bridge associated to the Virtual Network", :left,
|
||||||
:size=>8 do |d|
|
:size=>8 do |d|
|
||||||
d["BRIDGE"]
|
d["BRIDGE"]
|
||||||
@ -131,7 +127,7 @@ class OneVNetHelper < OpenNebulaHelper::OneHelper
|
|||||||
d["USED_LEASES"]
|
d["USED_LEASES"]
|
||||||
end
|
end
|
||||||
|
|
||||||
default :ID, :USER, :GROUP, :NAME, :CLUSTER, :TYPE, :BRIDGE, :LEASES
|
default :ID, :USER, :GROUP, :NAME, :CLUSTER, :BRIDGE, :LEASES
|
||||||
end
|
end
|
||||||
|
|
||||||
table
|
table
|
||||||
|
Loading…
Reference in New Issue
Block a user