diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-24 18:43:13 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-24 18:43:13 -0700 |
commit | b7750af0fa67e28cf6eb607408485dbda194837b (patch) | |
tree | da0729ef58b5fa5ed9673b3d9c11a953cddd8fcc /templates/interfaces | |
parent | 5471d0359de347017c618076cf0f17a06f764952 (diff) | |
download | vyatta-cfg-b7750af0fa67e28cf6eb607408485dbda194837b.tar.gz vyatta-cfg-b7750af0fa67e28cf6eb607408485dbda194837b.zip |
* add dynamic "allowed" support for config-mode completion.
* add support for completion help text.
* add an example for each of the above ("ethernet" and "ethernet/duplex").
Diffstat (limited to 'templates/interfaces')
-rw-r--r-- | templates/interfaces/ethernet/node.def | 3 | ||||
-rw-r--r-- | templates/interfaces/ethernet/node.tag/duplex/node.def | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def index b5a320e..8806643 100644 --- a/templates/interfaces/ethernet/node.def +++ b/templates/interfaces/ethernet/node.def @@ -6,3 +6,6 @@ syntax: exec " \ echo ethernet interface $(@) doesn\\'t exist on this system ; \ exit 1 ; \ fi ; " +#allowed: local -a array ; +# array=( /sys/class/net/{eth,vmnet}* ) ; +# echo -n ${array[@]##*/} diff --git a/templates/interfaces/ethernet/node.tag/duplex/node.def b/templates/interfaces/ethernet/node.tag/duplex/node.def index 70df798..684d4ec 100644 --- a/templates/interfaces/ethernet/node.tag/duplex/node.def +++ b/templates/interfaces/ethernet/node.tag/duplex/node.def @@ -4,3 +4,5 @@ syntax: $(@) in "half", "full"; "duplex must be half or full" commit: $(../speed) != ""; "if duplex is hardcoded, speed must also be hardcoded" update: "sudo ethtool -s $(../@) speed $(../speed/@) duplex $(@) autoneg off" delete: "sudo ethtool -s $(../@) autoneg on" +#comp_help: half\t\tHalf duplex +# full\t\tFull duplex |