From e2b8d516969b1863d6e0668ccc5e8ecaf2e30c15 Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Tue, 11 Mar 2008 18:05:40 -0700 Subject: CLI tab enhancement at "set interfaces ethernet <> address" - tab gives dhcp if interface hasn't been configured before --- templates/interfaces/ethernet/node.tag/address/node.def | 1 + 1 file changed, 1 insertion(+) (limited to 'templates/interfaces') 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: /\tSet the IP address and prefix length dhcp\t\t\t\tSet the IP address and prefix length via DHCP -- cgit v1.2.3