summaryrefslogtreecommitdiff
path: root/templates/protocols/static/route
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols/static/route')
-rw-r--r--templates/protocols/static/route/node.def4
1 files changed, 1 insertions, 3 deletions
diff --git a/templates/protocols/static/route/node.def b/templates/protocols/static/route/node.def
index 83645d2a..e46227e5 100644
--- a/templates/protocols/static/route/node.def
+++ b/templates/protocols/static/route/node.def
@@ -1,10 +1,8 @@
-priority: 482
tag:
+priority: 482
type: ipv4net
help: Static route
syntax:expression: exec "${vyatta_sbindir}/check_prefix_boundary $VAR(@)"
commit:expression: $VAR(./next-hop/) != "" || $VAR(./blackhole/) != "" || $VAR(./dhcp-interface/) != ""; \
"Must add either a next-hop or blackhole or dhcp-interface for route $VAR(@)"
-commit:expression: $VAR(./next-hop/) == "" || $VAR(./dhcp-interface/) == ""; \
- "Must configure only one of next-hop or dhcp-interface for route $VAR(@)"