summaryrefslogtreecommitdiff
path: root/templates/rename/system
diff options
context:
space:
mode:
Diffstat (limited to 'templates/rename/system')
-rw-r--r--templates/rename/system/image/node.def1
-rw-r--r--templates/rename/system/image/node.tag/node.def6
-rw-r--r--templates/rename/system/image/node.tag/node.tag/node.def7
-rw-r--r--templates/rename/system/node.def1
4 files changed, 15 insertions, 0 deletions
diff --git a/templates/rename/system/image/node.def b/templates/rename/system/image/node.def
new file mode 100644
index 0000000..00e9c81
--- /dev/null
+++ b/templates/rename/system/image/node.def
@@ -0,0 +1 @@
+help: Re-name a system image.
diff --git a/templates/rename/system/image/node.tag/node.def b/templates/rename/system/image/node.tag/node.def
new file mode 100644
index 0000000..eb25def
--- /dev/null
+++ b/templates/rename/system/image/node.tag/node.def
@@ -0,0 +1,6 @@
+help: System image to rename.
+
+allowed:
+ local -a images ;
+ images=`/opt/vyatta/bin/vyatta-boot-image.pl --list`
+ echo -n $images
diff --git a/templates/rename/system/image/node.tag/node.tag/node.def b/templates/rename/system/image/node.tag/node.tag/node.def
new file mode 100644
index 0000000..1f94c57
--- /dev/null
+++ b/templates/rename/system/image/node.tag/node.tag/node.def
@@ -0,0 +1,7 @@
+help: New name for system image.
+
+run:
+ old=$4
+ new=$5
+ sudo /opt/vyatta/bin/rename-image.pl --old_name $old --new_name $new
+
diff --git a/templates/rename/system/node.def b/templates/rename/system/node.def
new file mode 100644
index 0000000..1d86fc2
--- /dev/null
+++ b/templates/rename/system/node.def
@@ -0,0 +1 @@
+help: Re-name a system object.