summaryrefslogtreecommitdiff
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:41 +0200
commit7354c91a5992e736df959d260681c9d536a222b7 (patch)
tree628f6ec5ce0ecc4c34bca2db87da4914b711a178
parentaf9e3958cdcb20531c1f9394488482ac28c71072 (diff)
downloadvyatta-cfg-firewall-7354c91a5992e736df959d260681c9d536a222b7.tar.gz
vyatta-cfg-firewall-7354c91a5992e736df959d260681c9d536a222b7.zip
firewall: ICMP code/type: T3569
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)
-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