summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcurrite <sll@disroot.org>2019-10-23 19:48:06 +0200
committercurrite <sll@disroot.org>2019-10-23 19:48:06 +0200
commit26cf61320240d925c2a4e5270d51b5000aac5f48 (patch)
treef4f0f28bbfd651ca38e574190e9ee88e9508cbd2
parent4d9773bbf62964d58f91517910ae8a1b6af1c28d (diff)
downloadvyatta-wanloadbalance-26cf61320240d925c2a4e5270d51b5000aac5f48.tar.gz
vyatta-wanloadbalance-26cf61320240d925c2a4e5270d51b5000aac5f48.zip
Avoid rule number 0 which causes segfault
-rw-r--r--templates/load-balancing/wan/rule/node.def4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/load-balancing/wan/rule/node.def b/templates/load-balancing/wan/rule/node.def
index 855d0ae..2624723 100644
--- a/templates/load-balancing/wan/rule/node.def
+++ b/templates/load-balancing/wan/rule/node.def
@@ -1,3 +1,5 @@
tag:
type: u32
-help: Rule number
+help: Rule number (1-9999)
+syntax:expression: $VAR(@) > 0 && $VAR(@) <= 9999; "firewall rule number must be between 1 and 9999"
+val_help: u32:1-9999; Rule number