diff --git a/src/sunstone/public/app/tabs/secgroups-tab/form-panels/create.js b/src/sunstone/public/app/tabs/secgroups-tab/form-panels/create.js index a857482c23..5fdfb355d4 100644 --- a/src/sunstone/public/app/tabs/secgroups-tab/form-panels/create.js +++ b/src/sunstone/public/app/tabs/secgroups-tab/form-panels/create.js @@ -104,13 +104,13 @@ define(function(require) { function _setup(context) { var that = this; - context.off("change", '.security_group_rule_protocol'); context.on("change", '.security_group_rule_protocol', function(){ $('.range_row', context).hide(); $('.range_row input', context).removeAttr('required'); $('.icmp_type_wrapper', context).hide(); + $('.icmpv6_type_wrapper', context).hide(); switch ($(this).val()) { case "TCP": @@ -121,6 +121,9 @@ define(function(require) { case "ICMP": $('.icmp_type_wrapper', context).show(); break; + case "ICMPv6": + $('.icmpv6_type_wrapper', context).show(); + break; case "IPSEC": case "ALL": break; @@ -207,6 +210,14 @@ define(function(require) { } } + if (rule["PROTOCOL"] == "ICMPv6" ){ + var icmpv6_type_val = WizardFields.retrieveInput($(".security_group_rule_icmpv6_type", context)); + + if (icmpv6_type_val != ""){ + rule["ICMPv6_TYPE"] = icmpv6_type_val; + } + } + var text = Utils.sgRuleToSt(rule); $(".security_group_rules tbody", context).append( @@ -216,6 +227,7 @@ define(function(require) { '+text.RANGE+'\ '+text.NETWORK+'\ '+text.ICMP_TYPE+'\ + '+text.ICMPv6_TYPE+'\ \ \ \ @@ -340,6 +352,7 @@ define(function(require) { '+text.RANGE+'\ '+text.NETWORK+'\ '+text.ICMP_TYPE+'\ + '+text.ICMPv6_TYPE+'\ \ \ \ @@ -348,4 +361,4 @@ define(function(require) { $(".security_group_rules tbody", context).children("tr").last().data("rule", this); }); } -}); +}); \ No newline at end of file diff --git a/src/sunstone/public/app/tabs/secgroups-tab/form-panels/create/wizard.hbs b/src/sunstone/public/app/tabs/secgroups-tab/form-panels/create/wizard.hbs index 2da4cd524c..2271025039 100644 --- a/src/sunstone/public/app/tabs/secgroups-tab/form-panels/create/wizard.hbs +++ b/src/sunstone/public/app/tabs/secgroups-tab/form-panels/create/wizard.hbs @@ -48,6 +48,7 @@ + @@ -72,6 +73,19 @@ +
+ + +
@@ -98,7 +112,7 @@
-
@@ -133,6 +147,7 @@ {{tr "Port Range"}} {{tr "Network"}} {{tr "ICMP Type"}} + {{tr "ICMPv6 Type"}} @@ -142,4 +157,4 @@
- + \ No newline at end of file diff --git a/src/sunstone/public/app/utils/tab-datatable/search-input.hbs b/src/sunstone/public/app/utils/tab-datatable/search-input.hbs index 6bdcf3b458..18811fb7d9 100644 --- a/src/sunstone/public/app/utils/tab-datatable/search-input.hbs +++ b/src/sunstone/public/app/utils/tab-datatable/search-input.hbs @@ -18,7 +18,7 @@
-