sysrepo.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  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>
  58. <ENTRY name="sysrepo" mode="switch" container="true">
  59. <ENTRY name="prompt" purpose="prompt">
  60. <ACTION sym="srp_prompt_edit_path@sysrepo"/>
  61. <ACTION sym="print"># </ACTION>
  62. </ENTRY>
  63. <ENTRY name="exit" help="Exit configuration mode or level up">
  64. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  65. <ACTION sym="srp_up@sysrepo"/>
  66. <ACTION sym="nav" exec_on="fail">replace main</ACTION>
  67. </ENTRY>
  68. <ENTRY name="quit" ref="/sysrepo/exit"/>
  69. <ENTRY name="run" help="Run operational mode command">
  70. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  71. <ENTRY name="operational" mode="switch" container="true" ref="/main"/>
  72. </ENTRY>
  73. <ENTRY name="do" help="Run operational mode command">
  74. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  75. <ENTRY name="operational" mode="switch" container="true" ref="/main"/>
  76. </ENTRY>
  77. <ENTRY name="set" help="Set data to database" mode="sequence">
  78. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  79. <ENTRY name="path" max="100">
  80. <ENTRY name="PLINE_SET" purpose="ptype" ref="/PLINE_SET"/>
  81. </ENTRY>
  82. <ACTION sym="srp_set@sysrepo"/>
  83. </ENTRY>
  84. <ENTRY name="del" help="Delete data from database" mode="sequence">
  85. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  86. <ENTRY name="path" max="100">
  87. <ENTRY name="PLINE_DEL" purpose="ptype" ref="/PLINE_DEL"/>
  88. </ENTRY>
  89. <ACTION sym="srp_del@sysrepo"/>
  90. </ENTRY>
  91. <ENTRY name="delete" ref="/sysrepo/del"/>
  92. <ENTRY name="edit" help="Edit data hierarchy" mode="sequence">
  93. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  94. <ENTRY name="path" max="100">
  95. <ENTRY name="PLINE_EDIT" purpose="ptype" ref="/PLINE_EDIT"/>
  96. </ENTRY>
  97. <ACTION sym="srp_edit@sysrepo"/>
  98. </ENTRY>
  99. <ENTRY name="top" help="Edit top data level" mode="sequence">
  100. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  101. <ACTION sym="srp_top@sysrepo"/>
  102. </ENTRY>
  103. <ENTRY name="up" help="Up data level" mode="sequence">
  104. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  105. <ACTION sym="srp_up@sysrepo"/>
  106. </ENTRY>
  107. <ENTRY name="insert" help="Insert statement to specified position" mode="sequence">
  108. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  109. <ENTRY name="from_path" max="100">
  110. <ENTRY name="PLINE_INSERT_FROM" purpose="ptype" ref="/PLINE_INSERT_FROM"/>
  111. </ENTRY>
  112. <ENTRY name="position" mode="switch" container="true">
  113. <ENTRY name="first" help="First position">
  114. <ENTRY name="SUBCOMMAND" purpose="ptype" ref="/SUBCOMMAND"/>
  115. </ENTRY>
  116. <ENTRY name="last" help="Last position">
  117. <ENTRY name="SUBCOMMAND" purpose="ptype" ref="/SUBCOMMAND"/>
  118. </ENTRY>
  119. <ENTRY name="relative_block" mode="sequence" container="true">
  120. <ENTRY name="relative" mode="switch" container="true">
  121. <ENTRY name="before" help="Before specified element">
  122. <ENTRY name="SUBCOMMAND" purpose="ptype" ref="/SUBCOMMAND"/>
  123. </ENTRY>
  124. <ENTRY name="after" help="After specified element">
  125. <ENTRY name="SUBCOMMAND" purpose="ptype" ref="/SUBCOMMAND"/>
  126. </ENTRY>
  127. </ENTRY>
  128. <ENTRY name="to_path" max="100">
  129. <ENTRY name="PLINE_INSERT_TO" purpose="ptype" ref="/PLINE_INSERT_TO"/>
  130. </ENTRY>
  131. </ENTRY>
  132. </ENTRY>
  133. <ACTION sym="srp_insert@sysrepo"/>
  134. </ENTRY>
  135. <ENTRY name="commit" help="Commit data to running-config" mode="sequence">
  136. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  137. <ACTION sym="srp_commit@sysrepo"/>
  138. </ENTRY>
  139. <ENTRY name="rollback" help="Rollback to running-config" mode="sequence">
  140. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  141. <ACTION sym="srp_rollback@sysrepo"/>
  142. </ENTRY>
  143. <ENTRY name="show" help="Show data hierarchy" mode="sequence">
  144. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  145. <ENTRY name="path" min="0" max="100">
  146. <ENTRY name="PLINE_EDIT" purpose="ptype" ref="/PLINE_EDIT"/>
  147. </ENTRY>
  148. <ACTION sym="srp_show@sysrepo"/>
  149. </ENTRY>
  150. <ENTRY name="deactivate" help="Deactivate statement" mode="sequence">
  151. <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
  152. <ENTRY name="path" max="100">
  153. <ENTRY name="PLINE_DEL" purpose="ptype" ref="/PLINE_DEL"/>
  154. </ENTRY>
  155. <ACTION sym="srp_deactivate@sysrepo"/>
  156. </ENTRY>
  157. </ENTRY>
  158. </KLISH>