summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-01-16 18:01:17 -0800
committerStig Thormodsrud <stig@vyatta.com>2008-01-16 18:01:17 -0800
commit5c2667059d175aeccc37348377066ddd5c06d6ef (patch)
treee59850fb3ea82956b8595b3bfe84e19416c4c3e1 /templates
parent3f80afcea4cfdcea0c085f5842542ce66180e579 (diff)
downloadvyatta-cfg-5c2667059d175aeccc37348377066ddd5c06d6ef.tar.gz
vyatta-cfg-5c2667059d175aeccc37348377066ddd5c06d6ef.zip
Add help and error message for 'set interfaces ethernet <dev> address
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/ethernet/node.tag/address/node.def12
-rw-r--r--templates/interfaces/loopback/node.tag/address/node.def12
2 files changed, 16 insertions, 8 deletions
diff --git a/templates/interfaces/ethernet/node.tag/address/node.def b/templates/interfaces/ethernet/node.tag/address/node.def
index 6cef105..af19867 100644
--- a/templates/interfaces/ethernet/node.tag/address/node.def
+++ b/templates/interfaces/ethernet/node.tag/address/node.def
@@ -1,6 +1,10 @@
multi:
type: txt
-help: "Set IPv4 address and prefix for this interface"
-syntax: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --valid-addr $(@) --dev $(../@)"
-update: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-update $(@) --dev $(../@)"; "Error setting address $(@) on dev $(../@)"
-delete: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-delete $(@) --dev $(../@)"; "Error deleting address $(@) on dev $(../@)"
+help: "Configure an IP address for this interface"
+syntax: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --valid-addr $(@) --dev $(../@)"; "Invalid IP address/prefix [$(@)] for interface $(../@)"
+update: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-update $(@) --dev $(../@)"; "Error setting address $(@) on interface $(../@)"
+delete: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-delete $(@) --dev $(../@)"; "Error deleting address $(@) on interface $(../@)"
+#comp_help:Possible completions:
+# <IP address>/<prefix length>\tSet the IP address and prefix length
+# dhcp\t\t\t\tSet the IP address and prefix length via DHCP
+
diff --git a/templates/interfaces/loopback/node.tag/address/node.def b/templates/interfaces/loopback/node.tag/address/node.def
index 6cef105..af19867 100644
--- a/templates/interfaces/loopback/node.tag/address/node.def
+++ b/templates/interfaces/loopback/node.tag/address/node.def
@@ -1,6 +1,10 @@
multi:
type: txt
-help: "Set IPv4 address and prefix for this interface"
-syntax: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --valid-addr $(@) --dev $(../@)"
-update: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-update $(@) --dev $(../@)"; "Error setting address $(@) on dev $(../@)"
-delete: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-delete $(@) --dev $(../@)"; "Error deleting address $(@) on dev $(../@)"
+help: "Configure an IP address for this interface"
+syntax: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --valid-addr $(@) --dev $(../@)"; "Invalid IP address/prefix [$(@)] for interface $(../@)"
+update: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-update $(@) --dev $(../@)"; "Error setting address $(@) on interface $(../@)"
+delete: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-delete $(@) --dev $(../@)"; "Error deleting address $(@) on interface $(../@)"
+#comp_help:Possible completions:
+# <IP address>/<prefix length>\tSet the IP address and prefix length
+# dhcp\t\t\t\tSet the IP address and prefix length via DHCP
+