summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 "
+