diff options
author | John Estabrook <jestabro@vyos.io> | 2023-09-19 21:36:55 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-09-20 15:32:07 -0500 |
commit | 2d3f3297b575f88662495e14a7c7324ff73b6bfc (patch) | |
tree | 4da9e0719aea09fac6099cd3ba40c08902dfe5e7 /op-mode-definitions/raid.xml.in | |
parent | 42736111facf08ac37b86e6fc3cbd395aab166bc (diff) | |
download | vyos-1x-2d3f3297b575f88662495e14a7c7324ff73b6bfc.tar.gz vyos-1x-2d3f3297b575f88662495e14a7c7324ff73b6bfc.zip |
op-mode: raid: T5608: define add/delete raid member
Diffstat (limited to 'op-mode-definitions/raid.xml.in')
-rw-r--r-- | op-mode-definitions/raid.xml.in | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/op-mode-definitions/raid.xml.in b/op-mode-definitions/raid.xml.in new file mode 100644 index 000000000..5d0c9ef3d --- /dev/null +++ b/op-mode-definitions/raid.xml.in @@ -0,0 +1,69 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="add"> + <children> + <tagNode name="raid"> + <properties> + <help>Add a RAID set element</help> + <completionHelp> + <script>${vyos_completion_dir}/list_raidset.sh</script> + </completionHelp> + </properties> + <children> + <node name="by-id"> + <properties> + <help>Add a member by disk id to a RAID set</help> + </properties> + <children> + <tagNode name="member"> + <properties> + <help>Add a member to a RAID set</help> + </properties> + <command>sudo ${vyos_op_scripts_dir}/raid.py add --raid-set-name $3 --by-id --member $6</command> + </tagNode> + </children> + </node> + <tagNode name="member"> + <properties> + <help>Add a member to a RAID set</help> + </properties> + <command>sudo ${vyos_op_scripts_dir}/raid.py add --raid-set-name $3 --member $5</command> + </tagNode> + </children> + </tagNode> + </children> + </node> + <node name="delete"> + <children> + <tagNode name="raid"> + <properties> + <help>Add a RAID set element</help> + <completionHelp> + <script>${vyos_completion_dir}/list_raidset.sh</script> + </completionHelp> + </properties> + <children> + <node name="by-id"> + <properties> + <help>Add a member by disk id to a RAID set</help> + </properties> + <children> + <tagNode name="member"> + <properties> + <help>Add a member to a RAID set</help> + </properties> + <command>sudo ${vyos_op_scripts_dir}/raid.py delete --raid-set-name $3 --by-id --member $6</command> + </tagNode> + </children> + </node> + <tagNode name="member"> + <properties> + <help>Add a member to a RAID set</help> + </properties> + <command>sudo ${vyos_op_scripts_dir}/raid.py delete --raid-set-name $3 --member $5</command> + </tagNode> + </children> + </tagNode> + </children> + </node> +</interfaceDefinition> |