diff options
-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(@)\" " + |