diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-23 14:42:54 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-23 14:42:54 +0200 |
commit | a1f82a06e1a1788164f52ef291a1275568912b9b (patch) | |
tree | b02513b3e119ba44e0488f47b10a0bab007bd0da /op-mode-definitions | |
parent | 501e9a9a53aac71c451a8dfbbe2508ff59740a0b (diff) | |
download | vyos-1x-a1f82a06e1a1788164f52ef291a1275568912b9b.tar.gz vyos-1x-a1f82a06e1a1788164f52ef291a1275568912b9b.zip |
container: T2216: op-mode now supports updating the image for a given container
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/containers.xml.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/op-mode-definitions/containers.xml.in b/op-mode-definitions/containers.xml.in index e93487105..efa72e1a4 100644 --- a/op-mode-definitions/containers.xml.in +++ b/op-mode-definitions/containers.xml.in @@ -109,4 +109,24 @@ </tagNode> </children> </node> + <node name="update"> + <children> + <node name="container"> + <properties> + <help>Update a container image</help> + </properties> + <children> + <tagNode name="image"> + <properties> + <help>Delete container image</help> + <completionHelp> + <path>container name</path> + </completionHelp> + </properties> + <command>sudo ${vyos_op_scripts_dir}/containers_op.py --update "${4}"</command> + </tagNode> + </children> + </node> + </children> + </node> </interfaceDefinition> |