3 "id": "51e83a0892da060e",
5 "label": "Event Streaming (VES)",
7 "info": "Sends a VES messages with body defined by 3GPP TS 28.532.\n",
11 "id": "c5746e29f53f72ce",
13 "label": "Message Topics",
15 "info": "Subscribes to Kafka topics ",
19 "id": "7b2f4859e5963695",
29 "verifyservercert": false,
33 "id": "91a1f8d3ce84ceda",
35 "z": "51e83a0892da060e",
36 "name": "notifyFileReady",
50 "topic": "notifyFileReady",
52 "payloadType": "date",
63 "id": "b5533c10604af5a6",
65 "z": "51e83a0892da060e",
67 "func": "const timeStamp = new Date(msg.payload);\nconst eventType = msg.topic;\nlet domain = \"stndDefined\";\n// handle domain expecption for 'pnfRegistration'\nif (eventType === 'pnfRegistration') {\n domain = eventType;\n} \nconst nfNamingCode = env.get('APP_NETWORK_FUNCTION_ID');\nconst namespaces = {\n pnfRegistration: undefined,\n o1NotifyPnfRegistration: 'o1-notify-pnf-registration',\n oRanScDuHelloWorldPmStreaming: 'o-ran-sc-du-hello-world-pm-streaming-oas3',\n notifyHeartbeat: '3GPP-Heartbeat',\n notifyFileReady: 'file-ready',\n};\n\nmsg.topic = \"commonEventHeader\"\nmsg.payload = {\n domain: domain,\n eventType: eventType,\n eventId:[nfNamingCode, eventType, msg._msgid].join('_'),\n eventName: [domain, eventType].join('_'),\n sequence: Number(timeStamp),\n priority: \"Low\",\n reportingEntityId: \"c2b7d6e9-ee35-459a-ab8e-717a6fc1fde6\",\n reportingEntityName: global.get('os').hostname(),\n sourceId: \"378e9904-6d39-40ea-9994-0596fe2235a3\",\n sourceName: env.get('APP_SOURCE'),\n startEpochMicrosec: timeStamp.getTime() * 1000,\n lastEpochMicrosec: timeStamp.getTime() * 1000,\n nfNamingCode: nfNamingCode,\n nfVendorName: env.get('APP_VENDOR'),\n timeZoneOffset: \"+00:00\",\n stndDefinedNamespace: namespaces[eventType],\n version: \"4.1\",\n vesEventListenerVersion: \"7.2.1\"\n}\nreturn msg;",
82 "id": "f8e64d1cb25eb4ab",
84 "z": "51e83a0892da060e",
85 "name": "vesStndDefindBody",
86 "func": "const timeStamp = new Date(msg.payload);\nconst startTime = new Date(Math.floor(Number(timeStamp) / 900000) * 900000);\nconst endTime = new Date(Number(startTime) + 900000);\nconst paddy = (num, padlen, padchar) => {\n const pad_char = typeof padchar !== 'undefined' ? padchar : '0';\n const pad = new Array(1 + padlen).join(pad_char);\n return (pad + num).slice(-pad.length);\n}\nconst fileStartTime = [\n paddy(startTime.getFullYear(), 4),\n paddy(startTime.getMonth() + 1, 2),\n paddy(startTime.getDate(), 2),\n '.',\n paddy(startTime.getHours(), 2),\n paddy(startTime.getMinutes(), 2),\n '+0000'\n].join('');\nconst fileEndTime = [\n paddy(endTime.getHours(), 2),\n paddy(endTime.getMinutes(), 2),\n '+0000'\n].join('');\nconst fileLocation = ['/pm-data-files/A', fileStartTime, '-', fileEndTime, '_', env.get('APP_NETWORK_FUNCTION_ID'), '.xml'].join('');\nmsg.payload = {\n schemaReference: 'https://forge.3gpp.org/rep/sa5/MnS/raw/Rel-18/OpenAPI/TS28532_FileDataReportingMnS.yaml#components/schemas/NotifyFileReady',\n stndDefinedFieldsVersion: '1.0',\n data: {\n href: global.get('os').hostname(),\n notificationId: Number(startTime),\n notificationType: msg.topic,\n eventTime: timeStamp.toISOString(),\n systemDN: '/',\n fileInfoList: [\n {\n fileLocation: fileLocation,\n fileSize: 1234,\n fileReadyTime: startTime.toISOString(),\n fileExpirationTime: endTime.toISOString(),\n fileCompression: 'no',\n fileFormat: 'xml',\n fileDataType: 'Performance'\n }\n ],\n additionalText: 'Have fun!'\n }\n};\nmsg.topic = 'stndDefinedFields';\nreturn msg;",
101 "id": "f65b1c13e0243ef6",
103 "z": "51e83a0892da060e",
107 "property": "payload",
108 "propertyType": "msg",
115 "reduceRight": false,
118 "reduceInitType": "",
129 "id": "1d6949a57bce82ab",
131 "z": "51e83a0892da060e",
132 "name": "createVesEvent",
133 "func": "msg.payload = {\n event: msg.payload\n};\nreturn msg;",
149 "id": "27e1d8d1e9b8fd93",
150 "type": "http request",
151 "z": "51e83a0892da060e",
156 "url": "https://ves-collector.oam.smo.o-ran-sc.org/eventListener/v7",
157 "tls": "7b2f4859e5963695",
160 "insecureHTTPParser": false,
173 "id": "f3412bcb9e134063",
175 "z": "51e83a0892da060e",
176 "name": "VesCollectorResponse",
181 "complete": "payload",
184 "statusType": "auto",
190 "id": "b5e1e7a83051b5b6",
192 "z": "51e83a0892da060e",
193 "name": "pnfRegistration",
207 "topic": "pnfRegistration",
209 "payloadType": "date",
220 "id": "bd43459cf3907a5a",
222 "z": "51e83a0892da060e",
224 "func": "msg.topic = 'pnfRegistrationFields';\nmsg.payload = {\n pnfRegistrationFieldsVersion: '2.1',\n lastServiceDate: '2023-02-05',\n macAddress: '02:42:f7:d4:62:ce',\n manufactureDate: '2021-01-16',\n modelNumber: 'O-RAN-SC Model',\n oamV4IpAddress: '10.10.10.11',\n oamV6IpAddress: '0:0:0:0:0:ffff:a0a:011',\n serialNumber: 'VENDORA-PNF2-10.10.10.11-pnf2 BestInClass',\n softwareVersion: '2.3.5',\n unitFamily: \"O-RAN-SC\",\n unitType: 'PNF2',\n vendorName: env.get('APP_VENDOR'),\n additionalFields: {\n oamPort: '830',\n protocol: 'SSH',\n username: 'netconf',\n password: 'netconf!',\n reconnectOnChangedSchema: 'false',\n 'sleep-factor': '1.5',\n tcpOnly: 'false',\n connectionTimeout: '20000',\n maxConnectionAttempts: '100',\n betweenAttemptsTimeout: '2000',\n keepaliveDelay: '120'\n}\n};\nreturn msg;",
239 "id": "9ab2b4d9caf52c14",
241 "z": "51e83a0892da060e",
242 "name": "ves-message-data",
247 "complete": "payload",
250 "statusType": "auto",
256 "id": "7d589030272c0a94",
258 "z": "51e83a0892da060e",
260 "name": "notifyHeartbeat",
274 "topic": "notifyHeartbeat",
276 "payloadType": "date",
287 "id": "ab3bc53f12d28d8f",
289 "z": "51e83a0892da060e",
290 "name": "vesStndDefindBody",
291 "func": "const timeStamp = new Date(msg.payload);\nmsg.payload = {\n schemaReference: 'https://forge.3gpp.org/rep/sa5/MnS/raw/Rel-18/OpenAPI/TS28532_HeartbeatNtf.yaml#components/schemas/NotifyHeartbeat',\n stndDefinedFieldsVersion: '1.0',\n data: {\n href: global.get('os').hostname(),\n notificationId: Number(timeStamp),\n notificationType: msg.topic,\n eventTime: timeStamp.toISOString(),\n systemDN: \"/\",\n heartbeatNtfPeriod: 120\n }\n};\nmsg.topic = \"stndDefinedFields\";\nreturn msg;",
306 "id": "1bada25ea9a5aa01",
308 "z": "51e83a0892da060e",
309 "name": "from SA5 R-18 branch",
316 "id": "f4f4670363ec760f",
318 "z": "51e83a0892da060e",
319 "name": "from O-RAN-SC",
326 "id": "e4dc4647c388ab77",
328 "z": "51e83a0892da060e",
336 "id": "fb6413675e22dc71",
338 "z": "51e83a0892da060e",
339 "name": "o1NotifyPnfRegistration",
353 "topic": "o1NotifyPnfRegistration",
355 "payloadType": "date",
366 "id": "73beab79d5024f4b",
368 "z": "51e83a0892da060e",
369 "name": "oRanScDuHelloWorldPmStreaming",
383 "topic": "oRanScDuHelloWorldPmStreaming",
385 "payloadType": "date",
396 "id": "51f5fa54867b7e65",
398 "z": "51e83a0892da060e",
399 "name": "vesStndDefindBody",
400 "func": "const timeStamp = new Date(msg.payload);\nmsg.payload = {\n schemaReference: 'https://gerrit.o-ran-sc.org/r/gitweb?p=scp/oam/modeling.git;a=blob_plain;f=data-model/yang/working/o-ran-sc/template/yes-o1-notify-pnf-registration.yang',\n stndDefinedFieldsVersion: '1.0',\n data: {\n 'object-class': 'managed-element',\n 'object-instance': global.get('os').hostname(),\n 'notification-identifier': Number(timeStamp),\n 'notification-type': msg.topic,\n 'event-time': timeStamp.toISOString(),\n systemDN: \"/\",\n 'vendor-pen': '57272',\n 'vendor-name': 'highstreet technologies USA Corp.',\n 'oam-host': global.get('os').networkInterfaces()['eth0'][0].address || global.get('os').hostname(),\n 'oam-port': 830,\n 'unit-family': 'O-RAN-SC',\n 'unit-type': 'PNF2',\n 'restart-reason': 'system-reboot',\n 'serial-number': 'O-RAN-SC-PNF2-10.10.10.11-pnf2 BestInClass',\n 'macAddress': global.get('os').networkInterfaces()['eth0'][0].mac || '00:00:00:00:00:00',\n 'modelNumber': 'O-RAN-SC Model',\n 'softwareVersion': '2.3.5',\n 'manufactureDate': '2021-01-16',\n 'lastServiceDate': '2021-03-26',\n 'transport-protocol': 'SSH',\n 'username': 'netconf',\n 'password': 'netconf!',\n 'reconnect-on-changed-schema': 'false',\n 'sleep-factor': '1.5',\n 'tcpOnly': 'false',\n 'connection-timeout': '20000',\n 'max-connection-attempts': '100',\n 'between-attempts-timeout': '2000',\n 'keepalive-delay': '120'\n }\n};\nmsg.topic = \"stndDefinedFields\";\nreturn msg;",
415 "id": "5c6f93626fac58b5",
417 "z": "51e83a0892da060e",
418 "name": "vesStndDefindBody",
419 "func": "const timeStamp = new Date(msg.payload);\nmsg.payload = {\n schemaReference: 'https://gerrit.o-ran-sc.org/r/gitweb?p=scp/oam/modeling.git;a=blob_plain;f=data-model/oas3/experimental/o-ran-sc-du-hello-world-pm-streaming-oas3.yaml#components/schemas/performance-measurement-job',\n stndDefinedFieldsVersion: '1.0',\n data: {\n id: 'id:' + Number(timeStamp),\n 'start-time': timeStamp.toISOString(),\n 'administrative-state': 'unlocked',\n 'operational-state': 'enabled',\n 'user-label': 'pm-kpis',\n 'job-tag': '1a0827b7-25e7-4292-959f-6b8ab46f14c2',\n 'granularity-period': 900,\n measurements: [\n {\n 'measurement-type-instance-reference': 'user-equipment-average-throughput-downlink',\n value: 300000000,\n unit: 'kBis/s'\n },\n {\n 'measurement-type-instance-reference': 'user-equipment-average-throughput-uplink',\n value: 300000000,\n unit: 'kBis/s'\n }\n ]\n }\n};\nmsg.topic = \"stndDefinedFields\";\nreturn msg;\n\n",
434 "id": "910dfec7eb74df65",
436 "z": "c5746e29f53f72ce",
437 "name": "pnfRegistration",
451 "topic": "pnfRegistration",
453 "payloadType": "date",
463 "id": "562063a080cb99d6",
465 "z": "c5746e29f53f72ce",
471 "complete": "payload",
474 "statusType": "auto",
480 "id": "172060688d87f510",
482 "z": "c5746e29f53f72ce",
484 "name": "notifyHeartbeat",
498 "topic": "notifyHeartbeat",
500 "payloadType": "date",
510 "id": "311c3b5d3d73fc24",
512 "z": "c5746e29f53f72ce",
513 "name": "notifyFileReady",
527 "topic": "notifyFileReady",
529 "payloadType": "date",
539 "id": "5437e3fdfca300c9",
540 "type": "http request",
541 "z": "c5746e29f53f72ce",
547 "tls": "7b2f4859e5963695",
550 "insecureHTTPParser": true,
563 "id": "dc576b6355478428",
565 "z": "c5746e29f53f72ce",
567 "func": "const string = msg.payload;\nconst array = JSON.parse(string);\nif (Array.isArray(array)) {\n msg.payload = array.map( (item) => {\n if (typeof item === 'string' || item instanceof String) {\n return JSON.parse(item);\n }\n });\n} else {\n msg.payload = array;\n}\nreturn msg;",
582 "id": "e5f66f4bd6777ca0",
584 "z": "c5746e29f53f72ce",
585 "name": "SET msg.url",
586 "func": "const base = 'https://messages.smo.o-ran-sc.org';\nconst path = 'events';\nconst urlMapping = {\n pnfRegistration: \"unauthenticated.VES_PNFREG_OUTPUT\",\n o1NotifyPnfRegistration: \"unauthenticated.VES_O1_NOTIFY_PNF_REGISTRATION_OUTPUT\",\n oRanScDuHelloWorldPmStreaming: \"unauthenticated.VES_O_RAN_SC_HELLO_WORLD_PM_STREAMING_OUTPUT\",\n notifyHeartbeat: \"unauthenticated.SEC_3GPP_HEARTBEAT_OUTPUT\",\n notifyFileReady: \"unauthenticated.VES_FILE_READY_OUTPUT\"\n};\nmsg.url = [base, path, urlMapping[msg.topic], '1','1'].join('/');\nreturn msg;",
601 "id": "42275e9c12f8e52b",
603 "z": "c5746e29f53f72ce",
604 "name": "from O-RAN-SC",
611 "id": "e07fa97ebc66dce0",
613 "z": "c5746e29f53f72ce",
621 "id": "44b8c2cc138777f1",
623 "z": "c5746e29f53f72ce",
624 "name": "from SA5 R-18 branch",
631 "id": "4480e5473a65a757",
633 "z": "c5746e29f53f72ce",
634 "name": "oRanScDuHelloWorldPmStreaming",
648 "topic": "oRanScDuHelloWorldPmStreaming",
650 "payloadType": "date",
660 "id": "52f22ee054e5b4ac",
662 "z": "c5746e29f53f72ce",
663 "name": "o1NotifyPnfRegistration",
677 "topic": "o1NotifyPnfRegistration",
679 "payloadType": "date",