In NS delete, proactively detect if no VNF exist.
Proactively detect for VNFs in NS, if no vnf_ids exists, its
meaningless to execute delete workflow.
Closes-Bug:
@@ -808,6 +808,7 @@ class NfvoPlugin(nfvo_db_plugin.NfvoPluginDb, vnffg_db.VnffgPluginDbMixin,
driver_type = vim_res['vim_type']
workflow = None
try:
+ if ns['vnf_ids']:
workflow = self._vim_drivers.invoke(
driver_type,
'prepare_and_create_workflow',
