sysrepo.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <KLISH
  3. xmlns="http://clish.sourceforge.net/XMLSchema"
  4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5. xsi:schemaLocation="http://clish.sourceforge.net/XMLSchema http://clish.sourceforge.net/XMLSchema/clish.xsd">
  6. <PLUGIN name="sysrepo"/>
  7. <ENTRY name="PLINE_SET" purpose="ptype">
  8. <ENTRY name="completion" purpose="completion">
  9. <ACTION sym="srp_compl@sysrepo"/>
  10. </ENTRY>
  11. <ENTRY name="help" purpose="help">
  12. <ACTION sym="srp_help@sysrepo"/>
  13. </ENTRY>
  14. <ACTION sym="PLINE_SET@sysrepo"/>
  15. </ENTRY>
  16. <ENTRY name="PLINE_DEL" purpose="ptype">
  17. <ENTRY name="completion" purpose="completion">
  18. <ACTION sym="srp_compl@sysrepo"/>
  19. </ENTRY>
  20. <ENTRY name="help" purpose="help">
  21. <ACTION sym="srp_help@sysrepo"/>
  22. </ENTRY>
  23. <ACTION sym="PLINE_DEL@sysrepo"/>
  24. </ENTRY>
  25. <ENTRY name="PLINE_EDIT" purpose="ptype">
  26. <ENTRY name="completion" purpose="completion">
  27. <ACTION sym="srp_compl@sysrepo"/>
  28. </ENTRY>
  29. <ENTRY name="help" purpose="help">
  30. <ACTION sym="srp_help@sysrepo"/>
  31. </ENTRY>
  32. <ACTION sym="PLINE_EDIT@sysrepo"/>
  33. </ENTRY>
  34. <ENTRY name="PLINE_INSERT_FROM" purpose="ptype">
  35. <ENTRY name="completion" purpose="completion">
  36. <ACTION sym="srp_compl@sysrepo"/>
  37. </ENTRY>
  38. <ENTRY name="help" purpose="help">
  39. <ACTION sym="srp_help@sysrepo"/>
  40. </ENTRY>
  41. <ACTION sym="PLINE_INSERT_FROM@sysrepo"/>
  42. </ENTRY>
  43. <ENTRY name="PLINE_INSERT_TO" purpose="ptype">
  44. <ENTRY name="completion" purpose="completion">
  45. <ACTION sym="srp_compl_insert_to@sysrepo"/>
  46. </ENTRY>
  47. <ENTRY name="help" purpose="help">
  48. <ACTION sym="srp_help_insert_to@sysrepo"/>
  49. </ENTRY>
  50. <ACTION sym="PLINE_INSERT_TO@sysrepo"/>
  51. </ENTRY>
  52. <ENTRY name="main" container="true">
  53. <ENTRY name="configure" help="Configure system">
  54. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  55. <ACTION sym="nav">replace sysrepo</ACTION>
  56. </ENTRY>
  57. <ENTRY name="show" help="Show" mode="switch">
  58. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  59. <ENTRY name="configuration" help="Show running-config" mode="sequence">
  60. <ENTRY name="SUBCOMMAND" purpose="ptype" ref="/SUBCOMMAND"/>
  61. </ENTRY>
  62. <ACTION sym="srp_show_running@sysrepo"/>
  63. </ENTRY>
  64. </ENTRY>
  65. <ENTRY name="sysrepo" mode="switch" container="true">
  66. <ENTRY name="prompt" purpose="prompt">
  67. <ACTION sym="srp_prompt_edit_path@sysrepo"/>
  68. <ACTION sym="print"># </ACTION>
  69. </ENTRY>
  70. <ENTRY name="exit" help="Exit configuration mode or level up">
  71. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  72. <ACTION sym="srp_up@sysrepo"/>
  73. <ACTION sym="nav" exec_on="fail">replace main</ACTION>
  74. </ENTRY>
  75. <ENTRY name="quit" help="Alias for 'exit' command" ref="/sysrepo/exit"/>
  76. <ENTRY name="run" help="Run operational mode command">
  77. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  78. <ENTRY name="operational" mode="switch" container="true" ref="/main"/>
  79. </ENTRY>
  80. <ENTRY name="do" help="Alias for 'run' command" ref="/sysrepo/run"/>
  81. <ENTRY name="set" help="Set data to database" mode="sequence">
  82. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  83. <ENTRY name="path" max="100">
  84. <ENTRY name="PLINE_SET" purpose="ptype" ref="/PLINE_SET"/>
  85. </ENTRY>
  86. <ACTION sym="srp_set@sysrepo"/>
  87. </ENTRY>
  88. <ENTRY name="del" help="Delete data from database" mode="sequence">
  89. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  90. <ENTRY name="path" max="100">
  91. <ENTRY name="PLINE_DEL" purpose="ptype" ref="/PLINE_DEL"/>
  92. </ENTRY>
  93. <ACTION sym="srp_del@sysrepo"/>
  94. </ENTRY>
  95. <ENTRY name="delete" help="Alias for 'del' command" ref="/sysrepo/del"/>
  96. <ENTRY name="edit" help="Change hierarchy level" mode="sequence">
  97. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  98. <ENTRY name="path" max="100">
  99. <ENTRY name="PLINE_EDIT" purpose="ptype" ref="/PLINE_EDIT"/>
  100. </ENTRY>
  101. <ACTION sym="srp_edit@sysrepo"/>
  102. </ENTRY>
  103. <ENTRY name="top" help="Change hierarchy level to the top one" mode="sequence">
  104. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  105. <ACTION sym="srp_top@sysrepo"/>
  106. </ENTRY>
  107. <ENTRY name="up" help="Up hierarchy level" mode="sequence">
  108. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  109. <ACTION sym="srp_up@sysrepo"/>
  110. </ENTRY>
  111. <ENTRY name="insert" help="Insert statement to specified position" mode="sequence">
  112. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  113. <ENTRY name="from_path" max="100">
  114. <ENTRY name="PLINE_INSERT_FROM" purpose="ptype" ref="/PLINE_INSERT_FROM"/>
  115. </ENTRY>
  116. <ENTRY name="position" mode="switch" container="true">
  117. <ENTRY name="first" help="First position">
  118. <ENTRY name="SUBCOMMAND" purpose="ptype" ref="/SUBCOMMAND"/>
  119. </ENTRY>
  120. <ENTRY name="last" help="Last position">
  121. <ENTRY name="SUBCOMMAND" purpose="ptype" ref="/SUBCOMMAND"/>
  122. </ENTRY>
  123. <ENTRY name="relative_block" mode="sequence" container="true">
  124. <ENTRY name="relative" mode="switch" container="true">
  125. <ENTRY name="before" help="Before specified element">
  126. <ENTRY name="SUBCOMMAND" purpose="ptype" ref="/SUBCOMMAND"/>
  127. </ENTRY>
  128. <ENTRY name="after" help="After specified element">
  129. <ENTRY name="SUBCOMMAND" purpose="ptype" ref="/SUBCOMMAND"/>
  130. </ENTRY>
  131. </ENTRY>
  132. <ENTRY name="to_path" max="100">
  133. <ENTRY name="PLINE_INSERT_TO" purpose="ptype" ref="/PLINE_INSERT_TO"/>
  134. </ENTRY>
  135. </ENTRY>
  136. </ENTRY>
  137. <ACTION sym="srp_insert@sysrepo"/>
  138. </ENTRY>
  139. <ENTRY name="commit" help="Commit data to running-config" mode="sequence">
  140. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  141. <ACTION sym="srp_commit@sysrepo"/>
  142. </ENTRY>
  143. <ENTRY name="rollback" help="Rollback to running-config" mode="sequence">
  144. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  145. <ACTION sym="srp_rollback@sysrepo"/>
  146. </ENTRY>
  147. <ENTRY name="show" help="Show data hierarchy" mode="sequence">
  148. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  149. <ENTRY name="path" min="0" max="100">
  150. <ENTRY name="PLINE_EDIT" purpose="ptype" ref="/PLINE_EDIT"/>
  151. </ENTRY>
  152. <ACTION sym="srp_show@sysrepo"/>
  153. </ENTRY>
  154. <!--
  155. <ENTRY name="deactivate" help="Deactivate statement" mode="sequence">
  156. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  157. <ENTRY name="path" max="100">
  158. <ENTRY name="PLINE_DEL" purpose="ptype" ref="/PLINE_DEL"/>
  159. </ENTRY>
  160. <ACTION sym="srp_deactivate@sysrepo"/>
  161. </ENTRY>
  162. -->
  163. </ENTRY>
  164. </KLISH>