opennebula-cli 4.10.2 → 4.11.80.beta

Sign up to get free protection for your applications and to get access to all the features.
@@ -238,40 +238,40 @@ class OneVNetHelper < OpenNebulaHelper::OneHelper
238
238
 
239
239
  CLIHelper.print_header(str_h1 % ["ADDRESS RANGE POOL"], false)
240
240
 
241
+ arlist = []
242
+
241
243
  if !vn_hash['VNET']['AR_POOL']['AR'].nil?
242
244
  arlist = [vn_hash['VNET']['AR_POOL']['AR']].flatten
243
245
  end
244
246
 
245
- CLIHelper::ShowTable.new(nil, self) do
246
- column :AR, "", :size=>3 do |d|
247
- d["AR_ID"]
248
- end
247
+ arlist.each do |ar|
249
248
 
250
- column :TYPE, "", :left, :size=>5 do |d|
251
- d["TYPE"]
252
- end
249
+ CLIHelper.print_header("%-80s" % "AR #{ar["AR_ID"]}")
253
250
 
254
- column :SIZE, "", :size=>6 do |d|
255
- d["SIZE"]
256
- end
251
+ str="%-15s: %-20s"
252
+ puts str % ["SIZE", ar["SIZE"]]
253
+ puts str % ["LEASES", ar["USED_LEASES"]]
254
+ puts
257
255
 
258
- column :LEASES, "", :size=>6 do |d|
259
- d["USED_LEASES"]
260
- end
256
+ format = "%-10s %34s %34s"
257
+ CLIHelper.print_header(format % ["RANGE", "FIRST", "LAST"], false)
261
258
 
262
- column :MAC, "", :size=>17 do |d|
263
- d["MAC"]
259
+ puts format % ["MAC", ar["MAC"], ar["MAC_END"]]
260
+
261
+ if !ar["IP"].nil?
262
+ puts format % ["IP", ar["IP"], ar["IP_END"]]
264
263
  end
265
264
 
266
- column :IP, "", :size=>15 do |d|
267
- d["IP"]||"-"
265
+ if !ar["IP6_GLOBAL"].nil?
266
+ puts format % ["IP6_GLOBAL", ar["IP6_GLOBAL"], ar["IP6_GLOBAL_END"]]
268
267
  end
269
268
 
270
- column :GLOBAL_PREFIX, "", :right, :size=>22 do |d|
271
- d["GLOBAL_PREFIX"]||"-"
269
+ if !ar["IP6_ULA"].nil?
270
+ puts format % ["IP6_ULA", ar["IP6_ULA"], ar["IP6_ULA_END"]]
272
271
  end
273
272
 
274
- end.show(arlist, {})
273
+ puts
274
+ end
275
275
 
276
276
  puts
277
277
  CLIHelper.print_header(str_h1 % ["LEASES"], false)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opennebula-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.10.2
4
+ version: 4.11.80.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenNebula
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-16 00:00:00.000000000 Z
11
+ date: 2015-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opennebula
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.10.2
19
+ version: 4.11.80.beta
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.10.2
26
+ version: 4.11.80.beta
27
27
  description: Commands used to talk to OpenNebula
28
28
  email: contact@opennebula.org
29
29
  executables:
@@ -36,12 +36,15 @@ executables:
36
36
  - onegroup
37
37
  - onehost
38
38
  - oneimage
39
+ - onesecgroup
40
+ - oneshowback
39
41
  - onetemplate
40
42
  - oneuser
43
+ - onevcenter
44
+ - onevdc
41
45
  - onevm
42
46
  - onevnet
43
47
  - onezone
44
- - onevcenter
45
48
  extensions: []
46
49
  extra_rdoc_files: []
47
50
  files:
@@ -56,9 +59,12 @@ files:
56
59
  - bin/onegroup
57
60
  - bin/onehost
58
61
  - bin/oneimage
62
+ - bin/onesecgroup
63
+ - bin/oneshowback
59
64
  - bin/onetemplate
60
65
  - bin/oneuser
61
66
  - bin/onevcenter
67
+ - bin/onevdc
62
68
  - bin/onevm
63
69
  - bin/onevnet
64
70
  - bin/onezone
@@ -73,8 +79,10 @@ files:
73
79
  - lib/one_helper/onehost_helper.rb
74
80
  - lib/one_helper/oneimage_helper.rb
75
81
  - lib/one_helper/onequota_helper.rb
82
+ - lib/one_helper/onesecgroup_helper.rb
76
83
  - lib/one_helper/onetemplate_helper.rb
77
84
  - lib/one_helper/oneuser_helper.rb
85
+ - lib/one_helper/onevdc_helper.rb
78
86
  - lib/one_helper/onevm_helper.rb
79
87
  - lib/one_helper/onevnet_helper.rb
80
88
  - lib/one_helper/onezone_helper.rb
@@ -93,9 +101,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
101
  version: '0'
94
102
  required_rubygems_version: !ruby/object:Gem::Requirement
95
103
  requirements:
96
- - - ">="
104
+ - - ">"
97
105
  - !ruby/object:Gem::Version
98
- version: '0'
106
+ version: 1.3.1
99
107
  requirements: []
100
108
  rubyforge_project:
101
109
  rubygems_version: 2.4.5
@@ -103,3 +111,4 @@ signing_key:
103
111
  specification_version: 4
104
112
  summary: OpenNebula Command Line Interface
105
113
  test_files: []
114
+ has_rdoc: