diff options
Diffstat (limited to 'templates/protocols/static/route/node.def')
-rw-r--r-- | templates/protocols/static/route/node.def | 6 |
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(@)" |