bug 838 fix vnfd obtained from nsr reference
[osm/NBI.git] / osm_nbi / tests / create-ping-pong.sh
index 7ef1cf7..47447a7 100755 (executable)
@@ -1,5 +1,18 @@
 #! /bin/bash
 
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 export NBI_URL=https://localhost:9999/osm
 USERNAME=admin
 PASSWORD=admin
@@ -30,7 +43,6 @@ TOKEN=`curl --insecure -H "Content-Type: application/yaml" -H "Accept: applicati
      2>/dev/null | awk '($1=="id:"){print $2}'`;
 echo token: $TOKEN
 
-
 # VNFD
 #########
 #insert PKG
@@ -44,8 +56,6 @@ VNFD2_ID=`curl --insecure -w "%{http_code}\n" -H "Content-Type: application/gzip
      2>/dev/null | awk '($1=="id:"){print $2}'`
 echo pong_vnfd: $VNFD2_ID
 
-
-
 # NSD
 #########
 #insert PKG
@@ -54,7 +64,6 @@ NSD1_ID=`curl --insecure -w "%{http_code}\n" -H "Content-Type: application/gzip"
     2>/dev/null | awk '($1=="id:"){print $2}'`
 echo ping_pong_nsd: $NSD1_ID
 
-
 # NSRS
 ##############
 #add nsr