diff options
Diffstat (limited to 'templates/protocols/rip/network-distance/node.def')
-rw-r--r-- | templates/protocols/rip/network-distance/node.def | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/templates/protocols/rip/network-distance/node.def b/templates/protocols/rip/network-distance/node.def index 480e1f26..1caa6b04 100644 --- a/templates/protocols/rip/network-distance/node.def +++ b/templates/protocols/rip/network-distance/node.def @@ -1,18 +1,18 @@ tag: type: ipv4net -help: "Source network" -syntax: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --check-prefix-boundry $(@)" -commit: $(./distance/) != ""; "Must specify distance for network $(@)" -delete: "touch /tmp/rip-dist.\\$PPID" -end: "if [ -n \"$(./access-list/@)\" ]; then \ - ACL=\"$(./access-list/@)\"; \ +help: Source network +syntax:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --check-prefix-boundry $VAR(@)" +commit:expression: $VAR(./distance/) != ""; "Must specify distance for network $VAR(@)" +delete:expression: "touch /tmp/rip-dist.$PPID" +end:expression: "if [ -n \"$VAR(./access-list/@)\" ]; then \ + ACL=\"$VAR(./access-list/@)\"; \ fi; \ - if [ -f \"/tmp/rip-dist.\\$PPID\" ]; then \ - dist=\\$(cat /tmp/rip-network-distance.\\$PPID); \ - \\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router rip\" \ - -c \"no distance \\$dist $(@) \\$ACL \" ; - rm -f \"/tmp/rip-dist.\\$PPID\"; + if [ -f \"/tmp/rip-dist.$PPID\" ]; then \ + dist=$(cat /tmp/rip-network-distance.$PPID); \ + ${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router rip\" \ + -c \"no distance $dist $VAR(@) $ACL \" ; + rm -f \"/tmp/rip-dist.$PPID\"; else \ - \\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router rip\" \ - -c \"distance $(./distance/@) $(@) \\$ACL \" ; + ${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router rip\" \ + -c \"distance $VAR(./distance/@) $VAR(@) $ACL \" ; fi; " |