Code Review
/
demo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add TOSCA templates to support SRIOV-NIC
[demo.git]
/
tosca
/
vCPE
/
generate_csar.sh
diff --git
a/tosca/vCPE/generate_csar.sh
b/tosca/vCPE/generate_csar.sh
index
21ba3a6
..
36541e6
100755
(executable)
--- a/
tosca/vCPE/generate_csar.sh
+++ b/
tosca/vCPE/generate_csar.sh
@@
-28,7
+28,12
@@
for dir in $DIRS; do
# prepare temporary csar build subdirectory
cd $ROOT_DIR/$dir
mkdir $ROOT_DIR/$dir/tmp
# prepare temporary csar build subdirectory
cd $ROOT_DIR/$dir
mkdir $ROOT_DIR/$dir/tmp
- cp MainServiceTemplate.mf MainServiceTemplate.yaml tmp/
+ cp MainServiceTemplate.mf tmp/
+ if [ $1 ] && [ $1 == "sriov" ]; then
+ cp MainServiceTemplate_sriov.yaml tmp/MainServiceTemplate.yaml
+ else
+ cp MainServiceTemplate.yaml tmp/
+ fi
cp -r $ROOT_DIR/Artifacts tmp/
cp -r $ROOT_DIR/Definitions tmp/
cp -r $ROOT_DIR/TOSCA-Metadata tmp/
cp -r $ROOT_DIR/Artifacts tmp/
cp -r $ROOT_DIR/Definitions tmp/
cp -r $ROOT_DIR/TOSCA-Metadata tmp/