From 75ac5be45f000bd6108b8bc69f1cfc3c52c73dc4 Mon Sep 17 00:00:00 2001 From: Kevin Blackham Date: Thu, 6 Nov 2014 17:54:48 -0700 Subject: Bug #384: Add route-map support for 'as-path exclude' --- .../node.tag/rule/node.tag/set/as-path-exclude/node.def | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 templates/policy/route-map/node.tag/rule/node.tag/set/as-path-exclude/node.def (limited to 'templates/policy/route-map') 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 " -- cgit v1.2.3