summaryrefslogtreecommitdiff
path: root/templates/firewall
diff options
context:
space:
mode:
authorsrividya0208 <a.srividya@vyos.io>2021-05-25 13:46:25 -0400
committerChristian Poessinger <christian@poessinger.com>2021-05-25 20:27:51 +0200
commit0fda817ca86f240d89c709cda38b47d3c43528fd (patch)
treed971c39df1029649eb7c879d7b66af2b09ab49a2 /templates/firewall
parent637113986636842565601348e143302932482d66 (diff)
downloadvyatta-cfg-firewall-crux.tar.gz
vyatta-cfg-firewall-crux.zip
firewall: ICMP code/type: T35691.2.9-S1crux
Fixed the completion help for icmp code & type which was showing out of range values 0-4294967295 than the allowed values i.e. 0-255 (cherry picked from commit c89cbf844bc2f54fb599ab7bbb7821f3160b7d28)
Diffstat (limited to 'templates/firewall')
-rw-r--r--templates/firewall/name/node.tag/rule/node.tag/icmp/code/node.def2
-rw-r--r--templates/firewall/name/node.tag/rule/node.tag/icmp/type/node.def2
2 files changed, 4 insertions, 0 deletions
diff --git a/templates/firewall/name/node.tag/rule/node.tag/icmp/code/node.def b/templates/firewall/name/node.tag/rule/node.tag/icmp/code/node.def
index 84f77b4..72d82e0 100644
--- a/templates/firewall/name/node.tag/rule/node.tag/icmp/code/node.def
+++ b/templates/firewall/name/node.tag/rule/node.tag/icmp/code/node.def
@@ -3,3 +3,5 @@ type: u32; "ICMP code must be between 0 and 255"
help: ICMP code (0-255)
syntax:expression: $VAR(@) >=0 && $VAR(@) <= 255; "ICMP code must be between 0 and 255"
+
+val_help: u32:0-255; ICMP code
diff --git a/templates/firewall/name/node.tag/rule/node.tag/icmp/type/node.def b/templates/firewall/name/node.tag/rule/node.tag/icmp/type/node.def
index ce69c45..fa74aa0 100644
--- a/templates/firewall/name/node.tag/rule/node.tag/icmp/type/node.def
+++ b/templates/firewall/name/node.tag/rule/node.tag/icmp/type/node.def
@@ -3,3 +3,5 @@ type: u32; "ICMP type must be between 0 and 255"
help: ICMP type (0-255)
syntax:expression: $VAR(@) >=0 && $VAR(@) <= 255; "ICMP type must be between 0 and 255"
+
+val_help: u32:0-255; ICMP type