Feature 10887: Add cross-model relations support 98/11298/4 release-v11.0-start
authorDavid Garcia <david.garcia@canonical.com>
Thu, 28 Oct 2021 00:00:43 +0000 (02:00 +0200)
committerDavid Garcia <david.garcia@canonical.com>
Wed, 3 Nov 2021 10:48:39 +0000 (11:48 +0100)
commitb4ebcd0dd81e08d7294156c2aca10d84ca9bb824
tree5873b1a7759f8e1e88f9987c52fac71f25076583
parent5506c1831e40b5a8086ec5037f2b791802526952
Feature 10887: Add cross-model relations support

Changes:
- Update the `osm_lcm.ns.NsLcm._add_vca_relations` function, and
decouple it into simpler and smaller functions.
- Get relation data for the descriptor taking into account the changes
introduced here: https://osm.etsi.org/gerrit/11212/
- Add `osm_lcm.data_utils.vca` module to take care of VCA related parts
in the IM
- Add a couple of functions into the `osm_lcm.data_utils` package:
  - nsd: get_vnf_profile(), get_ns_configuration(),
get_ns_configuration_relation_list()
  - nsr: get_nsd(), get_deployed_vca_list(), get_deployed_vca()
  - vnfd: get_relation_list()
- Rename `osm_lcm.data_utils.vnfd.get_kdu_profile` to `osm_lcm.data_utils.vnfd.get_kdu_resource_profile`

Change-Id: I6da29e656d092e17c85b44f5b3960a6ca3aa3ad8
Signed-off-by: David Garcia <david.garcia@canonical.com>
osm_lcm/data_utils/nsd.py
osm_lcm/data_utils/nsr.py
osm_lcm/data_utils/vca.py [new file with mode: 0644]
osm_lcm/data_utils/vnfd.py
osm_lcm/ns.py