summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/policy/route-map/node.tag/rule/node.tag/set/extcommunity-rt/node.def6
-rw-r--r--templates/policy/route-map/node.tag/rule/node.tag/set/extcommunity-soo/node.def8
2 files changed, 9 insertions, 5 deletions
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/extcommunity-rt/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/extcommunity-rt/node.def
index 6338ca50..e536c698 100644
--- a/templates/policy/route-map/node.tag/rule/node.tag/set/extcommunity-rt/node.def
+++ b/templates/policy/route-map/node.tag/rule/node.tag/set/extcommunity-rt/node.def
@@ -1,8 +1,10 @@
type: txt
help: Set route target value
-val_help: ASN:nn_or_IP_address:nn VPN extended community
+val_help: ASN:NN; based on autonomous system number
+val_help: IP:NN; Based on a router-id IP address
+
+syntax:expression: exec "${vyos_libexec_dir}/validate-value --regex \'^((?:[0-9]{1,3}\\.){3}[0-9]{1,3}|\\d+):\\d+$\' --value \'$VAR(@)\'"; "Should be in form: ASN:NN or IPADDR:NN where ASN is autonomous system number"
-syntax:expression: pattern $VAR(@) "\d+:\d+(\.\d+\.\d+\.\d+):\d+" ; "Should be in form: ASN:nn_or_IP_address:nn where ASN is autonomous system number"
commit:expression: $VAR(../../action/) != ""; "you must specify an action"
update: vtysh -c "configure terminal" \
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/extcommunity-soo/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/extcommunity-soo/node.def
index e76243dd..51f6bb5c 100644
--- a/templates/policy/route-map/node.tag/rule/node.tag/set/extcommunity-soo/node.def
+++ b/templates/policy/route-map/node.tag/rule/node.tag/set/extcommunity-soo/node.def
@@ -1,8 +1,10 @@
type: txt
-help: Set Site of Origin value.
-val_help: ASN:nn_or_IP_address:nn VPN extended community
+help: Set Site of Origin value.
+val_help: ASN:NN; based on autonomous system number
+val_help: IP:NN; Based on a router-id IP address
+
+syntax:expression: exec "${vyos_libexec_dir}/validate-value --regex \'^((?:[0-9]{1,3}\\.){3}[0-9]{1,3}|\\d+):\\d+$\' --value \'$VAR(@)\'"; "Should be in form: ASN:NN or IPADDR:NN where ASN is autonomous system number"
-syntax:expression: pattern $VAR(@) "\d+:\d+(\.\d+\.\d+\.\d+):\d+" ; "Should be in form: ASN:nn_or_IP_address:nn where ASN is autonomous system number"
commit:expression: $VAR(../../action/) != ""; "you must specify an action"
update: vtysh -c "configure terminal" \