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 'o-ran-file-management:file-download-event': 'o-ran-sc-ofhm',\n 'o-ran-file-management:file-upload-notification': 'o-ran-sc-ofhm'\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": "2d033da139fb379e",
436 "z": "51e83a0892da060e",
437 "name": "from OpenFronthaul Management-Plane",
444 "id": "456597d0477d239f",
446 "z": "51e83a0892da060e",
447 "name": "o-ran-file-management:file-download-event",
461 "topic": "o-ran-file-management:file-download-event",
463 "payloadType": "date",
474 "id": "f40d1d16c7044edc",
476 "z": "51e83a0892da060e",
477 "name": "vesStndDefindBody",
478 "func": "const eventTime = new Date(msg.payload).toISOString();\nmsg.payload = {\n schemaReference: 'https://gerrit.o-ran-sc.org/r/gitweb?p=scp/oam/modeling.git;a=blob_plain;f=data-model/yang/published/o-ran/ru-fh/o-ran-file-management.yang#components/schemas/ofhm-event-stream',\n stndDefinedFieldsVersion: '1.0',\n data: {\n 'ietf:notification': {\n 'eventTime': eventTime,\n 'o-ran-file-management:file-download-event': {\n 'local-logical-file-path': 'o-ran/log',\n 'remote-file-path': 'ftpes://username@ftpes.oam.smo.o-ran-sc/downloads',\n 'status': 'FAILURE',\n 'reject-reason': 'FTPes Server not reachable.'\n }\n }\n }\n};\nmsg.topic = 'stndDefinedFields';\nreturn msg;",
493 "id": "3d8f8180f204d804",
495 "z": "51e83a0892da060e",
496 "name": "o-ran-file-management:file-upload-notification",
510 "topic": "o-ran-file-management:file-upload-notification",
512 "payloadType": "date",
523 "id": "d473bf42d8169599",
525 "z": "51e83a0892da060e",
526 "name": "vesStndDefindBody",
527 "func": "const eventTime = new Date(msg.payload).toISOString();\nmsg.payload = {\n schemaReference: 'https://gerrit.o-ran-sc.org/r/gitweb?p=scp/oam/modeling.git;a=blob_plain;f=data-model/yang/published/o-ran/ru-fh/o-ran-file-management.yang#components/schemas/ofhm-event-stream',\n stndDefinedFieldsVersion: '1.0',\n data: {\n 'ietf:notification': {\n 'eventTime': eventTime,\n 'o-ran-file-management:file-upload-notification': {\n 'local-logical-file-path': 'o-ran/log',\n 'remote-file-path': 'ftpes://username@ftpes.oam.smo.o-ran-sc/downloads',\n 'status': 'FAILURE',\n 'reject-reason': 'FTPes Server not reachable.'\n }\n }\n }\n};\nmsg.topic = 'stndDefinedFields';\nreturn msg;",
542 "id": "910dfec7eb74df65",
544 "z": "c5746e29f53f72ce",
545 "name": "pnfRegistration",
559 "topic": "pnfRegistration",
561 "payloadType": "date",
571 "id": "562063a080cb99d6",
573 "z": "c5746e29f53f72ce",
579 "complete": "payload",
582 "statusType": "auto",
588 "id": "172060688d87f510",
590 "z": "c5746e29f53f72ce",
592 "name": "notifyHeartbeat",
606 "topic": "notifyHeartbeat",
608 "payloadType": "date",
618 "id": "311c3b5d3d73fc24",
620 "z": "c5746e29f53f72ce",
621 "name": "notifyFileReady",
635 "topic": "notifyFileReady",
637 "payloadType": "date",
647 "id": "5437e3fdfca300c9",
648 "type": "http request",
649 "z": "c5746e29f53f72ce",
655 "tls": "7b2f4859e5963695",
658 "insecureHTTPParser": true,
671 "id": "dc576b6355478428",
673 "z": "c5746e29f53f72ce",
675 "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;",
690 "id": "e5f66f4bd6777ca0",
692 "z": "c5746e29f53f72ce",
693 "name": "SET msg.url",
694 "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 oRanOpenfrontManagementPlane: \"unauthenticated.VES_O_RAN_SC_OPENFRONTHAUL_OUTPUT\"\n};\nmsg.url = [base, path, urlMapping[msg.topic], '1','1'].join('/');\nreturn msg;",
709 "id": "42275e9c12f8e52b",
711 "z": "c5746e29f53f72ce",
712 "name": "from O-RAN-SC",
719 "id": "e07fa97ebc66dce0",
721 "z": "c5746e29f53f72ce",
729 "id": "44b8c2cc138777f1",
731 "z": "c5746e29f53f72ce",
732 "name": "from SA5 R-18 branch",
739 "id": "4480e5473a65a757",
741 "z": "c5746e29f53f72ce",
742 "name": "oRanScDuHelloWorldPmStreaming",
756 "topic": "oRanScDuHelloWorldPmStreaming",
758 "payloadType": "date",
768 "id": "52f22ee054e5b4ac",
770 "z": "c5746e29f53f72ce",
771 "name": "o1NotifyPnfRegistration",
785 "topic": "o1NotifyPnfRegistration",
787 "payloadType": "date",
797 "id": "3051f52553efaaa4",
798 "type": "http request",
799 "z": "c5746e29f53f72ce",
804 "url": "https://messages.smo.o-ran-sc.org/topics",
805 "tls": "7b2f4859e5963695",
808 "insecureHTTPParser": true,
814 "keyValue": "Accept",
815 "valueType": "other",
816 "valueValue": "application/json"
828 "id": "0acceacb99b7981a",
830 "z": "c5746e29f53f72ce",
847 "payloadType": "date",
857 "id": "34b7ac222692e06d",
859 "z": "c5746e29f53f72ce",
860 "name": "from OpenFronthaul Management-Plane",
867 "id": "efd550c650283862",
869 "z": "c5746e29f53f72ce",
870 "name": "oRanOpenfrontManagementPlane",
884 "topic": "oRanOpenfrontManagementPlane",
886 "payloadType": "date",