cli: add "end" alias to "up", leave this node/subsection

I'm sorry, I'm just so used to this modus from the previous company.
The difference to 'exit', which is available on Cisco IOS, is that it
on the top-level config context does not exit/abort to admin-exec but
instead stops.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-08-30 10:37:43 +02:00
committed by Tobias Waldekranz
parent 44987d7045
commit f6cfdfd467
+6 -2
View File
@@ -143,7 +143,7 @@
<COMMAND name="exit" help="Exit">
<ACTION sym="nav">pop</ACTION>
</COMMAND>
<COMMAND name="logout" help="Alias for exit">
<COMMAND name="logout" help="Alias to exit">
<ACTION sym="nav">pop</ACTION>
</COMMAND>
@@ -393,6 +393,10 @@
<ACTION sym="srp_up@sysrepo"/>
</COMMAND>
<COMMAND name="end" help="Alias to up, leave this subsection/node">
<ACTION sym="srp_up@sysrepo"/>
</COMMAND>
<COMMAND name="exit" help="Ascend to parent configuration node, or abort (from top)">
<ACTION sym="srp_up@sysrepo"/>
<ACTION sym="srp_reset@sysrepo" exec_on="fail" update_retcode="false"/>
@@ -420,7 +424,7 @@
<ACTION sym="srp_del@sysrepo"/>
</COMMAND>
<COMMAND name="no" help="Alias for delete">
<COMMAND name="no" help="Alias to delete">
<PARAM name="path" ptype="/PLINE_DEL" max="100"/>
<ACTION sym="srp_del@sysrepo"/>
</COMMAND>