sysrepo.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <KLISH
  3. xmlns="https://klish.libcode.org/klish3"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xsi:schemaLocation="https://src.libcode.org/pkun/klish/src/master/klish.xsd">
  6. <PLUGIN name="sysrepo">
  7. ShowBrackets = y
  8. ShowSemicolons = y
  9. KeysWithStatement = y
  10. FirstKeyWithStatement = n
  11. Colorize = y
  12. Indent = 2
  13. DefaultKeys = n
  14. ShowDefaultKeys = n
  15. HidePasswords = y
  16. EnableNACM = n
  17. Oneliners = y
  18. </PLUGIN>
  19. <PTYPE name="PLINE_SET">
  20. <COMPL>
  21. <ACTION sym="srp_compl_set@sysrepo"/>
  22. </COMPL>
  23. <HELP>
  24. <ACTION sym="srp_help_set@sysrepo"/>
  25. </HELP>
  26. <ACTION sym="PLINE_SET@sysrepo"/>
  27. </PTYPE>
  28. <PTYPE name="PLINE_DEL">
  29. <COMPL>
  30. <ACTION sym="srp_compl_del@sysrepo"/>
  31. </COMPL>
  32. <HELP>
  33. <ACTION sym="srp_help_del@sysrepo"/>
  34. </HELP>
  35. <ACTION sym="PLINE_DEL@sysrepo"/>
  36. </PTYPE>
  37. <PTYPE name="PLINE_EDIT">
  38. <COMPL>
  39. <ACTION sym="srp_compl_edit@sysrepo"/>
  40. </COMPL>
  41. <HELP>
  42. <ACTION sym="srp_help_edit@sysrepo"/>
  43. </HELP>
  44. <ACTION sym="PLINE_EDIT@sysrepo"/>
  45. </PTYPE>
  46. <PTYPE name="PLINE_INSERT_FROM">
  47. <COMPL>
  48. <ACTION sym="srp_compl_insert@sysrepo"/>
  49. </COMPL>
  50. <HELP>
  51. <ACTION sym="srp_help_insert@sysrepo"/>
  52. </HELP>
  53. <ACTION sym="PLINE_INSERT_FROM@sysrepo"/>
  54. </PTYPE>
  55. <PTYPE name="PLINE_INSERT_TO">
  56. <COMPL>
  57. <ACTION sym="srp_compl_insert_to@sysrepo"/>
  58. </COMPL>
  59. <HELP>
  60. <ACTION sym="srp_help_insert_to@sysrepo"/>
  61. </HELP>
  62. <ACTION sym="PLINE_INSERT_TO@sysrepo"/>
  63. </PTYPE>
  64. <VIEW name="main">
  65. <COMMAND name="configure" help="Configure system">
  66. <ACTION sym="nav">replace sysrepo</ACTION>
  67. </COMMAND>
  68. <COMMAND name="show" help="Show" mode="switch">
  69. <COMMAND name="running" help="Show running-config">
  70. <PARAM name="path" ptype="/PLINE_EDIT" min="0" max="100"/>
  71. <ACTION sym="srp_show@sysrepo">running</ACTION>
  72. </COMMAND>
  73. </COMMAND>
  74. </VIEW>
  75. <VIEW name="sysrepo">
  76. <PROMPT>
  77. <ACTION sym="srp_prompt_edit_path@sysrepo"/>
  78. <ACTION sym="prompt" exec_on="always">%u@%h# </ACTION>
  79. </PROMPT>
  80. <HOTKEY key="^Z" cmd="exit"/>
  81. <HOTKEY key="^@" cmd="show"/>
  82. <COMMAND name="exit" help="Exit configuration mode or level up">
  83. <ACTION sym="srp_up@sysrepo"/>
  84. <ACTION sym="nav" exec_on="fail">replace main</ACTION>
  85. </COMMAND>
  86. <COMMAND name="do" help="Execute operational mode command">
  87. <VIEW name="operational" ref="/main"/>
  88. </COMMAND>
  89. <COMMAND name="set" help="Set data to configuration">
  90. <PARAM name="path" ptype="/PLINE_SET" max="100"/>
  91. <ACTION sym="srp_set@sysrepo"/>
  92. </COMMAND>
  93. <COMMAND name="del" help="Delete data from configuration">
  94. <PARAM name="path" ptype="/PLINE_DEL" max="100"/>
  95. <ACTION sym="srp_del@sysrepo"/>
  96. </COMMAND>
  97. <COMMAND name="edit" help="Change hierarchy level">
  98. <PARAM name="path" ptype="/PLINE_EDIT" max="100"/>
  99. <ACTION sym="srp_edit@sysrepo"/>
  100. </COMMAND>
  101. <COMMAND name="top" help="Change hierarchy level to the top one">
  102. <ACTION sym="srp_top@sysrepo"/>
  103. </COMMAND>
  104. <COMMAND name="up" help="Up hierarchy level">
  105. <ACTION sym="srp_up@sysrepo"/>
  106. </COMMAND>
  107. <COMMAND name="insert" help="Insert statement to specified position">
  108. <PARAM name="from_path" ptype="/PLINE_INSERT_FROM" max="100"/>
  109. <SWITCH name="position">
  110. <COMMAND name="first" help="First position"/>
  111. <COMMAND name="last" help="Last position"/>
  112. <SEQ name="relative_block">
  113. <SWITCH name="relative">
  114. <COMMAND name="before" help="Before specified element"/>
  115. <COMMAND name="after" help="After specified element"/>
  116. </SWITCH>
  117. <PARAM name="to_path" ptype="/PLINE_INSERT_TO" max="100"/>
  118. </SEQ>
  119. </SWITCH>
  120. <ACTION sym="srp_insert@sysrepo"/>
  121. </COMMAND>
  122. <COMMAND name="commit" help="Commit data to running-config">
  123. <ACTION sym="srp_commit@sysrepo"/>
  124. </COMMAND>
  125. <COMMAND name="check" help="Verify the candidate configuration">
  126. <ACTION sym="srp_verify@sysrepo"/>
  127. </COMMAND>
  128. <COMMAND name="reset" help="Reset to running-config">
  129. <ACTION sym="srp_reset@sysrepo"/>
  130. </COMMAND>
  131. <COMMAND name="show" help="Show data hierarchy">
  132. <PARAM name="path" ptype="/PLINE_EDIT" min="0" max="100"/>
  133. <ACTION sym="srp_show_cur_path@sysrepo"/>
  134. </COMMAND>
  135. <COMMAND name="diff" help="Show diff relative running-config">
  136. <PARAM name="path" ptype="/PLINE_EDIT" min="0" max="100"/>
  137. <ACTION sym="srp_diff@sysrepo"/>
  138. </COMMAND>
  139. <!--
  140. <COMMAND name="deactivate" help="Deactivate statement">
  141. <PARAM name="path" ptype="/PLINE_DEL" max="100"/>
  142. <ACTION sym="srp_deactivate@sysrepo"/>
  143. </COMMAND>
  144. -->
  145. </VIEW>
  146. </KLISH>