diff options
author | Daniil Baturin <daniil@baturin.org> | 2016-10-22 04:12:35 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-22 04:12:35 +0700 |
commit | 8aaed6ba24b84801352bdec17de4af052793043e (patch) | |
tree | 982adcf91a67888231dfe8958432d8cfb306e64a /templates/policy | |
parent | 7ba64adcf4579f97cfa0269e05047f8749f74856 (diff) | |
parent | d7b15b9e5d8be70650ac9e3b415b411ae51ce8b5 (diff) | |
download | vyatta-cfg-quagga-8aaed6ba24b84801352bdec17de4af052793043e.tar.gz vyatta-cfg-quagga-8aaed6ba24b84801352bdec17de4af052793043e.zip |
Merge pull request #10 from smunaut/T132
T132 Allow route-map to set "src"
Diffstat (limited to 'templates/policy')
-rw-r--r-- | templates/policy/route-map/node.tag/rule/node.tag/set/src/node.def | 13 |
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" |