diff options
-rwxr-xr-x | opera/openo_connect.py | 4 | ||||
-rwxr-xr-x | prepare.sh | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/opera/openo_connect.py b/opera/openo_connect.py index 9412f72..7dcc55c 100755 --- a/opera/openo_connect.py +++ b/opera/openo_connect.py @@ -95,7 +95,11 @@ def get_vnfm_ip(msb_ip): if i["type"] == "jujuvnfm": vnfm_url = i["url"] break + ip = re.compile("\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}") + if len(re.findall(ip, vnfm_url)) == 0: + raise RaiseError("vnfm ip not find") + vnfm_ip = re.findall(ip, vnfm_url)[0] return vnfm_ip @@ -53,7 +53,7 @@ function network_prepare() function prepare_env() { - generate_conf package_prepare + generate_conf network_prepare } |