aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/scripts/dynamicPayloadPartial.sh
blob: f9b08a0d85b13e88f0bdd88e375b452b4b40527d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

#Create empty partial snapshot file
INPUT_DATASNAPSHOT_FILE=$1

set -A nodes customer service-subscription service pserver cloud-region availability-zone tenant zone complex
 > $INPUT_DATASNAPSHOT_FILE".partial"

for nodeType in ${nodes[@]}
	do
         grep "aai-node-type.*\"value\":\"$nodeType\"" $INPUT_DATASNAPSHOT_FILE >>$INPUT_DATASNAPSHOT_FILE'.partial'
    done
exit 0