sysrepo.xml 6.5 KB

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