summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2014-11-07 07:41:54 +0600
committerDaniil Baturin <daniil@baturin.org>2014-11-07 07:41:54 +0600
commitf0b4b43b5091b025ec2ddf48e0d785d67b110c69 (patch)
treea04e8a996afa62de945a5a9c02fbe8361fb2fd6e
parent602393b9d3398039a8af19d0940fa4d23e492071 (diff)
parent75ac5be45f000bd6108b8bc69f1cfc3c52c73dc4 (diff)
downloadvyatta-cfg-quagga-f0b4b43b5091b025ec2ddf48e0d785d67b110c69.tar.gz
vyatta-cfg-quagga-f0b4b43b5091b025ec2ddf48e0d785d67b110c69.zip
Merge pull request #6 from thekev/lithium
Bug #384: Add route-map support for 'as-path exclude'
-rw-r--r--templates/policy/route-map/node.tag/rule/node.tag/set/as-path-exclude/node.def13
1 files changed, 13 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..e29f9c39
--- /dev/null
+++ b/templates/policy/route-map/node.tag/rule/node.tag/set/as-path-exclude/node.def
@@ -0,0 +1,13 @@
+type: txt
+help: Remove ASN(s) from a Border Gateway Protocol (BGP) AS-path attribute
+val_help: BGP AS path exclude string (ex: "456 64500 45001")
+
+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 "