diff options
Diffstat (limited to 'templates')
3 files changed, 2 insertions, 2 deletions
diff --git a/templates/policy/prefix-list/node.tag/rule/node.def b/templates/policy/prefix-list/node.tag/rule/node.def index e45083ca..f59d1ab4 100644 --- a/templates/policy/prefix-list/node.tag/rule/node.def +++ b/templates/policy/prefix-list/node.tag/rule/node.def @@ -2,6 +2,7 @@ tag: type: u32 help: "Specify prefix-list rule number" commit: $(./prefix/) != ""; "must set a prefix" +commit: $(./action/) != ""; "must specify an action before committing" delete: "touch /tmp/protocols-$(../@)-$(@).\\$PPID \ LEN=`echo $(@) | awk -F/ '{ print \\$2 }'` ; \ if [ -n \"$(./ge/@)\" ]; then \ diff --git a/templates/policy/prefix-list/node.tag/rule/node.tag/action/node.def b/templates/policy/prefix-list/node.tag/rule/node.tag/action/node.def index 9948b01e..eeb8f9e5 100644 --- a/templates/policy/prefix-list/node.tag/rule/node.tag/action/node.def +++ b/templates/policy/prefix-list/node.tag/rule/node.tag/action/node.def @@ -1,4 +1,3 @@ type: txt -default: "deny" help: "Action to take on prefixes matching this rule" syntax: $(@) in "permit", "deny"; "action must be permit or deny" diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/comm-list/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/comm-list/node.def index a6169894..1eadf4c2 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/set/comm-list/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/comm-list/node.def @@ -4,7 +4,7 @@ end: "if [ -z \"$(./comm-list/)\" ]; then \ echo You must configure a comm-list ; \ exit 1 ; \ fi ; \ - \\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" \ + \\${vyatta_sbindir}/vyatta-vtysh.pl -noerr -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no set comm-list \" ; \ if [ -f \"/tmp/policy-route-map-$(../../../@)-$(../../action/@)-$(../../@)-set-comm-list.\\$PPID\" ]; then \ |