diff options
Diffstat (limited to 'templates/protocols/ospf/default-information')
6 files changed, 21 insertions, 21 deletions
diff --git a/templates/protocols/ospf/default-information/node.def b/templates/protocols/ospf/default-information/node.def index f50bef38..7cd4ddbc 100644 --- a/templates/protocols/ospf/default-information/node.def +++ b/templates/protocols/ospf/default-information/node.def @@ -1 +1 @@ -help: "Control distribution of default information" +help: Control distribution of default information diff --git a/templates/protocols/ospf/default-information/originate/always/node.def b/templates/protocols/ospf/default-information/originate/always/node.def index e2a93034..31ce00db 100644 --- a/templates/protocols/ospf/default-information/originate/always/node.def +++ b/templates/protocols/ospf/default-information/originate/always/node.def @@ -1 +1 @@ -help: "Always advertise default route" +help: Always advertise default route diff --git a/templates/protocols/ospf/default-information/originate/metric-type/node.def b/templates/protocols/ospf/default-information/originate/metric-type/node.def index 6e7f91b5..81ed06c4 100644 --- a/templates/protocols/ospf/default-information/originate/metric-type/node.def +++ b/templates/protocols/ospf/default-information/originate/metric-type/node.def @@ -1,4 +1,4 @@ type: txt -help: "OSPF metric type for default routes" +help: OSPF metric type for default routes default: "2" -syntax: $(@) in "1", "2"; "Must be either 1 or 2" +syntax:expression: $VAR(@) in "1", "2"; "Must be either 1 or 2" diff --git a/templates/protocols/ospf/default-information/originate/metric/node.def b/templates/protocols/ospf/default-information/originate/metric/node.def index bef11e38..cd51e49f 100644 --- a/templates/protocols/ospf/default-information/originate/metric/node.def +++ b/templates/protocols/ospf/default-information/originate/metric/node.def @@ -1,3 +1,3 @@ type: u32 -help: "OSPF default metric" -syntax: $(@) >= 0 && $(@) <= 16777214; "must be between 0-16777214" +help: OSPF default metric +syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 16777214; "must be between 0-16777214" diff --git a/templates/protocols/ospf/default-information/originate/node.def b/templates/protocols/ospf/default-information/originate/node.def index 5772bdcb..d0ecb7b2 100644 --- a/templates/protocols/ospf/default-information/originate/node.def +++ b/templates/protocols/ospf/default-information/originate/node.def @@ -1,21 +1,21 @@ -help: "Distribute a default route" -delete: "touch /tmp/ospf-default-info.\\$PPID" -end: "if [ -f \"/tmp/ospf-default-info.\\$PPID\" ]; then \ - \\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \ +help: Distribute a default route +delete:expression: "touch /tmp/ospf-default-info.$PPID" +end:expression: "if [ -f \"/tmp/ospf-default-info.$PPID\" ]; then \ + ${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \ -c \"no default-information originate \"; \ else \ - if [ -n \"$(./always/@)\" ]; then \ - PARM=\"always\"; \ + if [ -n \"$VAR(./always/@)\" ]; then \ + PARM=\"always\"; \ fi; \ - if [ -n \"$(./metric/@)\" ]; then \ - PARM=\"\\$PARM metric $(./metric/@)\"; \ + if [ -n \"$VAR(./metric/@)\" ]; then \ + PARM=\"$PARM metric $VAR(./metric/@)\"; \ fi; \ - if [ -n \"$(./metric-type/@)\" ]; then \ - PARM=\"\\$PARM metric-type $(./metric-type/@)\"; \ + if [ -n \"$VAR(./metric-type/@)\" ]; then \ + PARM=\"$PARM metric-type $VAR(./metric-type/@)\"; \ fi; \ - if [ -n \"$(./route-map/@)\" ]; then \ - PARM=\"\\$PARM route-map $(./route-map/@)\"; \ + if [ -n \"$VAR(./route-map/@)\" ]; then \ + PARM=\"$PARM route-map $VAR(./route-map/@)\"; \ fi; \ - \\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \ - -c \"default-information originate \\$PARM\"; \ + ${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"router ospf\" \ + -c \"default-information originate $PARM\"; \ fi; " diff --git a/templates/protocols/ospf/default-information/originate/route-map/node.def b/templates/protocols/ospf/default-information/originate/route-map/node.def index 5b4f587e..c7943078 100644 --- a/templates/protocols/ospf/default-information/originate/route-map/node.def +++ b/templates/protocols/ospf/default-information/originate/route-map/node.def @@ -1,2 +1,2 @@ type: txt -help: "Route map reference" +help: Route map reference |