X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FN2VC.git;a=blobdiff_plain;f=n2vc%2Fvnf.py;h=74f4d9432d0efdd7b4e508a4429627bab0c8f537;hp=1ad6d0621cab3807c80295b9d853fe460337aeeb;hb=bc0daf83db3d783039db7c8c8496a4eb0ceddfe0;hpb=47998e0a2e15749f7da945a97cef1dc792c86353 diff --git a/n2vc/vnf.py b/n2vc/vnf.py index 1ad6d06..74f4d94 100644 --- a/n2vc/vnf.py +++ b/n2vc/vnf.py @@ -287,7 +287,7 @@ class N2VC: vdu: ... - vca-relations: + vca-relationships: relation: - provides: dataVM:db requires: mgmtVM:app @@ -341,8 +341,8 @@ class N2VC: for cfg in configs: if 'juju' in cfg: juju = cfg['juju'] - if 'relation' in juju: - for rel in juju['vca-relations']['relation']: + if 'vca-relationships' in juju and 'relation' in juju['vca-relationships']: + for rel in juju['vca-relationships']['relation']: try: # get the application name for the provides