diff --git a/src/sunstone/models/OpenNebulaJSON/VirtualRouterJSON.rb b/src/sunstone/models/OpenNebulaJSON/VirtualRouterJSON.rb index feb16e9b52..792111d062 100644 --- a/src/sunstone/models/OpenNebulaJSON/VirtualRouterJSON.rb +++ b/src/sunstone/models/OpenNebulaJSON/VirtualRouterJSON.rb @@ -60,7 +60,7 @@ module OpenNebulaJSON def instantiate(params=Hash.new) if params['template'] - select_network = self['TEMPLATE/SUNSTONE_NETWORK_SELECT'] + select_network = self['TEMPLATE/SUNSTONE/NETWORK_SELECT'] if (select_network && select_network.upcase == "NO") params['template'].delete("NIC") end diff --git a/src/sunstone/public/app/utils/nics-section.js b/src/sunstone/public/app/utils/nics-section.js index 4223b750fc..57db59162e 100644 --- a/src/sunstone/public/app/utils/nics-section.js +++ b/src/sunstone/public/app/utils/nics-section.js @@ -50,7 +50,7 @@ define(function(require) { } try { - if (template_json.VMTEMPLATE.TEMPLATE.SUNSTONE_NETWORK_SELECT != "NO") { + if (template_json.VMTEMPLATE.TEMPLATE.SUNSTONE.NETWORK_SELECT != "NO") { var template_nic = template_json.VMTEMPLATE.TEMPLATE.NIC var nics = [] if ($.isArray(template_nic))