From 0c64471753d3ecc41cace569150d4c45149d4fb8 Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Fri, 12 Dec 2014 19:03:56 +0100 Subject: [PATCH] Feature #3306: Add Sunstone support for importing vCenter networkFeature #3306: Add Sunstone support for importing vCenter networkss --- src/cli/onevcenter | 4 +- src/sunstone/public/js/plugins/hosts-tab.js | 101 ++++++++++++++++++-- 2 files changed, 95 insertions(+), 10 deletions(-) diff --git a/src/cli/onevcenter b/src/cli/onevcenter index 08f0ae7b00..4a73a0bb8d 100755 --- a/src/cli/onevcenter +++ b/src/cli/onevcenter @@ -315,7 +315,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do "[Enter for default]: " up = STDIN.gets.strip ar_str += ",ULA_PREFIX=" + up if !up.empty? - when "E" + when "e" ar_str += "ETHER\"" STDOUT.print " Please input the first MAC "\ "in the range [Enter for default]: " @@ -337,8 +337,6 @@ cmd=CommandParser::CmdParser.new(ARGV) do ::OpenNebula::Template.build_xml, vc.one) vnet_template = n[:one] + ar_str - - puts vnet_template rc = one_vn.allocate(vnet_template) diff --git a/src/sunstone/public/js/plugins/hosts-tab.js b/src/sunstone/public/js/plugins/hosts-tab.js index 48cec6c66f..a832314597 100644 --- a/src/sunstone/public/js/plugins/hosts-tab.js +++ b/src/sunstone/public/js/plugins/hosts-tab.js @@ -1254,14 +1254,23 @@ function setupCreateHostDialog(){ $(".content", networks_container).html(""); $.each(response, function(id, network){ + var netname = network.name.replace(" ","_"); + var trow = $('
' + '
' + - '
' + - '