From 720604bd3cef4cb94e25af9bf37aa9e758c2b172 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 21 Dec 2016 19:42:44 +0100 Subject: T194: fix protocols/static/route template For tag nodes, tag: must be the first statement in the template, don't ask me why. Maybe we should change it in the parser. --- templates/protocols/static/route/node.def | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'templates/protocols/static/route') diff --git a/templates/protocols/static/route/node.def b/templates/protocols/static/route/node.def index 83645d2a..e46227e5 100644 --- a/templates/protocols/static/route/node.def +++ b/templates/protocols/static/route/node.def @@ -1,10 +1,8 @@ -priority: 482 tag: +priority: 482 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(@)" -- cgit v1.2.3