From d642526d174232f7eaa67b9dc5fb044790d51349 Mon Sep 17 00:00:00 2001 From: juanmont Date: Thu, 20 Apr 2017 12:16:23 +0200 Subject: [PATCH] F #4913 Added support for ipv6 static in advanced options (#266) --- .../public/app/utils/vcenter/networks.js | 50 +++++++++++++++++++ .../public/app/utils/vcenter/networks/row.hbs | 1 + 2 files changed, 51 insertions(+) diff --git a/src/sunstone/public/app/utils/vcenter/networks.js b/src/sunstone/public/app/utils/vcenter/networks.js index 41b47ebdf6..1d23a29d3f 100644 --- a/src/sunstone/public/app/utils/vcenter/networks.js +++ b/src/sunstone/public/app/utils/vcenter/networks.js @@ -186,6 +186,33 @@ define(function(require) { '' + ''; break; + case 'IP6_STATIC': + net_form_str = + '
' + + '' + + '
' + + '
' + + '' + + '
' + + '
' + + '' + + '
'+ + '
' + + '' + + '
'+'
' + + '' + + '
'; + break; } $('.net_options', row_context).html(net_form_str); @@ -251,6 +278,29 @@ define(function(require) { ar_array.push("ULA_PREFIX=" + ula); } + break; + case 'IP6_STATIC': + var mac = $('.six_mac_net', row_context).val(); + var gp = $('.six_global_net', row_context).val(); + var ula = $('.six_mac_net', row_context).val(); + var ip6_static = $('.six_static_net', row_context).val(); + var prefix = $('.six_prefix_net', row_context).val(); + + if (mac) { + ar_array.push("MAC=" + mac); + } + if (gp) { + ar_array.push("GLOBAL_PREFIX=" + gp); + } + if (ula) { + ar_array.push("ULA_PREFIX=" + ula); + } + if (ip6_static) { + ar_array.push("IP6=" + ip6_static); + } + if (prefix) { + ar_array.push("PREFIX_LENGTH=" + prefix); + } break; } diff --git a/src/sunstone/public/app/utils/vcenter/networks/row.hbs b/src/sunstone/public/app/utils/vcenter/networks/row.hbs index eae5fae067..974b32bbe7 100644 --- a/src/sunstone/public/app/utils/vcenter/networks/row.hbs +++ b/src/sunstone/public/app/utils/vcenter/networks/row.hbs @@ -45,6 +45,7 @@ +