diff options
author | currite <sll@disroot.org> | 2019-10-23 19:48:06 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-10-26 17:24:22 -0500 |
commit | f17d925f1476cf576484971e21d4da12b3c1dd42 (patch) | |
tree | a55a9866ae5343cec30d8d368ae08bc98f6aeeb3 | |
parent | c296e77ad67679f0a5d402af026f69d2c8e8ffac (diff) | |
download | vyatta-wanloadbalance-f17d925f1476cf576484971e21d4da12b3c1dd42.tar.gz vyatta-wanloadbalance-f17d925f1476cf576484971e21d4da12b3c1dd42.zip |
T1560: avoid rule number 0 which causes segfault
(cherry picked from commit 26cf61320240d925c2a4e5270d51b5000aac5f48)
-rw-r--r-- | templates/load-balancing/wan/rule/node.def | 4 |
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 |