summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-09-21 13:52:33 +0200
committerGitHub <noreply@github.com>2018-09-21 13:52:33 +0200
commit12d42bb85efa0658a9160bf7ce892514ee859293 (patch)
tree699dae2069febab360dbe7158ea4eca1d16f883f
parent680e431cfa58de0cdb42eb83b6e9abdb3ee54cb1 (diff)
parent549899e1f155a1d8816ea6b5b3dc130d5ca7b037 (diff)
downloadvyos-1x-12d42bb85efa0658a9160bf7ce892514ee859293.tar.gz
vyos-1x-12d42bb85efa0658a9160bf7ce892514ee859293.zip
Merge pull request #40 from alkersan/clear_term
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 b626bbd8b..b7cf53896 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)/show/interfaces/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>