opennebula 5.4.5 → 5.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloud/CloudClient.rb +1 -1
- data/lib/opennebula.rb +1 -1
- data/lib/opennebula/virtual_machine.rb +6 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ebf0cd09e8809b697d40ebd505a144832774728
|
4
|
+
data.tar.gz: 33865b185c411eb20b55979a7fdfa9962ce2b0d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c7018e8700721a5f8d674fb1dbfc7543d581c4d928f0ca0f5f8a1d3a96794cdad931152be7f449770dedf31974095e68fd2c1c0b945f00e68d1f1caf3e1e3b7
|
7
|
+
data.tar.gz: 44ad7950f56107558ac1cd5ccfff15d02406c3f3390d4378fd23af4e67ee3b9228c72d5c2cd0423ce0315bf50b0c13b5fae1b352f1b6f956d07fcd12ef0aeadb
|
data/lib/cloud/CloudClient.rb
CHANGED
data/lib/opennebula.rb
CHANGED
@@ -743,7 +743,9 @@ module OpenNebula
|
|
743
743
|
#
|
744
744
|
# @return [Integer, OpenNebula::Error] the new Template ID in case of
|
745
745
|
# success, error otherwise
|
746
|
-
REMOVE_VNET_ATTRS = %w{AR_ID BRIDGE CLUSTER_ID IP MAC TARGET NIC_ID
|
746
|
+
REMOVE_VNET_ATTRS = %w{AR_ID BRIDGE CLUSTER_ID IP MAC TARGET NIC_ID
|
747
|
+
NETWORK_ID VN_MAD SECURITY_GROUPS VLAN_ID}
|
748
|
+
|
747
749
|
def save_as_template(name,description, persistent=nil)
|
748
750
|
img_ids = []
|
749
751
|
new_tid = nil
|
@@ -848,12 +850,11 @@ module OpenNebula
|
|
848
850
|
rc = Error.new('The NIC_ID is missing from the VM template')
|
849
851
|
raise
|
850
852
|
end
|
851
|
-
|
853
|
+
REMOVE_VNET_ATTRS.each do |attr|
|
852
854
|
nic.delete_element(attr)
|
853
855
|
end
|
854
|
-
|
855
|
-
replace <<
|
856
|
-
"TEMPLATE", true, "NIC[#{nic}]") << "\n"
|
856
|
+
|
857
|
+
replace << "NIC = [ " << nic.template_like_str(".").tr("\n", ",\n") << " ] \n"
|
857
858
|
end
|
858
859
|
|
859
860
|
# Required by the Sunstone Cloud View
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opennebula
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.4.
|
4
|
+
version: 5.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenNebula
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|