aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/steps/simulator/pnf/utils.py
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2020-11-25 10:52:03 +0000
committerMichal Jagiello <michal.jagiello@t-mobile.pl>2020-12-16 12:54:40 +0000
commitaf63861d32daac92cfaf1e00842fa23bc6ba7c6b (patch)
tree634460460c186c219ae1df50cf0e04bffd2384ff /src/onaptests/steps/simulator/pnf/utils.py
parent6a19fe0a4bbf2319af52c34a21ceca88cadd84cd (diff)
PNF macro instantiation
Issue-ID: TEST-280 Change-Id: I6d18b90c3f4c66ddf8c9a4ebe3de7182481e331f Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Diffstat (limited to 'src/onaptests/steps/simulator/pnf/utils.py')
-rw-r--r--src/onaptests/steps/simulator/pnf/utils.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/onaptests/steps/simulator/pnf/utils.py b/src/onaptests/steps/simulator/pnf/utils.py
index c9ca4e8..efac46e 100644
--- a/src/onaptests/steps/simulator/pnf/utils.py
+++ b/src/onaptests/steps/simulator/pnf/utils.py
@@ -2,11 +2,14 @@
import os
import sys
import time
+import urllib.parse
import yaml
from ipaddress import ip_address
from typing import Dict, Optional
from decorator import decorator
import docker
+
+from onapsdk.configuration import settings
from onaptests.masspnfsimulator.MassPnfSim import (
MassPnfSim, get_parser
)
@@ -88,8 +91,9 @@ def bootstrap_simulator() -> None:
# collect settings that will be placed in the simulator directory
vesprotocol = config["setup"].get('vesprotocol', "http")
- vesip = config["setup"].get('vesip', "")
- vesport = config["setup"].get('vesport', "")
+ ves_url = urllib.parse.urlparse(settings.VES_URL)
+ vesip = ves_url.hostname
+ vesport = ves_url.port
vesresource = config["setup"].get('vesresource', "")
vesversion = config["setup"].get('vesversion', "")