diff --git a/ETSI/Python/_py__NFVI_Resources_Management/.meta__py__NFVI_Resources_Management.xml b/ETSI/Python/_py__NFVI_Resources_Management/.meta__py__NFVI_Resources_Management.xml
index f6b392d19..d9c944e95 100755
--- a/ETSI/Python/_py__NFVI_Resources_Management/.meta__py__NFVI_Resources_Management.xml
+++ b/ETSI/Python/_py__NFVI_Resources_Management/.meta__py__NFVI_Resources_Management.xml
@@ -7,7 +7,7 @@
DATE_MODIFICATION
- 1629460833518
+ 1629735401503
REPOSITORY
@@ -15,11 +15,23 @@
DATE_CREATION
- 1629460833518
+ 1629735401496
+
+
+ MODEL
+ 0
TAG
+
+ FILE_TYPE
+ unknown
+
+
+ MANUFACTURER
+ 0
+
TYPE
FILE
diff --git a/ETSI/Python/_py__NFVI_Resources_Management/Process_Delete_VIM/Tasks/.meta_Task_Delete_VIM_Resources.py b/ETSI/Python/_py__NFVI_Resources_Management/Process_Delete_VIM/Tasks/.meta_Task_Delete_VIM_Resources.py
index d9f6d6cc6..f17d3d40e 100755
--- a/ETSI/Python/_py__NFVI_Resources_Management/Process_Delete_VIM/Tasks/.meta_Task_Delete_VIM_Resources.py
+++ b/ETSI/Python/_py__NFVI_Resources_Management/Process_Delete_VIM/Tasks/.meta_Task_Delete_VIM_Resources.py
@@ -7,7 +7,7 @@
DATE_MODIFICATION
- 1629459738420
+ 1629735343381
REPOSITORY
@@ -15,7 +15,7 @@
DATE_CREATION
- 1629459738418
+ 1629735343376
TAG
diff --git a/ETSI/Python/_py__NFVI_Resources_Management/Process_Delete_VIM/Tasks/.meta_Task_Sync_to_NFVO.py b/ETSI/Python/_py__NFVI_Resources_Management/Process_Delete_VIM/Tasks/.meta_Task_Sync_to_NFVO.py
index 9ea56ad1b..09f0fc5de 100755
--- a/ETSI/Python/_py__NFVI_Resources_Management/Process_Delete_VIM/Tasks/.meta_Task_Sync_to_NFVO.py
+++ b/ETSI/Python/_py__NFVI_Resources_Management/Process_Delete_VIM/Tasks/.meta_Task_Sync_to_NFVO.py
@@ -7,7 +7,7 @@
DATE_MODIFICATION
- 1629459762656
+ 1629735208151
REPOSITORY
@@ -15,7 +15,7 @@
DATE_CREATION
- 1629459762653
+ 1629735208147
TAG
diff --git a/ETSI/Python/_py__NFVI_Resources_Management/Process_New_Service/Tasks/.meta_Task_Sync_to_NFVO.py b/ETSI/Python/_py__NFVI_Resources_Management/Process_New_Service/Tasks/.meta_Task_Sync_to_NFVO.py
index f1581bfd1..78cc90197 100755
--- a/ETSI/Python/_py__NFVI_Resources_Management/Process_New_Service/Tasks/.meta_Task_Sync_to_NFVO.py
+++ b/ETSI/Python/_py__NFVI_Resources_Management/Process_New_Service/Tasks/.meta_Task_Sync_to_NFVO.py
@@ -7,7 +7,7 @@
DATE_MODIFICATION
- 1629281393025
+ 1629734951820
REPOSITORY
@@ -15,7 +15,7 @@
DATE_CREATION
- 1629281393019
+ 1629734951817
TAG
diff --git a/ETSI/Python/_py__NFVI_Resources_Management/Process_New_Service/Tasks/Task_Sync_to_NFVO.py b/ETSI/Python/_py__NFVI_Resources_Management/Process_New_Service/Tasks/Task_Sync_to_NFVO.py
index 92b661fd7..c217936a1 100755
--- a/ETSI/Python/_py__NFVI_Resources_Management/Process_New_Service/Tasks/Task_Sync_to_NFVO.py
+++ b/ETSI/Python/_py__NFVI_Resources_Management/Process_New_Service/Tasks/Task_Sync_to_NFVO.py
@@ -1,21 +1,32 @@
from msa_sdk.variables import Variables
from msa_sdk.msa_api import MSA_API
from msa_sdk.order import Order
+from msa_sdk.device import Device
+
if __name__ == "__main__":
dev_var = Variables()
- dev_var.add('device_id', var_type='Device')
- dev_var.add('mano_user', var_type='String')
- dev_var.add('mano_pass', var_type='Password')
+ dev_var.add('nfvo_device', var_type='Device')
+ dev_var.add('vnfm_device', var_type='Device')
context = Variables.task_call(dev_var)
- device_short_id = context['device_id'][3:]
+ mano_me_id = context["nfvo_device"][3:]
+ mano_ip = Device(device_id=mano_me_id).management_address
+ mano_var = Device(device_id=mano_me_id).get_configuration_variable("HTTP_PORT")
+ mano_port = mano_var.get("value")
+ mano_user = Device(device_id=mano_me_id).login
+ mano_pass = Device(device_id=mano_me_id).password
+
+ context["mano_ip"] = mano_ip
+ context["mano_port"] = mano_port
+ context["mano_user"] = mano_user
+ context["mano_pass"] = mano_pass
- order = Order(str(device_short_id))
+ order = Order(str(mano_me_id))
order.command_synchronize(timeout=60)
ret = MSA_API.process_content('ENDED',
- f'Device {context["device_id"]} synchronized', context, True)
+ f'Device {context["nfvo_device"]} synchronized', context, True)
print(ret)
\ No newline at end of file
diff --git a/ETSI/Python/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks/.meta_Task_Register_VIM_Resources.py b/ETSI/Python/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks/.meta_Task_Register_VIM_Resources.py
index 4594d8e7d..d196bde25 100755
--- a/ETSI/Python/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks/.meta_Task_Register_VIM_Resources.py
+++ b/ETSI/Python/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks/.meta_Task_Register_VIM_Resources.py
@@ -7,7 +7,7 @@
DATE_MODIFICATION
- 1629287333403
+ 1629735401023
REPOSITORY
@@ -15,7 +15,7 @@
DATE_CREATION
- 1629287333401
+ 1629735401021
TAG
diff --git a/ETSI/Python/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks/.meta_Task_Sync_to_NFVO.py b/ETSI/Python/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks/.meta_Task_Sync_to_NFVO.py
index e4aa1a733..ca882e03c 100755
--- a/ETSI/Python/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks/.meta_Task_Sync_to_NFVO.py
+++ b/ETSI/Python/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks/.meta_Task_Sync_to_NFVO.py
@@ -7,7 +7,7 @@
DATE_MODIFICATION
- 1629280469614
+ 1629735216323
REPOSITORY
@@ -15,7 +15,7 @@
DATE_CREATION
- 1629280469611
+ 1629735216318
TAG
diff --git a/ETSI/Python/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks/Task_Register_VIM_Resources.py b/ETSI/Python/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks/Task_Register_VIM_Resources.py
index 7cfbc0b38..50b2191a7 100755
--- a/ETSI/Python/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks/Task_Register_VIM_Resources.py
+++ b/ETSI/Python/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks/Task_Register_VIM_Resources.py
@@ -18,14 +18,15 @@
dev_var.add('vim_project', var_type='String')
context = Variables.task_call(dev_var)
- nfviVim = NfviVim('10.31.1.245', '8080')
+ nfviVim = NfviVim(context["mano_ip"], context["mano_port"])
nfviVim.set_parameters(context['mano_user'], context['mano_pass'])
content = {
"vimId": str(uuid.uuid4()),
"vimType": context["vim_type"],
"interfaceInfo": {
- "endpoint": context["interface_info"]
+ "endpoint": context["interface_info"],
+ "non-strict-ssl": True
},
"accessInfo": {
"username": context["username"],
@@ -34,7 +35,7 @@
"projectDomain": context["project_domain"],
"userDomain": context["user_domain"],
"vim_project": context["vim_project"],
- "device_id": context["device_id"]
+ "device_id": context["nfvo_device"]
},
"geoloc": {
"lng": 45.75801,
@@ -44,7 +45,5 @@
r = nfviVim.nfvi_vim_register(content)
- # context['vim_id'] = r.json()['id']
-
- ret = MSA_API.process_content('ENDED', f'{r}', context, True)
+ ret = MSA_API.process_content(nfviVim.state, f'{r}', context, True)
print(ret)
\ No newline at end of file
diff --git a/ETSI/Python/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks/Task_Sync_to_NFVO.py b/ETSI/Python/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks/Task_Sync_to_NFVO.py
index 78dbf30e9..ead72b9be 100755
--- a/ETSI/Python/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks/Task_Sync_to_NFVO.py
+++ b/ETSI/Python/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks/Task_Sync_to_NFVO.py
@@ -6,13 +6,13 @@
dev_var = Variables()
context = Variables.task_call(dev_var)
-
- device_short_id = context['device_id'][3:]
+
+ device_short_id = context["nfvo_device"][3:]
order = Order(str(device_short_id))
order.command_synchronize(timeout=60)
ret = MSA_API.process_content('ENDED',
- f'Device {context["device_id"]} synchronized', context, True)
+ f'Device {context["nfvo_device"]} synchronized', context, True)
print(ret)
\ No newline at end of file
diff --git a/ETSI/Python/_py__NFVI_Resources_Management/_py__NFVI_Resources_Management.xml b/ETSI/Python/_py__NFVI_Resources_Management/_py__NFVI_Resources_Management.xml
index 72e37c8ef..21d4dfcbc 100644
--- a/ETSI/Python/_py__NFVI_Resources_Management/_py__NFVI_Resources_Management.xml
+++ b/ETSI/Python/_py__NFVI_Resources_Management/_py__NFVI_Resources_Management.xml
@@ -15,30 +15,32 @@
nfvi_resources
+
+
-
+
New Service
CREATE
5
- /opt/fmc_repository/Process/workflows/_py__NFVI_Resources_Management/Process_New_Service/Tasks
+ /opt/fmc_repository/Process/Telekom_Malaysia/_py__NFVI_Resources_Management/Process_New_Service/Tasks
Sync to NFVO
-
+
Register VIM
UPDATE
5
- /opt/fmc_repository/Process/workflows/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks
+ /opt/fmc_repository/Process/Telekom_Malaysia/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks
Register VIM Resources
- /opt/fmc_repository/Process/workflows/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks
+ /opt/fmc_repository/Process/Telekom_Malaysia/_py__NFVI_Resources_Management/Process_Register_VIM/Tasks
Sync to NFVO