diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-01-23 21:25:43 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-01-25 15:25:10 +0100 |
commit | 2de206ecaa70cdc0994ba0928874dbfd825c1b71 (patch) | |
tree | e70233d40c46ffe6f52e89d4824ac376f3f228da /templates | |
parent | 0f6e25f3c20e3f305b736be5b70da38a4a2b515e (diff) | |
download | vyatta-cfg-quagga-2de206ecaa70cdc0994ba0928874dbfd825c1b71.tar.gz vyatta-cfg-quagga-2de206ecaa70cdc0994ba0928874dbfd825c1b71.zip |
bgp: T1902: support redistribution of non-main routing table
(cherry picked from commit 5a1060a21dbc478c1aaaa4711e66bc882eeae114)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/protocols/bgp/node.tag/address-family/ipv4-unicast/redistribute/table/node.def | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/protocols/bgp/node.tag/address-family/ipv4-unicast/redistribute/table/node.def b/templates/protocols/bgp/node.tag/address-family/ipv4-unicast/redistribute/table/node.def new file mode 100644 index 00000000..7aae952e --- /dev/null +++ b/templates/protocols/bgp/node.tag/address-family/ipv4-unicast/redistribute/table/node.def @@ -0,0 +1,10 @@ +multi: +type: txt +help: Redistribute non-main Kernel Routing Table +allowed: local -a params + eval "params=($(cli-shell-api listNodes protocols static table))" + echo -n ${params[@]##*/} +commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"protocols static table $VAR(@)\" ";"static table $VAR(@) doesn't exist" +create:expression: "vtysh -c \"configure terminal\" -c \"router bgp $VAR(../../../../@)\" -c \"address-family ipv4\" -c \"redistribute table $VAR(@)\" " +delete:expression: "vtysh -c \"configure terminal\" -c \"router bgp $VAR(../../../../@)\" -c \"address-family ipv4\" -c \"no redistribute table $VAR(@)\" " + |