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/interfaces/tunnel | |
parent | e24523cda77d3277844bfe638c086bcf85348f7d (diff) | |
download | vyatta-cfg-system-85b19a9b420d0ee0682b4376c9a0428d52866473.tar.gz vyatta-cfg-system-85b19a9b420d0ee0682b4376c9a0428d52866473.zip |
Remove unnecessary :expression: syntax
Several templates can use simplified non-expression syntax
Diffstat (limited to 'templates/interfaces/tunnel')
4 files changed, 8 insertions, 10 deletions
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) |