diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-10-15 15:36:59 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-10-15 15:36:59 +0200 |
commit | 81f16510354b9fcface2fca55d50db57e01c82a2 (patch) | |
tree | f2aa57fc4f4a70df802508f405ecb16b3ee85e5f /templates | |
parent | 230041a139f64c3d3f7e949e9c0e453bde7c590a (diff) | |
download | vyatta-cfg-quagga-81f16510354b9fcface2fca55d50db57e01c82a2.tar.gz vyatta-cfg-quagga-81f16510354b9fcface2fca55d50db57e01c82a2.zip |
T143: add CLI for setting large communities.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/policy/route-map/node.tag/rule/node.tag/set/large-community/node.def | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/large-community/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/large-community/node.def new file mode 100644 index 00000000..2031a96d --- /dev/null +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/large-community/node.def @@ -0,0 +1,13 @@ +type: txt +help: Set BGP large community value +val_help: ASN:nn:mm BGP large community +commit:expression: $VAR(../../action/) != ""; "you must specify an action" + +update: vtysh -c "configure terminal" \ + -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \ + -c "set large-community $VAR(@)" + +delete: vtysh -c "configure terminal" \ + -c "route-map $VAR(../../../@) $VAR(../../action/@) $VAR(../../@)" \ + -c "no set large-community $VAR(@)" + |