summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-disk.xml
diff options
context:
space:
mode:
authorRunar Borge <runar@borge.nu>2018-06-07 23:31:37 +0200
committerRunar Borge <runar@borge.nu>2018-06-07 23:31:37 +0200
commit9e14244d84e1525808cecb586e6df93381dd6543 (patch)
tree624b5aac0e6d885300456ee29f028a734c9fae4e /op-mode-definitions/show-disk.xml
parent6b9e8d75d87b859a680f55c694354a24b132cde3 (diff)
downloadvyos-1x-9e14244d84e1525808cecb586e6df93381dd6543.tar.gz
vyos-1x-9e14244d84e1525808cecb586e6df93381dd6543.zip
T689: convert show disks with completion script to new script
Diffstat (limited to 'op-mode-definitions/show-disk.xml')
-rw-r--r--op-mode-definitions/show-disk.xml24
1 files changed, 24 insertions, 0 deletions
diff --git a/op-mode-definitions/show-disk.xml b/op-mode-definitions/show-disk.xml
new file mode 100644
index 000000000..243a3656a
--- /dev/null
+++ b/op-mode-definitions/show-disk.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <tagNode name="disk">
+ <properties>
+ <help>Show status of disk device</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_disks.sh</script>
+ </completionHelp>
+ </properties>
+ <children>
+ <node name="format">
+ <properties>
+ <help>Show disk drive formatting</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show-disk-format.sh $3</command>
+ </node>
+ </children>
+ </tagNode>
+
+ </children>
+ </node>
+</interfaceDefinition>