From 34d31abfb94afe4c9e71292bf207302d5fae71ea Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Sat, 4 Apr 2009 14:23:28 -0700 Subject: Move "commit" check out of invalid node.tag/node.def. --- templates/protocols/static/interface-route6/node.def | 3 +++ templates/protocols/static/interface-route6/node.tag/node.def | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'templates/protocols/static/interface-route6') diff --git a/templates/protocols/static/interface-route6/node.def b/templates/protocols/static/interface-route6/node.def index 4048960a..e00a8b3b 100644 --- a/templates/protocols/static/interface-route6/node.def +++ b/templates/protocols/static/interface-route6/node.def @@ -2,3 +2,6 @@ tag: type: ipv6net help: Set an interface-based IPv6 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-route6/node.tag/node.def b/templates/protocols/static/interface-route6/node.tag/node.def index 1bc36220..f5c3f487 100644 --- a/templates/protocols/static/interface-route6/node.tag/node.def +++ b/templates/protocols/static/interface-route6/node.tag/node.def @@ -1,3 +1,2 @@ help: Set IP network -commit:expression: $VAR(./next-hop-interface/) != "" ; \ - "Must add a next-hop-interface for route $VAR(@)" + -- cgit v1.2.3