summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2017-10-05 20:09:00 +0700
committerGitHub <noreply@github.com>2017-10-05 20:09:00 +0700
commit0ae4efd7ffee5348cf2b8754e9bda5cf6aa7a4c5 (patch)
treeca0512a9fd8a864ced98413e6496e55437dd8b1a
parentc45033d3a0afa2b2f8875fc569b0eb23084dc2d2 (diff)
parent50f529243442a7e50c7c0d9a37cac5ba3570cf0d (diff)
downloadvyatta-cfg-quagga-0ae4efd7ffee5348cf2b8754e9bda5cf6aa7a4c5.tar.gz
vyatta-cfg-quagga-0ae4efd7ffee5348cf2b8754e9bda5cf6aa7a4c5.zip
Merge pull request #13 from elizandropacheco/current
ExtCommunities for Border Gateway Protocol
-rw-r--r--templates/policy/route-map/node.tag/rule/node.tag/set/bgp-extcommunity-rt/node.def16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/bgp-extcommunity-rt/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/bgp-extcommunity-rt/node.def
new file mode 100644
index 00000000..2f2cc1ea
--- /dev/null
+++ b/templates/policy/route-map/node.tag/rule/node.tag/set/bgp-extcommunity-rt/node.def
@@ -0,0 +1,16 @@
+type: txt
+help: Border Gateway Protocol (BGP) extcommunity attribute
+val_help: <AA:NN>; ExtCommunity in format: AS:value
+
+
+syntax:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --check-community $VAR(@)"
+commit:expression: $VAR(../../action/) != "" ; "You must specify an action"
+
+update: vtysh -c "configure terminal" \
+ -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \
+ -c "set extcommunity rt $VAR(@)"
+
+delete: vtysh -c "configure terminal" \
+ -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \
+ -c "no set extcommunity rt "
+