summaryrefslogtreecommitdiff
path: root/templates/policy
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2016-08-17 16:20:30 +0200
committerSylvain Munaut <tnt@246tNt.com>2016-08-17 16:20:30 +0200
commitd19720c31f16378e3fdd310bd22804f535c800a6 (patch)
treee573bdf0e30d9a0add35023c6da6e495c6c1d298 /templates/policy
parentc309df3e034e2fe93659559d8947077285ccc985 (diff)
downloadvyatta-cfg-quagga-d19720c31f16378e3fdd310bd22804f535c800a6.tar.gz
vyatta-cfg-quagga-d19720c31f16378e3fdd310bd22804f535c800a6.zip
policy/route-map: Allow action 'set src'
Phabricator's T132 Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'templates/policy')
-rw-r--r--templates/policy/route-map/node.tag/rule/node.tag/set/src/node.def13
1 files changed, 13 insertions, 0 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
new file mode 100644
index 00000000..2fd2a759
--- /dev/null
+++ b/templates/policy/route-map/node.tag/rule/node.tag/set/src/node.def
@@ -0,0 +1,13 @@
+type: ipv4
+help: Source address for route
+val_help: IP address
+
+commit:expression: $VAR(../../action/) != ""; "you must specify an action"
+
+update: vtysh -c "configure terminal" \
+ -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \
+ -c "set src $VAR(@)"
+
+delete: vtysh -c "configure terminal" \
+ -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \
+ -c "no set src"