diff options
Diffstat (limited to 'templates/protocols/static/interface-route')
-rw-r--r-- | templates/protocols/static/interface-route/node.def | 3 | ||||
-rw-r--r-- | templates/protocols/static/interface-route/node.tag/node.def | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/templates/protocols/static/interface-route/node.def b/templates/protocols/static/interface-route/node.def index a30f4dac..5b5f3efe 100644 --- a/templates/protocols/static/interface-route/node.def +++ b/templates/protocols/static/interface-route/node.def @@ -2,3 +2,6 @@ tag: type: ipv4net help: Set an interface-based static route syntax:expression: exec "${vyatta_sbindir}/check_prefix_boundary $VAR(@)" + +commit:expression: $VAR(./next-hop-interface/) != "" ; \ + "Must add a next-hop-interface for route $VAR(@)" diff --git a/templates/protocols/static/interface-route/node.tag/node.def b/templates/protocols/static/interface-route/node.tag/node.def index 1bc36220..a628b753 100644 --- a/templates/protocols/static/interface-route/node.tag/node.def +++ b/templates/protocols/static/interface-route/node.tag/node.def @@ -1,3 +1 @@ help: Set IP network -commit:expression: $VAR(./next-hop-interface/) != "" ; \ - "Must add a next-hop-interface for route $VAR(@)" |