X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=n2vc%2Fvnf.py;h=bb7b871f8e7f9a2de0dc1dfbde29058e030013a7;hb=e5406c6f652b4248763e114629764633da941650;hp=87d5df409fc5bf1afe1d3a3c0ac720f54be81e5b;hpb=cb9dacdfa0853aa727bc01a6288432ddedb5cf63;p=osm%2FN2VC.git diff --git a/n2vc/vnf.py b/n2vc/vnf.py index 87d5df4..bb7b871 100644 --- a/n2vc/vnf.py +++ b/n2vc/vnf.py @@ -287,9 +287,10 @@ class N2VC: vdu: ... - relation: - - provides: dataVM:db - requires: mgmtVM:app + vca-relations: + relation: + - provides: dataVM:db + requires: mgmtVM:app This tells N2VC that the charm referred to by the dataVM vdu offers a relation named 'db', and the mgmtVM vdu has an 'app' endpoint that should be connected to a database. @@ -340,8 +341,8 @@ class N2VC: for cfg in configs: if 'juju' in cfg: juju = cfg['juju'] - if 'relation' in juju: - for rel in juju['relation']: + if 'vca-relations' in juju and 'relations' in juju['vca-relations']: + for rel in juju['vca-relations']['relation']: try: # get the application name for the provides