summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorbbs2web <bbs2web@hotmail.com>2020-01-22 09:34:33 +0200
committerDaniil Baturin <daniil@baturin.org>2020-01-22 14:58:46 +0100
commit22ddda002e0438ded11538a508137f2ff1e78de9 (patch)
treef66992f87e2160a049238ecc23c3eedba7be6829 /templates
parent9ffa58777b229055b44f11420eb1b8dd080350c8 (diff)
downloadvyatta-cfg-quagga-22ddda002e0438ded11538a508137f2ff1e78de9.tar.gz
vyatta-cfg-quagga-22ddda002e0438ded11538a508137f2ff1e78de9.zip
T1981 - Allow route-map rule 'set src' to also be IPv6
Signed-off-by: bbs2web <bbs2web@hotmail.com> Signed-off-by: Daniil Baturin <daniil@baturin.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/policy/route-map/node.tag/rule/node.tag/set/src/node.def6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/src/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/src/node.def
index 2fd2a759..16b55665 100644
--- a/templates/policy/route-map/node.tag/rule/node.tag/set/src/node.def
+++ b/templates/policy/route-map/node.tag/rule/node.tag/set/src/node.def
@@ -1,6 +1,8 @@
-type: ipv4
+type: txt
help: Source address for route
-val_help: IP address
+val_help: ipv4; IPv4 address
+val_help: ipv6; IPv6 address
+syntax:expression: exec "${vyos_libexec_dir}/validate-value.py --exec \"${vyos_validators_dir}/ipv4-address \" --exec \"${vyos_validators_dir}/ipv6-address \" --value \'$VAR(@)\'"; "Invalid value"
commit:expression: $VAR(../../action/) != ""; "you must specify an action"