diff --git a/src/sunstone/public/js/plugins/vnets-tab.js b/src/sunstone/public/js/plugins/vnets-tab.js
index 9069914458..acfaf5a810 100644
--- a/src/sunstone/public/js/plugins/vnets-tab.js
+++ b/src/sunstone/public/js/plugins/vnets-tab.js
@@ -1168,6 +1168,8 @@ function setupCreateVNetDialog() {
add_ar_tab(number_of_ar, dialog);
number_of_ar++;
+ dialog.foundation();
+
return false;
});
@@ -1348,7 +1350,7 @@ function generate_ar_tab_content(str_ar_tab_id){
\
- \
+ \
\
\
\
@@ -1387,12 +1389,18 @@ function setup_ar_tab_content(ar_section, str_ar_tab_id) {
$('input[name$="ar_type"]',ar_section).change(function(){
$('div.ar_input', ar_section).hide();
+ $('input[wizard_field="IP"]',ar_section).removeAttr('required');
+
switch($(this).val()){
case "IP4":
$('div.type_ip4', ar_section).show();
+ $('input[wizard_field="IP"]',ar_section).attr('required', '');
+
break;
case "IP4_6":
$('div.type_ip4_6', ar_section).show();
+ $('input[wizard_field="IP"]',ar_section).attr('required', '');
+
break;
case "IP6":
$('div.type_ip6', ar_section).show();
@@ -1448,14 +1456,6 @@ function retrieve_ar_tab_data(ar_section){
retrieveCustomTags(ar_section, data);
- // TODO MANDATORY INPUTS
- /*
- if (!(ip_start.length && ip_end.length) && !network_addr.length){
- notifyError(tr("There are missing network parameters"));
- return false;
- };
- */
-
return data
}
@@ -1607,7 +1607,7 @@ function setupAddARDialog(){
dialog.html(
'