summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2017-08-29 18:49:07 +0700
committerGitHub <noreply@github.com>2017-08-29 18:49:07 +0700
commit35fe121a8d1dbd09657b326bbaa70ca1cd3a4c18 (patch)
treee498661c6847739e7d29ca8572b89c9b1a1f8e2d
parent93ba300d7e5e4334f1ce5645bc4bd7f35586b5c9 (diff)
parente181202456e6570459f374a87abdc2614a2c8f2d (diff)
downloadvyatta-cfg-quagga-35fe121a8d1dbd09657b326bbaa70ca1cd3a4c18.tar.gz
vyatta-cfg-quagga-35fe121a8d1dbd09657b326bbaa70ca1cd3a4c18.zip
Merge pull request #11 from ghost/helium
Add route-map set as-path exclude option
-rw-r--r--templates/policy/route-map/node.tag/rule/node.tag/set/as-path-exclude/node.def14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/as-path-exclude/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/as-path-exclude/node.def
new file mode 100644
index 00000000..3087df7f
--- /dev/null
+++ b/templates/policy/route-map/node.tag/rule/node.tag/set/as-path-exclude/node.def
@@ -0,0 +1,14 @@
+type: txt
+help: Exclude string for a Border Gateway Protocol (BGP) AS-path attribute
+val_help: BGP AS path exclude string (ex: "456 64500 45001")
+
+syntax:expression: exec "/opt/vyatta/sbin/vyatta-check-as-prepend.pl \"$VAR(@)\" "; "invalid AS path string"
+commit:expression: $VAR(../../action/) != ""; "you must specify an action"
+
+update: vtysh -c "configure terminal" \
+ -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \
+ -c "set as-path exclude $VAR(@)"
+
+delete: vtysh -c "configure terminal" \
+ -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \
+ -c "no set as-path exclude "