opennebula-cli 4.90.10.rc1 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d6a5ac89156c41b32c7dda603606ea64843a5951
4
- data.tar.gz: 230a6c25080f7057b86cbe31a2cf287700a2ef5b
3
+ metadata.gz: 0d9b56960590291cd32e8624224784f6d457b0dd
4
+ data.tar.gz: 7da70ea462ad1446c4ed9916b02f8827d0a4bb90
5
5
  SHA512:
6
- metadata.gz: 180e52d5207e7e8ae08ac0d2c973dd538f1c124a1e10c85a83fc479e41c8dd8d8aeb82a0739f85d2984e1016a781e7ec2943d0f8303f50a230c7e6e736aee0cd
7
- data.tar.gz: 92d169992c1679bc7769f24fd8bf40e09420bfeff0b415746f0f52065f1f1b39a7580506017e09c9b6406a643b71aab4bd7f9a137ebf3e114d959b6c90f6a850
6
+ metadata.gz: 159f97db54fa505c0b8e69a14293f5746d8769425bcd8e80d706865c8b008f2c029975854b951117a04483f3e546736f48e355a162f6d86075d73a211c42265a
7
+ data.tar.gz: 1eb956cfd583f699cf2e5ee61c0e8ec557a9c6244758a965bbeb251548a804219d6736be73543003fb9193a098bb932f7541e07620606a30e32d653c754c27eb
@@ -237,10 +237,14 @@ cmd=CommandParser::CmdParser.new(ARGV) do
237
237
  nic_attach_desc = <<-EOT.unindent
238
238
  Attaches a NIC to a VirtualRouter, and each one of its VMs. When using
239
239
  --file add only one NIC instance.
240
+
241
+ Note if you are using a HA configuration for this router, --float can be
242
+ added. When an IP is requested in HA clusters use --float.
240
243
  EOT
241
244
 
242
245
  command :"nic-attach", nic_attach_desc, :vrouterid,
243
- :options => [OneVMHelper::FILE, OneVMHelper::NETWORK, OneVMHelper::IP] do
246
+ :options => [OneVMHelper::FILE, OneVMHelper::NETWORK, OneVMHelper::IP,
247
+ OneVirtualRouterHelper::FLOAT] do
244
248
 
245
249
  if options[:file].nil? and options[:network].nil?
246
250
  STDERR.puts "Provide a template file or a network:"
@@ -253,12 +257,20 @@ cmd=CommandParser::CmdParser.new(ARGV) do
253
257
  template = File.read(options[:file])
254
258
  else
255
259
  network_id = options[:network]
256
- ip = options[:ip]
260
+ ip = options[:ip]
261
+ float = options[:float]
262
+
263
+ template = "NIC = [ NETWORK_ID = #{network_id}"
264
+
257
265
  if ip
258
- template = "NIC = [ NETWORK_ID = #{network_id}, IP = #{ip} ]"
259
- else
260
- template = "NIC = [ NETWORK_ID = #{network_id} ]"
266
+ template += ", IP = #{ip}"
261
267
  end
268
+
269
+ if float
270
+ template += ", FLOATING_IP =\"yes\""
271
+ end
272
+
273
+ template += " ]"
262
274
  end
263
275
 
264
276
  helper.perform_action(args[0],options,"Attach NIC") do |vr|
@@ -24,6 +24,12 @@ class OneVirtualRouterHelper < OpenNebulaHelper::OneHelper
24
24
  :description => "Show all template data"
25
25
  }
26
26
 
27
+ FLOAT = {
28
+ :name => "float",
29
+ :large => "--float",
30
+ :description => "Makes this IP request a Floating one"
31
+ }
32
+
27
33
  def self.rname
28
34
  "VROUTER"
29
35
  end
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.90.10.rc1
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenNebula
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-07 00:00:00.000000000 Z
11
+ date: 2016-06-15 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.90.10.rc1
19
+ version: 5.0.0
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.90.10.rc1
26
+ version: 5.0.0
27
27
  description: Commands used to talk to OpenNebula
28
28
  email: contact@opennebula.org
29
29
  executables:
@@ -43,12 +43,12 @@ executables:
43
43
  - oneuser
44
44
  - onevdc
45
45
  - onevnet
46
- - onevrouter
47
46
  - onezone
48
47
  - oneimage
49
48
  - onevm
50
49
  - oneacct
51
50
  - onevcenter
51
+ - onevrouter
52
52
  extensions: []
53
53
  extra_rdoc_files: []
54
54
  files:
@@ -112,9 +112,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: 1.3.1
117
+ version: '0'
118
118
  requirements: []
119
119
  rubyforge_project:
120
120
  rubygems_version: 2.5.1