123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <?xml version="1.0" encoding="UTF-8"?>
- <KLISH
- xmlns="https://klish.libcode.org/klish3"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="https://src.libcode.org/pkun/klish/src/master/klish.xsd">
- <PLUGIN name="sysrepo">
- ShowBrackets = y
- ShowSemicolons = y
- KeysWithStatement = y
- FirstKeyWithStatement = n
- Colorize = y
- Indent = 2
- DefaultKeys = n
- ShowDefaultKeys = n
- HidePasswords = y
- EnableNACM = n
- Oneliners = y
- </PLUGIN>
- <PTYPE name="PLINE_SET">
- <COMPL>
- <ACTION sym="srp_compl@sysrepo"/>
- </COMPL>
- <HELP>
- <ACTION sym="srp_help@sysrepo"/>
- </HELP>
- <ACTION sym="PLINE_SET@sysrepo"/>
- </PTYPE>
- <PTYPE name="PLINE_DEL">
- <COMPL>
- <ACTION sym="srp_compl@sysrepo"/>
- </COMPL>
- <HELP>
- <ACTION sym="srp_help@sysrepo"/>
- </HELP>
- <ACTION sym="PLINE_DEL@sysrepo"/>
- </PTYPE>
- <PTYPE name="PLINE_EDIT">
- <COMPL>
- <ACTION sym="srp_compl@sysrepo"/>
- </COMPL>
- <HELP>
- <ACTION sym="srp_help@sysrepo"/>
- </HELP>
- <ACTION sym="PLINE_EDIT@sysrepo"/>
- </PTYPE>
- <PTYPE name="PLINE_INSERT_FROM">
- <COMPL>
- <ACTION sym="srp_compl@sysrepo"/>
- </COMPL>
- <HELP>
- <ACTION sym="srp_help@sysrepo"/>
- </HELP>
- <ACTION sym="PLINE_INSERT_FROM@sysrepo"/>
- </PTYPE>
- <PTYPE name="PLINE_INSERT_TO">
- <COMPL>
- <ACTION sym="srp_compl_insert_to@sysrepo"/>
- </COMPL>
- <HELP>
- <ACTION sym="srp_help_insert_to@sysrepo"/>
- </HELP>
- <ACTION sym="PLINE_INSERT_TO@sysrepo"/>
- </PTYPE>
- <VIEW name="main">
- <COMMAND name="configure" help="Configure system">
- <ACTION sym="nav">replace sysrepo</ACTION>
- </COMMAND>
- <COMMAND name="show" help="Show" mode="switch">
- <COMMAND name="running" help="Show running-config">
- <ACTION sym="srp_show_running@sysrepo"/>
- </COMMAND>
- </COMMAND>
- </VIEW>
- <VIEW name="sysrepo">
- <PROMPT>
- <ACTION sym="srp_prompt_edit_path@sysrepo"/>
- <ACTION sym="prompt" exec_on="always">%u@%h# </ACTION>
- </PROMPT>
- <HOTKEY key="^Z" cmd="exit"/>
- <HOTKEY key="^@" cmd="show"/>
- <COMMAND name="exit" help="Exit configuration mode or level up">
- <ACTION sym="srp_up@sysrepo"/>
- <ACTION sym="nav" exec_on="fail">replace main</ACTION>
- </COMMAND>
- <COMMAND name="do" help="Execute operational mode command">
- <VIEW name="operational" ref="/main"/>
- </COMMAND>
- <COMMAND name="set" help="Set data to configuration">
- <PARAM name="path" ptype="/PLINE_SET" max="100"/>
- <ACTION sym="srp_set@sysrepo"/>
- </COMMAND>
- <COMMAND name="del" help="Delete data from configuration">
- <PARAM name="path" ptype="/PLINE_DEL" max="100"/>
- <ACTION sym="srp_del@sysrepo"/>
- </COMMAND>
- <COMMAND name="edit" help="Change hierarchy level">
- <PARAM name="path" ptype="/PLINE_EDIT" max="100"/>
- <ACTION sym="srp_edit@sysrepo"/>
- </COMMAND>
- <COMMAND name="top" help="Change hierarchy level to the top one">
- <ACTION sym="srp_top@sysrepo"/>
- </COMMAND>
- <COMMAND name="up" help="Up hierarchy level">
- <ACTION sym="srp_up@sysrepo"/>
- </COMMAND>
- <COMMAND name="insert" help="Insert statement to specified position">
- <PARAM name="from_path" ptype="/PLINE_INSERT_FROM" max="100"/>
- <SWITCH name="position">
- <COMMAND name="first" help="First position"/>
- <COMMAND name="last" help="Last position"/>
- <SEQ name="relative_block">
- <SWITCH name="relative">
- <COMMAND name="before" help="Before specified element"/>
- <COMMAND name="after" help="After specified element"/>
- </SWITCH>
- <PARAM name="to_path" ptype="/PLINE_INSERT_TO" max="100"/>
- </SEQ>
- </SWITCH>
- <ACTION sym="srp_insert@sysrepo"/>
- </COMMAND>
- <COMMAND name="commit" help="Commit data to running-config">
- <ACTION sym="srp_commit@sysrepo"/>
- </COMMAND>
- <COMMAND name="check" help="Verify the candidate configuration">
- <ACTION sym="srp_verify@sysrepo"/>
- </COMMAND>
- <COMMAND name="reset" help="Reset to running-config">
- <ACTION sym="srp_reset@sysrepo"/>
- </COMMAND>
- <COMMAND name="show" help="Show data hierarchy">
- <PARAM name="path" ptype="/PLINE_EDIT" min="0" max="100"/>
- <ACTION sym="srp_show@sysrepo"/>
- </COMMAND>
- <COMMAND name="diff" help="Show diff relative running-config">
- <PARAM name="path" ptype="/PLINE_EDIT" min="0" max="100"/>
- <ACTION sym="srp_diff@sysrepo"/>
- </COMMAND>
- <!--
- <COMMAND name="deactivate" help="Deactivate statement">
- <PARAM name="path" ptype="/PLINE_DEL" max="100"/>
- <ACTION sym="srp_deactivate@sysrepo"/>
- </COMMAND>
- -->
- </VIEW>
- </KLISH>
|