From: Sapan Bhatia Date: Tue, 12 Jun 2012 12:13:46 +0000 (-0400) Subject: New script: slice_config for letting slices distribute key/value pairs X-Git-Tag: vsys-scripts-0.95-41~1 X-Git-Url: http://git.onelab.eu/?p=vsys-scripts.git;a=commitdiff_plain;h=a89044231bcf0d1c6f21bce0d276616f5cd9f2e9 New script: slice_config for letting slices distribute key/value pairs --- diff --git a/exec/claimport b/exec/claimport old mode 100644 new mode 100755 diff --git a/exec/slice_config b/exec/slice_config new file mode 100755 index 0000000..cc5c5cc --- /dev/null +++ b/exec/slice_config @@ -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