diff options
Diffstat (limited to 'templates/protocols/static/route-map/node.def')
-rw-r--r-- | templates/protocols/static/route-map/node.def | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/protocols/static/route-map/node.def b/templates/protocols/static/route-map/node.def new file mode 100644 index 00000000..e8120298 --- /dev/null +++ b/templates/protocols/static/route-map/node.def @@ -0,0 +1,9 @@ +priority: 481 +type: txt +help: Filter routes installed in local route map +allowed: local -a params + params=$( /opt/vyatta/sbin/vyatta-policy.pl --list-policy route-map ) + echo -n ${params[@]##*/} +commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy route-map $VAR(@)\" ";"route-map $VAR(@) doesn't exist" +create:expression: "vtysh -c \"configure terminal\" -c \"ip protocol static route-map $VAR(@)\" " +delete:expression: "vtysh -c \"configure terminal\" -c \"no ip protocol static\" " |