From 38ae54675fa5ea5a9bab5870b0a966e5f3da66ca Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Fri, 14 May 2010 17:14:13 -0700 Subject: POC implementation of unified enumeration mechanism * use "enumeration" template field for both CLI completion and GUI2 enumeration support. * CLI completion now uses enumeration if it exists. * add "existing-interfaces" script as an example. --- lib/Vyatta/Config.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Vyatta/Config.pm') diff --git a/lib/Vyatta/Config.pm b/lib/Vyatta/Config.pm index c0c8494..e4d74bb 100755 --- a/lib/Vyatta/Config.pm +++ b/lib/Vyatta/Config.pm @@ -829,6 +829,8 @@ sub parseTmplAll { } } elsif (/^help:\s+(\S.*)$/) { $ret{help} = $1; + } elsif (/^enumeration:\s+(\S+)$/) { + $ret{enum} = $1; } } close($tmpl); -- cgit v1.2.3