summaryrefslogtreecommitdiff
path: root/templates/protocols/static/route/node.def
blob: 83645d2a99fe6e8eb5a6953a312ebe9db92f944f (plain)
1
2
3
4
5
6
7
8
9
10
priority: 482
tag:
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(@)"