summaryrefslogtreecommitdiffstats
path: root/onap_data_provider/resources/pnf_resource.py
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2022-01-27 08:31:36 +0000
committerMichal Jagiello <michal.jagiello@t-mobile.pl>2022-01-27 08:31:36 +0000
commitb1112188466a5712cd41f1a88b5f4bcf31949d15 (patch)
tree6ad033eb9c9ceb6a768d3a8082bcb8f36dec8b9a /onap_data_provider/resources/pnf_resource.py
parent4ffd0d95b7a875372447d6193a978bd451adb7ae (diff)
Add xNFs category and subcategory
Issue-ID: INT-2054 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: Iae6e95e882570740d7fe761ad673511a346c9c57
Diffstat (limited to 'onap_data_provider/resources/pnf_resource.py')
-rw-r--r--onap_data_provider/resources/pnf_resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/onap_data_provider/resources/pnf_resource.py b/onap_data_provider/resources/pnf_resource.py
index 553018b..1a02052 100644
--- a/onap_data_provider/resources/pnf_resource.py
+++ b/onap_data_provider/resources/pnf_resource.py
@@ -47,7 +47,7 @@ class PnfResource(Resource, XnfResource):
"""
if not self.exists:
logging.debug("Create Pnf %s", self.data["name"])
- self._xnf = Pnf(self.data["name"])
+ self._xnf = Pnf(self.data["name"], category=self.data.get("category"), subcategory=self.data.get("subcategory"))
if (vendor_name := self.data.get("vendor")) is not None:
self._xnf.vendor = Vendor(vendor_name)
self.onboard_resource_with_properties(self.data)