diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-31 07:58:38 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-31 07:58:38 -0800 |
commit | cd50a751d1480424cdf103fd748b514330029c24 (patch) | |
tree | f70096ded03ce07e56f42c0660c2cf97d63ba83b /templates/protocols/rip/network-distance | |
parent | c51dae6826ea505169fca5b0cb0a580bf99c18cf (diff) | |
download | vyatta-cfg-quagga-cd50a751d1480424cdf103fd748b514330029c24.tar.gz vyatta-cfg-quagga-cd50a751d1480424cdf103fd748b514330029c24.zip |
convert templates to new syntax
Diffstat (limited to 'templates/protocols/rip/network-distance')
4 files changed, 20 insertions, 20 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; " diff --git a/templates/protocols/rip/network-distance/node.tag/access-list/node.def b/templates/protocols/rip/network-distance/node.tag/access-list/node.def index ab225ff4..3003e718 100644 --- a/templates/protocols/rip/network-distance/node.tag/access-list/node.def +++ b/templates/protocols/rip/network-distance/node.tag/access-list/node.def @@ -1,3 +1,3 @@ type: txt -help: "Access list" -commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy access-list $(@)\" ";"access-list $(@) doesn't exist" +help: Access list +commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy access-list $VAR(@)\" ";"access-list $VAR(@) doesn't exist" diff --git a/templates/protocols/rip/network-distance/node.tag/distance/node.def b/templates/protocols/rip/network-distance/node.tag/distance/node.def index da83eed5..96d3042e 100644 --- a/templates/protocols/rip/network-distance/node.tag/distance/node.def +++ b/templates/protocols/rip/network-distance/node.tag/distance/node.def @@ -1,6 +1,6 @@ type: u32 -help: "Administrative distance for network" -syntax: $(@) >= 1 && $(@) <= 255; "must be between 1 and 255" -delete: "echo $(@) > /tmp/rip-network-distance.\\$PPID" -#comp_help: Enter a distance valude between 1-255 +help: Administrative distance for network +syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "must be between 1 and 255" +delete:expression: "echo $VAR(@) > /tmp/rip-network-distance.$PPID" +comp_help: Enter a distance valude between 1-255 diff --git a/templates/protocols/rip/network-distance/node.tag/node.def b/templates/protocols/rip/network-distance/node.tag/node.def index c82cb253..7e9c8d59 100644 --- a/templates/protocols/rip/network-distance/node.tag/node.def +++ b/templates/protocols/rip/network-distance/node.tag/node.def @@ -1 +1 @@ -help: "Set distance for a given network" +help: Set distance for a given network |