sysrepo.xml 6.6 KB

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