New issue 101 by supp...@vinkconsult.com: Command line timeout, change view
depending on PARAMs
http://code.google.com/p/klish/issues/detail?id=101
Hi,
Is there a global variable for the timeout so a user can disable or change
the timeout?
Second question, is there a way to change the view depending on the entered
PARAMs?
For interface configuration I use
<COMMAND name="interface ethernet"
help="Ethernet IEEE 802.3"
view="configure-eth-view"
viewid="iface=${iface}">
<PARAM name="iface"
help="Ethernet interface"
ptype="ETH_IFACE"/>
etc...
</COMMAND>
so
config# interface ethernet eth0
config-eth0#
This also applies to trunk, vlan and dummy interfaces, each having its own
configure view.
When the interface is configured I would like to use the the form
config# interface eth0 or
config# interface dummy1
The "ethernet", "dummy", "vlan" etc. is only to be used when the interface
will be created.
Interfaces that already exist should be addressed by the "interface
<ifname>" command.
Regards,
Andre
Now it is not known what view has to be used as this is depending on the
interface chosen.
What "timeout" do you mean? Idle timeout?
The klish will change view only if ACTION returns 0. The changing of view
due to PARAM value is not possible now. You can set PARAM value to viewid
variable.
With idle timeout I mean the time after klish logs out when there is
no user action.
I normally have a timeout of 600 seconds but I would like to give the
user the opportunity to change this logout/idle time.
Andre
Op Woensdag, 25-01-2012 om 17:31 schreef kl...@googlecode.com:
The only way to set timeout is command line option. In our project we use
klish command to set timeout value to the file and then while klish
execution the wrapper script (that executes clish binary) get timeout value
from this file. I have thinked about setting timeout on the fly but it will
have no influence to another clish instances.
The "view" field is not dynamic. It can't expand variables.