+
+ getDescriptorTypeFromRecordType = (recordType) => {
+ if (recordType == 'nsr') {
+ return 'nsd';
+ } else if (recordType == 'vnfr') {
+ return 'vnfd';
+ }
+
+ return null;
+ }
+
+ getDescriptorIdFromRecord = (record) => {
+ if (record.type && record.type == 'nsr') {
+ return nsr.nsd && nsr.nsd.id;
+ } else if (record.type && record.type == 'vnfr') {
+ return vnfr.vnfd && vnfr.vnfd.id;
+ }
+
+ return null;
+ }
+