summaryrefslogtreecommitdiff
path: root/op-mode-definitions/disks.xml.in
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-09-22 09:51:48 -0500
committerGitHub <noreply@github.com>2023-09-22 09:51:48 -0500
commit90ce099f065325841c4c18b4a4beadaf141a35b2 (patch)
treed2e9a3c78199669f887d2a8c376811d9e011f7df /op-mode-definitions/disks.xml.in
parente0ce69365f46db5339144cb27bff6b3dd5924871 (diff)
parent7447b4ef6e6cc8a9b1e7b8062935c52d3b4429cb (diff)
downloadvyos-1x-90ce099f065325841c4c18b4a4beadaf141a35b2.tar.gz
vyos-1x-90ce099f065325841c4c18b4a4beadaf141a35b2.zip
Merge pull request #2301 from vyos/mergify/bp/sagitta/pr-2298
smoketest: T5607: support getting SCSI device by drive-id (backport #2298)
Diffstat (limited to 'op-mode-definitions/disks.xml.in')
-rw-r--r--op-mode-definitions/disks.xml.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/op-mode-definitions/disks.xml.in b/op-mode-definitions/disks.xml.in
index 117ac5065..8a1e2c86f 100644
--- a/op-mode-definitions/disks.xml.in
+++ b/op-mode-definitions/disks.xml.in
@@ -5,6 +5,26 @@
<help>Format a device</help>
</properties>
<children>
+ <node name="by-id">
+ <properties>
+ <help>Find disk by ending of id string</help>
+ </properties>
+ <children>
+ <tagNode name="disk">
+ <properties>
+ <help>Format a disk drive</help>
+ </properties>
+ <children>
+ <tagNode name="like">
+ <properties>
+ <help>Format this disk the same as another disk</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/format_disk.py --by-id --target $4 --proto $6</command>
+ </tagNode>
+ </children>
+ </tagNode>
+ </children>
+ </node>
<tagNode name="disk">
<properties>
<help>Format a disk drive</help>