diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-06-15 10:14:03 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-06-15 10:14:03 -0700 |
commit | 85b19a9b420d0ee0682b4376c9a0428d52866473 (patch) | |
tree | bdcdc9e5afaaba3e134d411e6c66dd3184a7a57e /templates | |
parent | e24523cda77d3277844bfe638c086bcf85348f7d (diff) | |
download | vyatta-cfg-quagga-85b19a9b420d0ee0682b4376c9a0428d52866473.tar.gz vyatta-cfg-quagga-85b19a9b420d0ee0682b4376c9a0428d52866473.zip |
Remove unnecessary :expression: syntax
Several templates can use simplified non-expression syntax
Diffstat (limited to 'templates')
10 files changed, 20 insertions, 22 deletions
diff --git a/templates/interfaces/bonding/node.tag/mtu/node.def b/templates/interfaces/bonding/node.tag/mtu/node.def index 8be06dc3..cd244402 100644 --- a/templates/interfaces/bonding/node.tag/mtu/node.def +++ b/templates/interfaces/bonding/node.tag/mtu/node.def @@ -1,5 +1,5 @@ type: u32 help: Set the Maximum Transmission Unit (MTU) for this interface syntax:expression: $VAR(@) >= 68 && $VAR(@) <= 9000; "MTU must be between 68 and 9000" -update:expression: "ip link set $VAR(../@) mtu $VAR(@)"; "Error setting MTU on dev $VAR(../@)" -delete:expression: "ip link set $VAR(../@) mtu 1500"; "Error deleting MTU on dev $VAR(../@)" +update: ip link set $VAR(../@) mtu $VAR(@) +delete: ip link set $VAR(../@) mtu 1500 diff --git a/templates/interfaces/bridge/node.tag/aging/node.def b/templates/interfaces/bridge/node.tag/aging/node.def index 533a8ed5..b78f53bf 100644 --- a/templates/interfaces/bridge/node.tag/aging/node.def +++ b/templates/interfaces/bridge/node.tag/aging/node.def @@ -1,7 +1,7 @@ type: u32 help: Set the number of seconds a MAC address will be kept in the forwarding database default: 300 -update:expression: "sudo brctl setageing $VAR(../@) $VAR(@)" -delete:expression: "sudo brctl setageing $VAR(../@) 300" +update: sudo brctl setageing $VAR(../@) $VAR(@) +delete: sudo brctl setageing $VAR(../@) 300 comp_help: possible completions: <number> Set the number of seconds for ageing (default 300) diff --git a/templates/interfaces/bridge/node.tag/hello-time/node.def b/templates/interfaces/bridge/node.tag/hello-time/node.def index 19324a65..a2472720 100644 --- a/templates/interfaces/bridge/node.tag/hello-time/node.def +++ b/templates/interfaces/bridge/node.tag/hello-time/node.def @@ -1,8 +1,8 @@ type: u32 help: Set the hello packet advertisment interval default: 2 -update:expression: "sudo brctl sethello $VAR(../@) $VAR(@)" -delete:expression: "sudo brctl sethello $VAR(../@) 2" +update: sudo brctl sethello $VAR(../@) $VAR(@) +delete: sudo brctl sethello $VAR(../@) 2 comp_help: possible completions: <number> Set the hello packet advertisment interval (default 2) diff --git a/templates/interfaces/bridge/node.tag/max-age/node.def b/templates/interfaces/bridge/node.tag/max-age/node.def index ddfdf129..e69b273c 100644 --- a/templates/interfaces/bridge/node.tag/max-age/node.def +++ b/templates/interfaces/bridge/node.tag/max-age/node.def @@ -1,8 +1,8 @@ type: u32 help: Set the interval at which neighbor bridges are removed default: 20 -update:expression: "sudo brctl setmaxage $VAR(../@) $VAR(@)" -delete:expression: "sudo brctl setmaxage $VAR(../@) 20" +update: sudo brctl setmaxage $VAR(../@) $VAR(@) +delete: sudo brctl setmaxage $VAR(../@) 20 comp_help: possible completions: <number> Set the max age (default 20) diff --git a/templates/interfaces/bridge/node.tag/priority/node.def b/templates/interfaces/bridge/node.tag/priority/node.def index 1084dbf3..d731f49a 100644 --- a/templates/interfaces/bridge/node.tag/priority/node.def +++ b/templates/interfaces/bridge/node.tag/priority/node.def @@ -1,7 +1,7 @@ type: u32 help: Set the priority for this bridge default: 0 -update:expression: "sudo brctl setbridgeprio $VAR(../@) $VAR(@)" -delete:expression: "sudo brctl setbridgeprio $VAR(../@) 0" +update: sudo brctl setbridgeprio $VAR(../@) $VAR(@) +delete: sudo brctl setbridgeprio $VAR(../@) 0 comp_help: possible completions: <number> Set bridge priority (default 0) diff --git a/templates/interfaces/tunnel/node.tag/disable/node.def b/templates/interfaces/tunnel/node.tag/disable/node.def index 23fb46e7..26199646 100644 --- a/templates/interfaces/tunnel/node.tag/disable/node.def +++ b/templates/interfaces/tunnel/node.tag/disable/node.def @@ -1,6 +1,4 @@ help: Disable interface -update:expression: "ip link set $VAR(../@) down"; \ - "Error disabling dev $VAR(../@)" +update: ip link set $VAR(../@) down -delete:expression: "ip link set $VAR(../@) up"; \ - "Error enabling dev $VAR(../@)" +delete: ip link set $VAR(../@) up diff --git a/templates/interfaces/tunnel/node.tag/mtu/node.def b/templates/interfaces/tunnel/node.tag/mtu/node.def index 8076cacd..400533f9 100644 --- a/templates/interfaces/tunnel/node.tag/mtu/node.def +++ b/templates/interfaces/tunnel/node.tag/mtu/node.def @@ -1,7 +1,7 @@ type: u32 help: Set the tunnel Maximum Transmission Unit (MTU) syntax:expression: $VAR(@) >= 64 && $VAR(@) <= 8024; "Must be between 64-8024" -update:expression: "ip link set $VAR(../@) mtu $VAR(@)" -delete:expression: "ip link set $VAR(../@) mtu 1476" +update: ip link set $VAR(../@) mtu $VAR(@) +delete: ip link set $VAR(../@) mtu 1476 comp_help: possible completions: <64-8024> Set MTU diff --git a/templates/interfaces/tunnel/node.tag/tos/node.def b/templates/interfaces/tunnel/node.tag/tos/node.def index 9492d7aa..58a4cee0 100644 --- a/templates/interfaces/tunnel/node.tag/tos/node.def +++ b/templates/interfaces/tunnel/node.tag/tos/node.def @@ -1,7 +1,7 @@ type: u32 help: Set the tunnel Type of Service (TOS) syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 99; "Must be between 0-99" -update:expression: "ip tunnel change $VAR(../@) tos $VAR(@)" -delete:expression: "ip tunnel change $VAR(../@) tos inherit" +update: ip tunnel change $VAR(../@) tos $VAR(@) +delete: ip tunnel change $VAR(../@) tos inherit comp_help: possible completions <0-99> Set type of service diff --git a/templates/interfaces/tunnel/node.tag/ttl/node.def b/templates/interfaces/tunnel/node.tag/ttl/node.def index 29bc4ced..a42a199f 100644 --- a/templates/interfaces/tunnel/node.tag/ttl/node.def +++ b/templates/interfaces/tunnel/node.tag/ttl/node.def @@ -2,7 +2,7 @@ type: u32 help: Set the tunnel time to live field default: 255 syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 255; "Must be between 0-255" -update:expression: "ip tunnel change $VAR(../@) ttl $VAR(@)" -delete:expression: "ip tunnel change $VAR(../@) ttl inherit" +update: ip tunnel change $VAR(../@) ttl $VAR(@) +delete: ip tunnel change $VAR(../@) ttl inherit comp_help: possible completions: <0-255> Set time to live (default 255) diff --git a/templates/system/domain-name/node.def b/templates/system/domain-name/node.def index 96ccc7ae..fa8527d9 100644 --- a/templates/system/domain-name/node.def +++ b/templates/system/domain-name/node.def @@ -4,7 +4,7 @@ help: Set system domain name syntax:expression: pattern $VAR(@) "^[-a-zA-Z0-9.]{0,63}$" ; "invalid domain name $VAR(@)" # also add localhost line into /etc/hosts (see host-name template)? -update:expression: "sudo /opt/vyatta/sbin/vyatta_update_resolv.pl" +update: sudo /opt/vyatta/sbin/vyatta_update_resolv.pl # also update localhost line in /etc/hosts (see host-name template)? -delete:expression: "sudo /opt/vyatta/sbin/vyatta_update_resolv.pl" +delete: sudo /opt/vyatta/sbin/vyatta_update_resolv.pl |