diff options
author | Elizandro Pacheco <elizandropacheco@MacBook-Pro-de-Elizandro.local> | 2017-04-04 16:12:48 -0300 |
---|---|---|
committer | Elizandro Pacheco <elizandropacheco@MacBook-Pro-de-Elizandro.local> | 2017-04-04 16:12:48 -0300 |
commit | 242a6ebf8bdd7e33269cc65dca028ad8c914e295 (patch) | |
tree | 7aca6196c059392f61a8c08d6d7d435818d714b7 /templates | |
parent | 41e4f093b62e220e4d791caef35483cd3223e465 (diff) | |
download | vyatta-cfg-quagga-242a6ebf8bdd7e33269cc65dca028ad8c914e295.tar.gz vyatta-cfg-quagga-242a6ebf8bdd7e33269cc65dca028ad8c914e295.zip |
Add Border Gateway Protocol extommunities support on route-map parameter.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/policy/route-map/node.tag/rule/node.tag/set/bgp-extcommunity-rt/node.def | 20 |
1 files changed, 20 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..f61eb2ea --- /dev/null +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/bgp-extcommunity-rt/node.def @@ -0,0 +1,20 @@ +type: txt +help: Border Gateway Protocl (BGP) extcommunity attribute +val_help: <AA:NN>; Community in 4 octet AS:value format +val_help: local-AS; Advertise communities in local AS only (NO_EXPORT_SUBCONFED) +val_help: no-advertise; Don't advertise this route to any peer (NO_ADVERTISE) +val_help: no-export; Don't advertise outside of this AS of confederation boundry (NO_EXPORT) +val_help: internet; Symbolic Internet community 0 + +allowed:echo "none local-AS no-advertise no-export internet" + +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 " |