diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-08-01 12:28:21 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-08-01 12:28:21 +0200 |
commit | 37e905de5ec903cff3e83ce4863b22b9e6d53d73 (patch) | |
tree | 35a373a7f392ac4ea6d37b899797ea02e63debd7 /op-mode-definitions | |
parent | dfbbdd2950c3db3f56649ff602a86b8bf17de748 (diff) | |
download | vyos-1x-37e905de5ec903cff3e83ce4863b22b9e6d53d73.tar.gz vyos-1x-37e905de5ec903cff3e83ce4863b22b9e6d53d73.zip |
T2753: add new op-mode command "add system image"
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/add-system-image.xml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/op-mode-definitions/add-system-image.xml b/op-mode-definitions/add-system-image.xml new file mode 100644 index 000000000..2809f6050 --- /dev/null +++ b/op-mode-definitions/add-system-image.xml @@ -0,0 +1,38 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="add"> + <children> + <node name="system"> + <properties> + <help>Add item to a system facility</help> + </properties> + <children> + <tagNode name="image"> + <properties> + <help>Add a new image to the system</help> + <completionHelp> + <list>/path/to/vyos-image.iso http://example.com/vyos-image.iso</list> + </completionHelp> + </properties> + <command>sudo ${vyatta_sbindir}/install-image "$4"</command> + <children> + <tagNode name="username"> + <properties> + <help>Username for authentication</help> + </properties> + <children> + <tagNode name="password"> + <properties> + <help>Password to use with authentication</help> + </properties> + <command>sudo ${vyatta_sbindir}/install-image "$4" "$6" "$8"</command> + </tagNode> + </children> + </tagNode> + </children> + </tagNode> + </children> + </node> + </children> + </node> +</interfaceDefinition> |