summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohit Mehta <mohit@vyatta.com>2008-03-11 18:05:40 -0700
committerMohit Mehta <mohit@vyatta.com>2008-03-11 18:05:40 -0700
commite2b8d516969b1863d6e0668ccc5e8ecaf2e30c15 (patch)
treefc94797796be9d7eedd20c9de2a9a2741de06dee
parent2fd9d914de23cd6fabc08e3e4be4a588f2b2803d (diff)
downloadvyatta-cfg-e2b8d516969b1863d6e0668ccc5e8ecaf2e30c15.tar.gz
vyatta-cfg-e2b8d516969b1863d6e0668ccc5e8ecaf2e30c15.zip
CLI tab enhancement at "set interfaces ethernet <> address"
- tab gives dhcp if interface hasn't been configured before
-rw-r--r--templates/interfaces/ethernet/node.tag/address/node.def1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/address/node.def b/templates/interfaces/ethernet/node.tag/address/node.def
index 410c072..79bc6e2 100644
--- a/templates/interfaces/ethernet/node.tag/address/node.def
+++ b/templates/interfaces/ethernet/node.tag/address/node.def
@@ -4,6 +4,7 @@ help: Configure an IP address for this interface
syntax:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --valid-addr $VAR(@) --dev $VAR(../@)"; "Invalid IP address/prefix [$VAR(@)] for interface $VAR(../@)"
update:expression: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-update $VAR(@) --dev $VAR(../@)"; "Error setting address $VAR(@) on interface $VAR(../@)"
delete:expression: "sudo /opt/vyatta/sbin/vyatta-interfaces.pl --eth-addr-delete $VAR(@) --dev $VAR(../@)"; "Error deleting address $VAR(@) on interface $VAR(../@)"
+allowed: echo "dhcp"
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