summaryrefslogtreecommitdiff
path: root/templates/delete
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2010-01-11 17:05:26 -0800
committerBob Gilligan <gilligan@vyatta.com>2010-01-11 17:05:26 -0800
commitff11c68efa6fac9a20ae62f0d7049b6e60ed9c4f (patch)
treed2fd80d878454580f5f103f2d8a7b9e5644d9bca /templates/delete
parent094d5a5f9dcc47d3197da46ebe4b67ebe7ce2eb0 (diff)
downloadvyatta-op-ff11c68efa6fac9a20ae62f0d7049b6e60ed9c4f.tar.gz
vyatta-op-ff11c68efa6fac9a20ae62f0d7049b6e60ed9c4f.zip
Add image name completion for two system image commands.
The two commands are: "set system image default-boot" and "delete system image".
Diffstat (limited to 'templates/delete')
-rw-r--r--templates/delete/system/image/node.tag/node.def10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/delete/system/image/node.tag/node.def b/templates/delete/system/image/node.tag/node.def
new file mode 100644
index 0000000..2c26bf4
--- /dev/null
+++ b/templates/delete/system/image/node.tag/node.def
@@ -0,0 +1,10 @@
+help: Default boot image name
+
+allowed:
+ local -a images ;
+ images=`/opt/vyatta/bin/vyatta-boot-image.pl --list`
+ echo -n $images
+
+run:
+ image=$4
+ sudo /opt/vyatta/bin/vyatta-boot-image.pl --del $image