summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmytro Aleksandrov <alkersan@gmail.com>2018-08-21 08:39:16 +0300
committerDmytro Aleksandrov <alkersan@gmail.com>2018-08-23 16:59:13 +0300
commit549899e1f155a1d8816ea6b5b3dc130d5ca7b037 (patch)
tree7932c4718c28876ccce1ff9c5e61bd181956d662
parentd67c3a7b9b3fcb1e79d2cee61627ed869847673f (diff)
downloadvyos-1x-549899e1f155a1d8816ea6b5b3dc130d5ca7b037.tar.gz
vyos-1x-549899e1f155a1d8816ea6b5b3dc130d5ca7b037.zip
T689: Moved clear console and reset terminal ops from vyatta-op
-rw-r--r--Makefile1
-rw-r--r--op-mode-definitions/terminal.xml29
2 files changed, 30 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 70101181d..6a3596875 100644
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,7 @@ op_mode_definitions:
find $(CURDIR)/op-mode-definitions/ -type f -name "*.xml" | xargs -I {} $(CURDIR)/scripts/build-command-op-templates {} $(CURDIR)/schema/op-mode-definition.rng $(OP_TMPL_DIR) || exit 1
# XXX: delete top level op mode node.def's that now live in other packages
+ rm -f $(OP_TMPL_DIR)/clear/node.def
rm -f $(OP_TMPL_DIR)/set/node.def
rm -f $(OP_TMPL_DIR)/show/node.def
rm -f $(OP_TMPL_DIR)/reset/node.def
diff --git a/op-mode-definitions/terminal.xml b/op-mode-definitions/terminal.xml
new file mode 100644
index 000000000..db74f867e
--- /dev/null
+++ b/op-mode-definitions/terminal.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="clear">
+ <properties>
+ <help>Clear system information</help>
+ </properties>
+ <children>
+ <node name="console">
+ <properties>
+ <help>Clear screen</help>
+ </properties>
+ <command>/usr/bin/clear</command>
+ </node>
+ </children>
+ </node>
+ <node name="reset">
+ <properties>
+ <help>Reset a service</help>
+ </properties>
+ <children>
+ <node name="terminal">
+ <properties>
+ <help>Reset terminal</help>
+ </properties>
+ <command>/usr/bin/reset</command>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>