Browse Source

Fix klish xml-examples due to COMMAND interrupt field

git-svn-id: https://klish.googlecode.com/svn/trunk@355 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 13 years ago
parent
commit
c7fab9436a

+ 1 - 1
xml-examples/klish/etc/clish-xml/common.xml

@@ -13,7 +13,7 @@
 
 <COMMAND name="!"
 	help="Comments">
-	<ACTION>echo</ACTION>
+	<ACTION>true</ACTION>
 </COMMAND>
 
 </CLISH_MODULE>

+ 1 - 1
xml-examples/klish/etc/clish-xml/enable-mode.xml

@@ -9,7 +9,7 @@
 
 <!-- Inheritance -->
 
-	<NAMESPACE ref="ping-view" 
+	<NAMESPACE ref="ping-view"
 		help="true"
 		completion="true"/>
 

+ 3 - 2
xml-examples/klish/etc/clish-xml/info-mode.xml

@@ -10,7 +10,7 @@
 
 <!-- Inheritance -->
 
-	<NAMESPACE ref="ping-view" 
+	<NAMESPACE ref="ping-view"
 		help="true"
 		completion="true"/>
 
@@ -18,7 +18,8 @@
 
 	<COMMAND name="enable"
 		help="Turn on privileged commands"
-		lock="false">
+		lock="false"
+		interrupt="true">
 		<ACTION>su -l -c "clish -x /etc/clish-enable"</ACTION>
 	</COMMAND>
 

+ 6 - 2
xml-examples/klish/etc/clish-xml/ping.xml

@@ -11,7 +11,9 @@
 <!-- commands set: ping, ping6, arping, traceroute, traceroute6 -->
 <!-- ping, ping6, arping -->
 	<COMMAND name="ping"
-		help="Send messages to network hosts">
+		help="Send messages to network hosts"
+		lock="false"
+		interrupt="true">
 		<PARAM name="proto"
 			help="Protocol to use for the ping"
 			optional="true"
@@ -144,7 +146,9 @@
 
 <!-- traceroute, traceroute6 -->
 	<COMMAND name="traceroute"
-		help="Print the route packets trace to network host">
+		help="Print the route packets trace to network host"
+		lock="false"
+		interrupt="true">
 		<PARAM name="proto"
 			help="Protocol to use"
 			optional="true"

+ 3 - 1
xml-examples/klish/etc/clish-xml/route.xml

@@ -10,7 +10,9 @@
 <!-- Show routing information -->
 
 	<COMMAND name="show ip route"
-		help="IP routing table">
+		help="IP routing table"
+		lock="false"
+		interrupt="true">
 		<ACTION>ip route show</ACTION>
 	</COMMAND>