|
CLISH
0.7.3
|
e.g. "mode" - local view
"mode qos" - global view
Will auto-complete "mode qos" but won't run it...
<VARIABLE name="fred"><ACTION>puts "hello world"</ACTION></VARIABLE>will get the value of "hello world" when expanded as ${fred}... This is simple for TCL as the result is returned... what about for clish , how do we get a return value into the execitable?
<NAMESPACE name="fred">
<COMMAND>
</NAMESPACE>
<VIEW name=" kdjkdj"...>
<IMPORT namespace="fred">
<COMMAND ...>
</VIEW> by default a view imports commands from the global namespace. NB. need to be able to resolve commands from all included namespaces. <NAMESPACE name="config">
<COMMAND name="show"...>
<COMMAND name="show ip"...>
...
</NAMESPACE>
<VIEW name="foobar"...>
<COMMAND name="do"
help="perform a configuration command"
namespace="config"/>
</VIEW>
1.8.6