summaryrefslogtreecommitdiff
path: root/templates/protocols/static/route/node.def
diff options
context:
space:
mode:
authorCarl Byington <carl@five-ten-sg.com>2015-01-08 16:28:11 -0800
committerDaniil Baturin <daniil@baturin.org>2015-05-03 19:16:22 +0200
commit3ec3f2e3576b887d2c15ef548f28e087885cb801 (patch)
tree000355235760117e0e9f211f6d6e1ec906468b1d /templates/protocols/static/route/node.def
parentd22cda1ad0ba9c14efb62f2f8f8c3ed43a08099d (diff)
downloadvyatta-cfg-quagga-3ec3f2e3576b887d2c15ef548f28e087885cb801.tar.gz
vyatta-cfg-quagga-3ec3f2e3576b887d2c15ef548f28e087885cb801.zip
allow dhcp-interface for the next-hop on static routes
Signed-off-by: Daniil Baturin <daniil@baturin.org>
Diffstat (limited to 'templates/protocols/static/route/node.def')
-rw-r--r--templates/protocols/static/route/node.def6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/protocols/static/route/node.def b/templates/protocols/static/route/node.def
index 682ca944..e86812db 100644
--- a/templates/protocols/static/route/node.def
+++ b/templates/protocols/static/route/node.def
@@ -3,5 +3,7 @@ type: ipv4net
help: Static route
syntax:expression: exec "${vyatta_sbindir}/check_prefix_boundary $VAR(@)"
-commit:expression: $VAR(./next-hop/) != "" || $VAR(./blackhole/) != ""; \
- "Must add either a next-hop or blackhole for route $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(@)"