Fixing CSIT tests for vnfsdk-refrepo and vnfsdk-marketplace.
[integration/csit.git] / scripts / get-docker-network-ip.sh
old mode 100644 (file)
new mode 100755 (executable)
similarity index 59%
rename from plans/vnfsdk-marketplace/sanity-check/setup.sh
rename to scripts/get-docker-network-ip.sh
index 85c6bc2..383decd
@@ -1,6 +1,5 @@
 #!/bin/bash
-#
-# Copyright 2016-2017 Huawei Technologies Co., Ltd.
+# Copyright 2020 Nokia.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # 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.
-#
-# These scripts are sourced by run-csit.sh.
-
-
-
-#Start market place
-docker run -d -i -t --name=vnfmarket   -p 8702:8702 onap/vnfmarket
-
-REPO_IP=`docker inspect --format '{{ .NetworkSettings.IPAddress }}' vnfmarket`
-
-
-# Pass any variables required by Robot test suites in ROBOT_VARIABLES
-ROBOT_VARIABLES="-v REPO_IP:${REPO_IP}"
-
 
+ip a | grep docker | grep inet | awk '{print $2}' | awk -F'/' '{print $1}'