summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-03-30 09:10:53 +0200
committerGitHub <noreply@github.com>2021-03-30 09:10:53 +0200
commita67206878c84c6fcbfb117a8727838fdcc997929 (patch)
treeb6eb9c43754d0e97ed16516c0a20423443db3781 /templates
parent92af72e62b2c95d2ff3b60c0f1ec22f6950ff39d (diff)
parent6ca37e02a2128af66a8c573fbaa22dceb6361b3e (diff)
downloadvyatta-cfg-quagga-a67206878c84c6fcbfb117a8727838fdcc997929.tar.gz
vyatta-cfg-quagga-a67206878c84c6fcbfb117a8727838fdcc997929.zip
Merge pull request #72 from sever-sever/T3190
route-map: T3190: Add ability to add and substr local-preference
Diffstat (limited to 'templates')
-rw-r--r--templates/policy/route-map/node.tag/rule/node.tag/set/local-preference/node.def6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/local-preference/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/local-preference/node.def
index 125e9e69..e42cfec9 100644
--- a/templates/policy/route-map/node.tag/rule/node.tag/set/local-preference/node.def
+++ b/templates/policy/route-map/node.tag/rule/node.tag/set/local-preference/node.def
@@ -1,7 +1,9 @@
-type: u32
+type: txt
help: Border Gateway Protocol (BGP) local preference attribute
-val_help: Local preference value
+val_help: u32:0-4294967295; Local preference value
+val_help: <+/-local-preference>; Add or subtract local-preference
+syntax:expression: exec "if [ -n \"$(echo $VAR(@) | sed 's/^[+-]*[0123456789]*//')\" ]; then exit 1; fi; "; "local-preferemce must be an integer with an optional +/- prepend"
commit:expression: $VAR(../../action/) != ""; "you must specify an action"
update: vtysh -c "configure terminal" \