New script: slice_config for letting slices distribute key/value pairs
authorSapan Bhatia <gwsapan@gmail.com>
Tue, 12 Jun 2012 12:13:46 +0000 (08:13 -0400)
committerSapan Bhatia <gwsapan@gmail.com>
Tue, 12 Jun 2012 12:13:46 +0000 (08:13 -0400)
exec/claimport [changed mode: 0644->0755]
exec/slice_config [new file with mode: 0755]

old mode 100644 (file)
new mode 100755 (executable)
diff --git a/exec/slice_config b/exec/slice_config
new file mode 100755 (executable)
index 0000000..cc5c5cc
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+BASEPATH=/etc/planetlab/vsys-attributes/$1
+if [ -e $BASEPATH ]; then
+cd $BASEPATH
+for KEY in *
+do
+  INNER_KEY=`echo $KEY | cut -d_ -f 2`
+  echo $INNER_KEY": "`cat $BASEPATH/$KEY`
+done
+fi