-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1122 from seokho-son/main
Update to enable disk type settings
- Loading branch information
Showing
7 changed files
with
367 additions
and
462 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
echo "####################################################################" | ||
echo "## Gen csv file from script config" | ||
echo "####################################################################" | ||
|
||
source ../init.sh | ||
|
||
PRINT="ProviderName,connectionName,cspImageId,OsType" | ||
echo "${PRINT}" | ||
echo "${PRINT}" >./cloudimage.csv | ||
|
||
INDEXX=${TotalNumCSP} | ||
for ((cspi = 1; cspi <= INDEXX; cspi++)); do | ||
INDEXY=${TotalNumRegion[$cspi]} | ||
for ((cspj = 1; cspj <= INDEXY; cspj++)); do | ||
PRINT="${ProviderName[$cspi]},${CONN_CONFIG[$cspi,$cspj]},${IMAGE_NAME[$cspi,$cspj]},${IMAGE_TYPE[$cspi,$cspj]}" | ||
echo "$PRINT" | ||
echo "$PRINT" >>./cloudimage.csv | ||
done | ||
done | ||
|
||
PRINT="providerName,regionName,connectionName,cspSpecName,CostPerHour,evaluationScore01,evaluationScore02,evaluationScore03,evaluationScore04,evaluationScore05,evaluationScore06,evaluationScore07,evaluationScore08,evaluationScore09,evaluationScore10,rootDiskType,rootDiskSize" | ||
echo "${PRINT}" | ||
echo "${PRINT}" >./cloudspec.csv | ||
|
||
INDEXX=${TotalNumCSP} | ||
for ((cspi = 1; cspi <= INDEXX; cspi++)); do | ||
INDEXY=${TotalNumRegion[$cspi]} | ||
for ((cspj = 1; cspj <= INDEXY; cspj++)); do | ||
PRINT="${ProviderName[$cspi]},${RegionName[$cspi,$cspj]},${CONN_CONFIG[$cspi,$cspj]},${SPEC_NAME[$cspi,$cspj]},,,,,,,,,,,${DISK_TYPE[$cspi,$cspj]},${DISK_SIZE[$cspi,$cspj]}" | ||
echo "$PRINT" | ||
echo "$PRINT" >>./cloudspec.csv | ||
done | ||
done |