From 6ca37e02a2128af66a8c573fbaa22dceb6361b3e Mon Sep 17 00:00:00 2001 From: sever-sever Date: Wed, 24 Mar 2021 17:53:46 +0000 Subject: route-map: T3190: Add ability to add and substr local-preference --- .../route-map/node.tag/rule/node.tag/set/local-preference/node.def | 6 ++++-- 1 file 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" \ -- cgit v1.2.3