summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Bays <robert@vyatta.com>2012-09-05 15:31:18 -0700
committerRobert Bays <robert@vyatta.com>2012-09-05 15:31:18 -0700
commit817ff8cdc4a10d3fe24e074b45bbcafe0ea0b10d (patch)
treed9d8ce603178ae3a7f0cbe267b3ce30c23b16ef0
parent5f0faa2a635f28f53a16caf9444029025ef800c5 (diff)
downloadvyatta-cfg-firewall-817ff8cdc4a10d3fe24e074b45bbcafe0ea0b10d.tar.gz
vyatta-cfg-firewall-817ff8cdc4a10d3fe24e074b45bbcafe0ea0b10d.zip
reserve upper table numbers for future use
-rwxr-xr-xtemplates/policy/ipv6-route/node.tag/rule/node.tag/set/table/node.def8
-rwxr-xr-xtemplates/policy/route/node.tag/rule/node.tag/set/table/node.def8
2 files changed, 8 insertions, 8 deletions
diff --git a/templates/policy/ipv6-route/node.tag/rule/node.tag/set/table/node.def b/templates/policy/ipv6-route/node.tag/rule/node.tag/set/table/node.def
index b404ef9..bb97649 100755
--- a/templates/policy/ipv6-route/node.tag/rule/node.tag/set/table/node.def
+++ b/templates/policy/ipv6-route/node.tag/rule/node.tag/set/table/node.def
@@ -1,16 +1,16 @@
type: txt
help: Routing table to forward packet with
-val_help: u32:1-250 ; Table number
+val_help: u32:1-200 ; Table number
val_help: main ; Main table
syntax:expression: exec "
if [[ $VAR(@) =~ ^-?[0-9]+$ ]] ; then
- if [ $VAR(@) -lt 1 -o $VAR(@) -gt 250 ] ; then
- echo Table must be between 1-250 or table main
+ if [ $VAR(@) -lt 1 -o $VAR(@) -gt 200 ] ; then
+ echo Table must be between 1-200 or table main
exit 1
fi
else
if [[ $VAR(@) != 'main' ]] ; then
- echo Table must be between 1-250 or table main
+ echo Table must be between 1-200 or table main
exit 1
fi
fi"
diff --git a/templates/policy/route/node.tag/rule/node.tag/set/table/node.def b/templates/policy/route/node.tag/rule/node.tag/set/table/node.def
index b404ef9..bb97649 100755
--- a/templates/policy/route/node.tag/rule/node.tag/set/table/node.def
+++ b/templates/policy/route/node.tag/rule/node.tag/set/table/node.def
@@ -1,16 +1,16 @@
type: txt
help: Routing table to forward packet with
-val_help: u32:1-250 ; Table number
+val_help: u32:1-200 ; Table number
val_help: main ; Main table
syntax:expression: exec "
if [[ $VAR(@) =~ ^-?[0-9]+$ ]] ; then
- if [ $VAR(@) -lt 1 -o $VAR(@) -gt 250 ] ; then
- echo Table must be between 1-250 or table main
+ if [ $VAR(@) -lt 1 -o $VAR(@) -gt 200 ] ; then
+ echo Table must be between 1-200 or table main
exit 1
fi
else
if [[ $VAR(@) != 'main' ]] ; then
- echo Table must be between 1-250 or table main
+ echo Table must be between 1-200 or table main
exit 1
fi
fi"