From 551cd4aacd2210c8f32a615e3ceb921d02517ff9 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Thu, 21 Dec 2017 10:39:26 +0100 Subject: [PATCH] B #1591: Remove VLAN_ID from saved_as VM templates --- src/oca/ruby/opennebula/virtual_machine.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/oca/ruby/opennebula/virtual_machine.rb b/src/oca/ruby/opennebula/virtual_machine.rb index f7b4de9167..46efcf2ae2 100644 --- a/src/oca/ruby/opennebula/virtual_machine.rb +++ b/src/oca/ruby/opennebula/virtual_machine.rb @@ -743,7 +743,9 @@ module OpenNebula # # @return [Integer, OpenNebula::Error] the new Template ID in case of # success, error otherwise - REMOVE_VNET_ATTRS = %w{AR_ID BRIDGE CLUSTER_ID IP MAC TARGET NIC_ID NETWORK_ID VN_MAD SECURITY_GROUPS} + REMOVE_VNET_ATTRS = %w{AR_ID BRIDGE CLUSTER_ID IP MAC TARGET NIC_ID + NETWORK_ID VN_MAD SECURITY_GROUPS VLAN_ID} + def save_as_template(name,description, persistent=nil) img_ids = [] new_tid = nil