"env": []
},
{
- "id": "c5746e29f53f72ce",
+ "id": "db7b8dca98eba850",
"type": "tab",
"label": "Message Topics",
"disabled": false,
- "info": "Subscribes to Kafka topics ",
+ "info": "Subscribes to kafka topics using the strimzi kafka bridge implementation. \n",
"env": []
},
{
"payload": "",
"payloadType": "date",
"x": 120,
- "y": 460,
+ "y": 500,
"wires": [
[
"b5533c10604af5a6",
"type": "function",
"z": "51e83a0892da060e",
"name": "vesHeader",
- "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};\nconst topic = namespaces[eventType] || msg.topic;\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: topic,\n version: \"4.1\",\n vesEventListenerVersion: \"7.2.1\"\n}\nreturn msg;",
+ "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 notifyFilePreparationError: 'file-ready',\n notifyNewAlarm: '3GPP-FaultSupervision',\n notifyChangedAlarm: '3GPP-FaultSupervision',\n notifyChangedAlarmGeneral: '3GPP-FaultSupervision',\n notifyAckStateChanged: '3GPP-FaultSupervision',\n notifyCorrelatedNotificationChanged: '3GPP-FaultSupervision',\n notifyComments: '3GPP-FaultSupervision',\n notifyClearedAlarm: '3GPP-FaultSupervision',\n notifyAlarmListRebuilt: '3GPP-FaultSupervision',\n notifyPotentialFaultyAlarmList: '3GPP-FaultSupervision'\n};\nconst topic = namespaces[eventType] || msg.topic;\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: topic,\n version: \"4.1\",\n vesEventListenerVersion: \"7.2.1\"\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 470,
- "y": 460,
+ "y": 500,
"wires": [
[
"f65b1c13e0243ef6"
"id": "1d6949a57bce82ab",
"type": "function",
"z": "51e83a0892da060e",
- "name": "createVesEvent",
- "func": "msg.payload = {\n event: msg.payload\n};\nreturn msg;",
+ "name": "http-preparation",
+ "func": "const protocol = env.get('VES_ENDPOINT_PROTOCOL');\nconst host = env.get('VES_ENDPOINT_HOST');\nconst port = env.get('VES_ENDPOINT_PORT');\nconst base = protocol + '://' + host + ':' + port;\nconst path = 'eventListener/v7';\nmsg.url = [base, path].join('/');\n\nconst user = env.get('VES_ENDPOINT_USERNAME');\nconst password = env.get('VES_ENDPOINT_PASSWORD');\nconst auth = Buffer.from([user, password].join(':')).toString('base64')\nconst basicAuth = ['Basic', auth].join(' ');\n\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/json';\nmsg.headers['Accept'] = 'application/json';\nmsg.headers['Authorization'] = basicAuth;\n\nmsg.payload = {\n event: msg.payload\n};\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"method": "POST",
"ret": "txt",
"paytoqs": "ignore",
- "url": "https://ves-collector.oam.smo.o-ran-sc.org/eventListener/v7",
+ "url": "",
"tls": "7b2f4859e5963695",
- "persist": false,
+ "persist": true,
"proxy": "",
"insecureHTTPParser": false,
- "authType": "basic",
+ "authType": "",
"senderr": false,
"headers": [],
"x": 1030,
"z": "51e83a0892da060e",
"name": "VesCollectorResponse",
"active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
+ "tosidebar": false,
+ "console": true,
+ "tostatus": true,
"complete": "payload",
"targetType": "msg",
- "statusVal": "",
+ "statusVal": "payload",
"statusType": "auto",
- "x": 1220,
+ "x": 1230,
"y": 280,
"wires": []
},
"name": "ves-message-data",
"active": false,
"tosidebar": true,
- "console": false,
- "tostatus": false,
+ "console": true,
+ "tostatus": true,
"complete": "payload",
"targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 1050,
- "y": 320,
+ "statusVal": "payload.event.commonEventHeader.stndDefinedNamespace",
+ "statusType": "msg",
+ "x": 1060,
+ "y": 220,
"wires": []
},
{
],
"repeat": "3",
"crontab": "",
- "once": true,
+ "once": false,
"onceDelay": 0.1,
"topic": "notifyHeartbeat",
"payload": "",
"type": "function",
"z": "51e83a0892da060e",
"name": "vesStndDefindBody",
- "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;",
+ "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.dcn.smo.o-ran-sc/downloads',\n 'status': 'FAILURE',\n 'reject-reason': 'FTPes Server not reachable.'\n }\n }\n }\n};\nmsg.topic = 'stndDefinedFields';\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"type": "function",
"z": "51e83a0892da060e",
"name": "vesStndDefindBody",
- "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;",
+ "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.dcn.smo.o-ran-sc/downloads',\n 'status': 'FAILURE',\n 'reject-reason': 'FTPes Server not reachable.'\n }\n }\n }\n};\nmsg.topic = 'stndDefinedFields';\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
]
},
{
- "id": "910dfec7eb74df65",
+ "id": "bfa425cb3d578d07",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "name": "pnfRegistration",
+ "z": "51e83a0892da060e",
+ "name": "notifyNewAlarm",
"props": [
{
"p": "payload"
"crontab": "",
"once": false,
"onceDelay": 0.1,
- "topic": "pnfRegistration",
+ "topic": "notifyNewAlarm",
"payload": "",
"payloadType": "date",
- "x": 240,
- "y": 80,
+ "x": 120,
+ "y": 620,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "f71ebd595a7de756",
+ "b5533c10604af5a6"
]
]
},
{
- "id": "562063a080cb99d6",
- "type": "debug",
- "z": "c5746e29f53f72ce",
- "name": "eventData",
- "active": true,
- "tosidebar": true,
- "console": false,
- "tostatus": false,
- "complete": "payload",
- "targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 1150,
- "y": 220,
- "wires": []
+ "id": "f71ebd595a7de756",
+ "type": "function",
+ "z": "51e83a0892da060e",
+ "name": "vesStndDefindBody",
+ "func": "const timeStamp = new Date(msg.payload);\nconst alarm = 'Connection Loss';\nconst severity = 'CRITICAL';\n\nmsg.payload = {\n schemaReference: 'https://forge.3gpp.org/rep/sa5/MnS/raw/Rel-18/OpenAPI/TS28532_FaultMnS.yaml#components/schemas/NotifyNewAlarm',\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 alarmId: alarm,\n alarmType: 'COMMUNICATIONS_ALARM',\n probableCause: alarm,\n specificProblem: alarm,\n perceivedSeverity: severity,\n backedUpStatus: true,\n backUpObject: 'xyz',\n trendIndication: 'MORE_SEVERE',\n thresholdInfo: {\n observedMeasurement: 'new',\n observedValue: 123.1\n },\n correlatedNotifications: [],\n stateChangeDefinition: [{ 'operational-state': 'DISABLED' }],\n monitoredAttributes: {\n interface: 'uuid-of-the-interface'\n },\n proposedRepairActions: 'Call the police!',\n additionalText: 'O-RAN Software Community OAM',\n additionalInformation: {\n description: 'a test alarm'\n },\n rootCauseIndicator: false\n }\n\n};\nmsg.topic = 'stndDefinedFields';\nreturn msg;",
+ "outputs": 1,
+ "noerr": 0,
+ "initialize": "",
+ "finalize": "",
+ "libs": [],
+ "x": 470,
+ "y": 620,
+ "wires": [
+ [
+ "f65b1c13e0243ef6"
+ ]
+ ]
},
{
- "id": "172060688d87f510",
+ "id": "82da4e47972195a4",
"type": "inject",
- "z": "c5746e29f53f72ce",
+ "z": "51e83a0892da060e",
"d": true,
- "name": "notifyHeartbeat",
+ "name": "notifyChangedAlarm",
"props": [
{
"p": "payload"
"vt": "str"
}
],
- "repeat": "5",
+ "repeat": "",
"crontab": "",
- "once": true,
+ "once": false,
"onceDelay": 0.1,
- "topic": "notifyHeartbeat",
+ "topic": "notifyChangedAlarm",
"payload": "",
"payloadType": "date",
- "x": 230,
- "y": 320,
+ "x": 130,
+ "y": 660,
"wires": [
- [
- "e5f66f4bd6777ca0"
- ]
+ []
]
},
{
- "id": "311c3b5d3d73fc24",
+ "id": "a3d85c62bee11dad",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "name": "notifyFileReady",
+ "z": "51e83a0892da060e",
+ "d": true,
+ "name": "notifyChangedAlarmGeneral",
"props": [
{
"p": "payload"
"crontab": "",
"once": false,
"onceDelay": 0.1,
- "topic": "notifyFileReady",
+ "topic": "notifyChangedAlarmGeneral",
"payload": "",
"payloadType": "date",
- "x": 240,
- "y": 360,
- "wires": [
- [
- "e5f66f4bd6777ca0"
- ]
- ]
- },
- {
- "id": "5437e3fdfca300c9",
- "type": "http request",
- "z": "c5746e29f53f72ce",
- "name": "",
- "method": "GET",
- "ret": "txt",
- "paytoqs": "ignore",
- "url": "",
- "tls": "7b2f4859e5963695",
- "persist": true,
- "proxy": "",
- "insecureHTTPParser": true,
- "authType": "",
- "senderr": false,
- "headers": [],
- "x": 670,
- "y": 220,
- "wires": [
- [
- "dc576b6355478428"
- ]
- ]
- },
- {
- "id": "dc576b6355478428",
- "type": "function",
- "z": "c5746e29f53f72ce",
- "name": "JSON",
- "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;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 830,
- "y": 220,
- "wires": [
- [
- "2a2e05d79287f4a0"
- ]
- ]
- },
- {
- "id": "e5f66f4bd6777ca0",
- "type": "function",
- "z": "c5746e29f53f72ce",
- "name": "SET msg.url",
- "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};\nconst urlTopic = urlMapping[msg.topic] || msg.topic.replace(':', '-');\nmsg.url = [base, path, urlTopic, '1','1'].join('/');\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 490,
- "y": 220,
+ "x": 160,
+ "y": 700,
"wires": [
- [
- "5437e3fdfca300c9"
- ]
+ []
]
},
{
- "id": "42275e9c12f8e52b",
- "type": "comment",
- "z": "c5746e29f53f72ce",
- "name": "from O-RAN-SC",
- "info": "",
- "x": 100,
- "y": 140,
- "wires": []
- },
- {
- "id": "e07fa97ebc66dce0",
- "type": "comment",
- "z": "c5746e29f53f72ce",
- "name": "from ONAP",
- "info": "",
- "x": 90,
- "y": 40,
- "wires": []
- },
- {
- "id": "44b8c2cc138777f1",
- "type": "comment",
- "z": "c5746e29f53f72ce",
- "name": "from SA5 R-18 branch",
- "info": "",
- "x": 120,
- "y": 280,
- "wires": []
- },
- {
- "id": "4480e5473a65a757",
+ "id": "e4651c07a56f2448",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "name": "oRanScDuHelloWorldPmStreaming",
+ "z": "51e83a0892da060e",
+ "d": true,
+ "name": "notifyAckStateChanged",
"props": [
{
"p": "payload"
"crontab": "",
"once": false,
"onceDelay": 0.1,
- "topic": "oRanScDuHelloWorldPmStreaming",
+ "topic": "notifyAckStateChanged",
"payload": "",
"payloadType": "date",
- "x": 180,
- "y": 220,
+ "x": 140,
+ "y": 740,
"wires": [
- [
- "e5f66f4bd6777ca0"
- ]
+ []
]
},
{
- "id": "52f22ee054e5b4ac",
+ "id": "e949006e1b1fe0f0",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "name": "o1NotifyPnfRegistration",
+ "z": "51e83a0892da060e",
+ "d": true,
+ "name": "notifyCorrelatedNotificationChanged",
"props": [
{
"p": "payload"
"crontab": "",
"once": false,
"onceDelay": 0.1,
- "topic": "o1NotifyPnfRegistration",
+ "topic": "notifyCorrelatedNotificationChanged",
"payload": "",
"payloadType": "date",
- "x": 220,
- "y": 180,
- "wires": [
- [
- "e5f66f4bd6777ca0"
- ]
- ]
- },
- {
- "id": "3051f52553efaaa4",
- "type": "http request",
- "z": "c5746e29f53f72ce",
- "name": "",
- "method": "GET",
- "ret": "txt",
- "paytoqs": "ignore",
- "url": "https://messages.smo.o-ran-sc.org/topics",
- "tls": "7b2f4859e5963695",
- "persist": true,
- "proxy": "",
- "insecureHTTPParser": true,
- "authType": "",
- "senderr": false,
- "headers": [
- {
- "keyType": "other",
- "keyValue": "Accept",
- "valueType": "other",
- "valueValue": "application/json"
- }
- ],
- "x": 670,
- "y": 180,
+ "x": 180,
+ "y": 780,
"wires": [
- [
- "dc576b6355478428"
- ]
+ []
]
},
{
- "id": "0acceacb99b7981a",
+ "id": "a80169493419d5d0",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "name": "Topics?",
+ "z": "51e83a0892da060e",
+ "d": true,
+ "name": "notifyComments",
"props": [
{
"p": "payload"
"crontab": "",
"once": false,
"onceDelay": 0.1,
- "topic": "topics",
+ "topic": "notifyComments",
"payload": "",
"payloadType": "date",
- "x": 510,
- "y": 180,
+ "x": 120,
+ "y": 820,
"wires": [
- [
- "3051f52553efaaa4"
- ]
+ []
]
},
{
- "id": "34b7ac222692e06d",
- "type": "comment",
- "z": "c5746e29f53f72ce",
- "name": "from OpenFronthaul Management-Plane",
- "info": "",
- "x": 580,
- "y": 280,
- "wires": []
- },
- {
- "id": "25a3eca83bbc3489",
+ "id": "9e0f49b3d9b0a5ef",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "name": "o-ran-supervision:supervision-notification",
+ "z": "51e83a0892da060e",
+ "name": "notifyClearedAlarm",
"props": [
{
"p": "payload"
"crontab": "",
"once": false,
"onceDelay": 0.1,
- "topic": "o-ran-supervision:supervision-notification",
+ "topic": "notifyClearedAlarm",
"payload": "",
"payloadType": "date",
- "x": 620,
- "y": 1040,
+ "x": 130,
+ "y": 860,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "69b8d53969426ebf",
+ "b5533c10604af5a6"
]
]
},
{
- "id": "0194d014ef8f6c5e",
+ "id": "418d585d7406029b",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "name": "o-ran-file-management:file-upload-notification",
+ "z": "51e83a0892da060e",
+ "d": true,
+ "name": "notifyAlarmListRebuilt",
"props": [
{
"p": "payload"
"crontab": "",
"once": false,
"onceDelay": 0.1,
- "topic": "o-ran-file-management:file-upload-notification",
+ "topic": "notifyAlarmListRebuilt",
"payload": "",
"payloadType": "date",
- "x": 630,
- "y": 760,
+ "x": 140,
+ "y": 900,
"wires": [
- [
- "e5f66f4bd6777ca0"
- ]
+ []
]
},
{
- "id": "775aacf9e2cc0285",
+ "id": "f856982bb3c3a65c",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "name": "o-ran-file-management:file-download-event",
+ "z": "51e83a0892da060e",
+ "d": true,
+ "name": "notifyPotentialFaultyAlarmList",
"props": [
{
"p": "payload"
"crontab": "",
"once": false,
"onceDelay": 0.1,
- "topic": "o-ran-file-management:file-download-event",
+ "topic": "notifyPotentialFaultyAlarmList",
"payload": "",
"payloadType": "date",
- "x": 620,
- "y": 720,
+ "x": 160,
+ "y": 940,
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4617f66b8940469e",
+ "type": "comment",
+ "z": "51e83a0892da060e",
+ "name": "TS28532_FaultMnS.yaml",
+ "info": "",
+ "x": 130,
+ "y": 580,
+ "wires": []
+ },
+ {
+ "id": "69b8d53969426ebf",
+ "type": "function",
+ "z": "51e83a0892da060e",
+ "name": "vesStndDefindBody",
+ "func": "const timeStamp = new Date(msg.payload);\nconst alarm = 'Connection Loss';\nconst severity = 'CRITICAL';\n\nmsg.payload = {\n schemaReference: 'https://forge.3gpp.org/rep/sa5/MnS/raw/Rel-18/OpenAPI/TS28532_FaultMnS.yaml#components/schemas/NotifyClearedAlarm',\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 alarmId: alarm,\n alarmType: 'COMMUNICATIONS_ALARM',\n probableCause: alarm,\n perceivedSeverity: severity,\n correlatedNotifications: [],\n clearSystemId: global.get('os').hostname()\n }\n\n};\nmsg.topic = 'stndDefinedFields';\nreturn msg;",
+ "outputs": 1,
+ "noerr": 0,
+ "initialize": "",
+ "finalize": "",
+ "libs": [],
+ "x": 470,
+ "y": 860,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "f65b1c13e0243ef6"
]
]
},
{
- "id": "3e3be17a65a7d1bf",
+ "id": "01e14b971772ee0a",
+ "type": "comment",
+ "z": "51e83a0892da060e",
+ "name": "TS28532_FileDataReportingMnS.yaml",
+ "info": "",
+ "x": 170,
+ "y": 460,
+ "wires": []
+ },
+ {
+ "id": "ea15cafd2325d76f",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-ald-port:dc-enabled-status-change",
+ "z": "51e83a0892da060e",
+ "name": "notifyFilePreparationError",
"props": [
{
"p": "payload"
"crontab": "",
"once": false,
"onceDelay": 0.1,
- "topic": "o-ran-ald-port:dc-enabled-status-change",
+ "topic": "notifyFilePreparationError",
"payload": "",
"payloadType": "date",
- "x": 620,
- "y": 320,
+ "x": 150,
+ "y": 540,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "9f4bc0920fa3c0eb",
+ "b5533c10604af5a6"
]
]
},
{
- "id": "665c45e5ccd1c9cb",
- "type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-ald-port:overcurrent-report",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-ald-port:overcurrent-report",
- "payload": "",
- "payloadType": "date",
- "x": 590,
- "y": 360,
+ "id": "9f4bc0920fa3c0eb",
+ "type": "function",
+ "z": "51e83a0892da060e",
+ "name": "vesStndDefindBody",
+ "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/NotifyFilePreparationError',\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 reason: 'No Measurements',\n additionalText: 'Please consult customer documentation!'\n }\n};\nmsg.topic = 'stndDefinedFields';\nreturn msg;",
+ "outputs": 1,
+ "noerr": 0,
+ "initialize": "",
+ "finalize": "",
+ "libs": [],
+ "x": 470,
+ "y": 540,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "f65b1c13e0243ef6"
]
]
},
{
- "id": "5520ce3b83578f17",
- "type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-antenna-calibration:antenna-calibration-coordinated",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-antenna-calibration:antenna-calibration-coordinated",
- "payload": "",
- "payloadType": "date",
- "x": 670,
- "y": 400,
- "wires": [
- [
- "e5f66f4bd6777ca0"
- ]
- ]
+ "id": "a2d14719998c5951",
+ "type": "debug",
+ "z": "db7b8dca98eba850",
+ "name": "eventData",
+ "active": true,
+ "tosidebar": true,
+ "console": true,
+ "tostatus": true,
+ "complete": "payload",
+ "targetType": "msg",
+ "statusVal": "payload.length",
+ "statusType": "msg",
+ "x": 790,
+ "y": 580,
+ "wires": []
},
{
- "id": "fda3090fb4f1e9d4",
+ "id": "393ee0aac0784928",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-antenna-calibration:antenna-calibration-multiple-time-resource-params",
+ "z": "db7b8dca98eba850",
+ "name": "Get Data",
"props": [
{
"p": "payload"
"vt": "str"
}
],
- "repeat": "",
+ "repeat": "60",
"crontab": "",
"once": false,
"onceDelay": 0.1,
- "topic": "o-ran-antenna-calibration:antenna-calibration-multiple-time-resource-params",
+ "topic": "get",
"payload": "",
"payloadType": "date",
- "x": 730,
- "y": 440,
+ "x": 150,
+ "y": 580,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "f8d2934457eb7030"
]
]
},
{
- "id": "2551bb6c9746a7c2",
- "type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-antenna-calibration:antenna-calibration-required",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-antenna-calibration:antenna-calibration-required",
- "payload": "",
- "payloadType": "date",
- "x": 660,
- "y": 480,
+ "id": "9745e4eaaad146b5",
+ "type": "http request",
+ "z": "db7b8dca98eba850",
+ "name": "",
+ "method": "GET",
+ "ret": "obj",
+ "paytoqs": "ignore",
+ "url": "",
+ "tls": "7b2f4859e5963695",
+ "persist": true,
+ "proxy": "",
+ "insecureHTTPParser": true,
+ "authType": "",
+ "senderr": false,
+ "headers": [],
+ "x": 490,
+ "y": 580,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "ec4917fbcca1ea55"
]
]
},
{
- "id": "0dcc72d0235e6336",
- "type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-antenna-calibration:antenna-calibration-result",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-antenna-calibration:antenna-calibration-result",
- "payload": "",
- "payloadType": "date",
- "x": 650,
- "y": 520,
+ "id": "ec4917fbcca1ea55",
+ "type": "function",
+ "z": "db7b8dca98eba850",
+ "name": "Provider",
+ "func": "global.set('topicData', msg.payload)\nreturn msg;",
+ "outputs": 1,
+ "noerr": 0,
+ "initialize": "",
+ "finalize": "",
+ "libs": [],
+ "x": 640,
+ "y": 580,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "a2d14719998c5951"
]
]
},
{
- "id": "0abafa5c1a4ebd33",
- "type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-beamforming:beamforming-information-update",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-beamforming:beamforming-information-update",
- "payload": "",
- "payloadType": "date",
- "x": 650,
- "y": 560,
+ "id": "f8d2934457eb7030",
+ "type": "function",
+ "z": "db7b8dca98eba850",
+ "name": "http-preparation",
+ "func": "const protocol = env.get('KAFKA_BRIDGE_PROTOCOL');\nconst host = env.get('KAFKA_BRIDGE_HOST');\nconst port = env.get('KAFKA_BRIDGE_PORT');;\nconst base = protocol + '://' + host + ':' + port;\nconst group = env.get('KAFKA_BRIDGE_CONSUMER_GROUP');\nconst name = env.get('KAFKA_BRIDGE_CONSUMER_NAME');\n\nconst urlMapping = {\n pnfRegistration: 'unauthenticated.VES_PNFREG_OUTPUT',\n heartbeat: 'unauthenticated.SEC_HEARTBEAT_OUTPUT',\n fault: 'unauthenticated.SEC_FAULT_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 notifyFilePreparationError: 'unauthenticated.VES_FILE_READY_OUTPUT',\n oRanOpenfrontManagementPlane: 'unauthenticated.VES_O_RAN_SC_OPENFRONTHAUL_OUTPUT',\n notifyNewAlarm: 'unauthenticated.SEC_3GPP_FAULTSUPERVISION_OUTPUT',\n notifyChangedAlarm: 'unauthenticated.SEC_3GPP_FAULTSUPERVISION_OUTPUT',\n notifyChangedAlarmGeneral: 'unauthenticated.SEC_3GPP_FAULTSUPERVISION_OUTPUT',\n notifyAckStateChanged: 'unauthenticated.SEC_3GPP_FAULTSUPERVISION_OUTPUT',\n notifyCorrelatedNotificationChanged: 'unauthenticated.SEC_3GPP_FAULTSUPERVISION_OUTPUT',\n notifyComments: 'unauthenticated.SEC_3GPP_FAULTSUPERVISION_OUTPUT',\n notifyClearedAlarm: 'unauthenticated.SEC_3GPP_FAULTSUPERVISION_OUTPUT',\n notifyAlarmListRebuilt: 'unauthenticated.SEC_3GPP_FAULTSUPERVISION_OUTPUT',\n notifyPotentialFaultyAlarmList: 'unauthenticated.SEC_3GPP_FAULTSUPERVISION_OUTPUT'\n};\n\nmsg.url = [base, 'consumers', group, 'instances', name, 'records'].join('/');\nmsg.headers = {\n accept: 'application/vnd.kafka.json.v2+json'\n}\nreturn msg;",
+ "outputs": 1,
+ "noerr": 0,
+ "initialize": "",
+ "finalize": "",
+ "libs": [],
+ "x": 320,
+ "y": 580,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "9745e4eaaad146b5"
]
]
},
{
- "id": "d74c5f1885485d8c",
- "type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-beamforming:capability-group-beamforming-information-update",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-beamforming:capability-group-beamforming-information-update",
- "payload": "",
- "payloadType": "date",
- "x": 700,
- "y": 600,
- "wires": [
- [
- "e5f66f4bd6777ca0"
- ]
- ]
+ "id": "c82c06ee1b7fad77",
+ "type": "comment",
+ "z": "db7b8dca98eba850",
+ "name": "Get Records",
+ "info": "",
+ "x": 90,
+ "y": 540,
+ "wires": []
},
{
- "id": "8d755b355a3d5557",
+ "id": "6cc496f1420404b3",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-beamforming:predefined-beam-tilt-offset-complete",
+ "z": "db7b8dca98eba850",
+ "name": "Topics?",
"props": [
{
"p": "payload"
],
"repeat": "",
"crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-beamforming:predefined-beam-tilt-offset-complete",
+ "once": true,
+ "onceDelay": "0.8",
+ "topic": "topics",
"payload": "",
"payloadType": "date",
- "x": 660,
- "y": 640,
+ "x": 120,
+ "y": 400,
"wires": [
- []
+ [
+ "7a931d124e3fdc64"
+ ]
]
},
{
- "id": "6ebe4693c580ae00",
- "type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-externalio:external-input-change",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-externalio:external-input-change",
- "payload": "",
- "payloadType": "date",
- "x": 610,
- "y": 680,
+ "id": "7a931d124e3fdc64",
+ "type": "function",
+ "z": "db7b8dca98eba850",
+ "name": "http-preparation",
+ "func": "const protocol = env.get('KAFKA_BRIDGE_PROTOCOL');\nconst host = env.get('KAFKA_BRIDGE_HOST');\nconst port = env.get('KAFKA_BRIDGE_PORT');\nconst base = protocol + '://' + host + ':' + port;\nconst path = msg.topic;\nmsg.url = [base, path].join('/');\nmsg.method = 'get';\nmsg.headers = {\n accept: 'application/vnd.kafka.v2+json'\n}\nreturn msg;",
+ "outputs": 1,
+ "noerr": 0,
+ "initialize": "",
+ "finalize": "",
+ "libs": [],
+ "x": 340,
+ "y": 400,
"wires": [
- []
+ [
+ "53aae16b268527f7"
+ ]
]
},
{
- "id": "89144928a6ead625",
+ "id": "051acf7693d4d457",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-fm:alarm-notif",
+ "z": "db7b8dca98eba850",
+ "name": "Do Subscription",
"props": [
{
"p": "payload"
],
"repeat": "",
"crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-fm:alarm-notif",
+ "once": true,
+ "onceDelay": "0.6",
+ "topic": "subscription",
"payload": "",
"payloadType": "date",
- "x": 550,
- "y": 800,
+ "x": 140,
+ "y": 300,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "a72e6d0ab9261954"
]
]
},
{
- "id": "8ebca0cd456a9763",
- "type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-laa-operations:measurement-result",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-laa-operations:measurement-result",
- "payload": "",
- "payloadType": "date",
- "x": 620,
- "y": 840,
+ "id": "a72e6d0ab9261954",
+ "type": "function",
+ "z": "db7b8dca98eba850",
+ "name": "http-preparation",
+ "func": "const protocol = env.get('KAFKA_BRIDGE_PROTOCOL');\nconst host = env.get('KAFKA_BRIDGE_HOST');\nconst port = env.get('KAFKA_BRIDGE_PORT');\nconst base = protocol + '://' + host + ':' + port;\nconst group = env.get('KAFKA_BRIDGE_CONSUMER_GROUP');\nconst name = env.get('KAFKA_BRIDGE_CONSUMER_NAME');\nmsg.url = [base, 'consumers', group, 'instances', name, msg.topic].join('/');\nmsg.method = 'post';\nmsg.headers = {\n 'content-type': 'application/vnd.kafka.v2+json',\n accept: 'application/vnd.kafka.v2+json'\n}\nmsg.payload = {\n \"topics\": [\"unauthenticated.VES_O1_NOTIFY_PNF_REGISTRATION_OUTPUT\", \"unauthenticated.SEC_HEARTBEAT_OUTPUT\", \"unauthenticated.VES_O_RAN_SC_HELLO_WORLD_PM_STREAMING_OUTPUT\", \"unauthenticated.VES_PNFREG_OUTPUT\", \"unauthenticated.VES_FILE_READY_OUTPUT\", \"o-ran-file-management-file-download-event\", \"bridge-quickstart-topic\", \"o-ran-file-management-file-upload-notification\", \"o-ran-supervision-supervision-notification\", \"unauthenticated.SEC_3GPP_FAULTSUPERVISION_OUTPUT\", \"my-topic\", \"unauthenticated.SEC_3GPP_HEARTBEAT_OUTPUT\", \"unauthenticated.SEC_FAULT_OUTPUT\"]\n}\n\nreturn msg;\n",
+ "outputs": 1,
+ "noerr": 0,
+ "initialize": "",
+ "finalize": "",
+ "libs": [],
+ "x": 340,
+ "y": 300,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "53aae16b268527f7"
]
]
},
{
- "id": "4778511387bc7449",
- "type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-performance-management:measurement-result-stats",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-performance-management:measurement-result-stats",
- "payload": "",
- "payloadType": "date",
- "x": 670,
- "y": 880,
+ "id": "53aae16b268527f7",
+ "type": "http request",
+ "z": "db7b8dca98eba850",
+ "name": "http request",
+ "method": "use",
+ "ret": "txt",
+ "paytoqs": "ignore",
+ "url": "",
+ "tls": "7b2f4859e5963695",
+ "persist": true,
+ "proxy": "",
+ "insecureHTTPParser": true,
+ "authType": "",
+ "senderr": false,
+ "headers": [],
+ "x": 590,
+ "y": 300,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "025484501aa58b31"
]
]
},
{
- "id": "c106623d629fbe54",
+ "id": "025484501aa58b31",
+ "type": "debug",
+ "z": "db7b8dca98eba850",
+ "name": "Response",
+ "active": true,
+ "tosidebar": true,
+ "console": true,
+ "tostatus": true,
+ "complete": "payload",
+ "targetType": "msg",
+ "statusVal": "statusCode",
+ "statusType": "msg",
+ "x": 770,
+ "y": 300,
+ "wires": []
+ },
+ {
+ "id": "2bcd1fcc0cb4f747",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-software-management:activation-event",
+ "z": "db7b8dca98eba850",
+ "name": "healthy?",
"props": [
{
"p": "payload"
],
"repeat": "",
"crontab": "",
- "once": false,
+ "once": true,
"onceDelay": 0.1,
- "topic": "o-ran-software-management:activation-event",
+ "topic": "healthy",
"payload": "",
"payloadType": "date",
- "x": 630,
- "y": 920,
+ "x": 120,
+ "y": 80,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "4b695d52e3231b6b"
]
]
},
{
- "id": "4db0e5b915d76ddb",
- "type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-software-management:download-event",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-software-management:download-event",
- "payload": "",
- "payloadType": "date",
- "x": 630,
- "y": 960,
+ "id": "4b695d52e3231b6b",
+ "type": "function",
+ "z": "db7b8dca98eba850",
+ "name": "http-preparation",
+ "func": "const protocol = env.get('KAFKA_BRIDGE_PROTOCOL');\nconst host = env.get('KAFKA_BRIDGE_HOST');\nconst port = env.get('KAFKA_BRIDGE_PORT');\nconst base = protocol + '://' + host + ':' + port;\nmsg.url = [base, msg.topic].join('/');\nmsg.method = 'get';\nmsg.headers = {\n accept: 'application/json'\n}\nreturn msg;\n",
+ "outputs": 1,
+ "noerr": 0,
+ "initialize": "",
+ "finalize": "",
+ "libs": [],
+ "x": 340,
+ "y": 200,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "53aae16b268527f7"
]
]
},
{
- "id": "8d3fab47729a807d",
+ "id": "2d834fde764e3443",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-software-management:install-event",
+ "z": "db7b8dca98eba850",
+ "name": "ready?",
"props": [
{
"p": "payload"
],
"repeat": "",
"crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-software-management:install-event",
+ "once": true,
+ "onceDelay": "0.2",
+ "topic": "ready",
"payload": "",
"payloadType": "date",
- "x": 620,
- "y": 1000,
+ "x": 120,
+ "y": 120,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "4b695d52e3231b6b"
]
]
},
{
- "id": "7ac87519cb59151d",
+ "id": "7bbff4bdad2683f0",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-sync:gnss-state-change",
+ "z": "db7b8dca98eba850",
+ "name": "Schema?",
"props": [
{
"p": "payload"
],
"repeat": "",
"crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-sync:gnss-state-change",
+ "once": true,
+ "onceDelay": "0.4",
+ "topic": "openapi",
"payload": "",
"payloadType": "date",
- "x": 580,
- "y": 1080,
+ "x": 120,
+ "y": 200,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "4b695d52e3231b6b"
]
]
},
{
- "id": "55725b18e27c1a27",
+ "id": "1b322733222d5c1d",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-sync:ptp-state-change",
+ "z": "db7b8dca98eba850",
+ "name": "Version?",
"props": [
{
"p": "payload"
],
"repeat": "",
"crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-sync:ptp-state-change",
+ "once": true,
+ "onceDelay": "0.3",
+ "topic": " ",
"payload": "",
"payloadType": "date",
- "x": 580,
- "y": 1120,
+ "x": 120,
+ "y": 160,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "4b695d52e3231b6b"
]
]
},
{
- "id": "dde01e699dec844f",
+ "id": "12e182c0bee28aad",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-sync:synce-state-change",
+ "z": "db7b8dca98eba850",
+ "name": "CreateConsumer",
"props": [
{
"p": "payload"
],
"repeat": "",
"crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-sync:synce-state-change",
+ "once": true,
+ "onceDelay": "0.5",
+ "topic": "consumers",
"payload": "",
"payloadType": "date",
- "x": 590,
- "y": 1160,
+ "x": 150,
+ "y": 260,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "46c33603561bf711"
]
]
},
{
- "id": "5457d995823e58f6",
- "type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-sync:synchronization-state-change",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-sync:synchronization-state-change",
- "payload": "",
- "payloadType": "date",
- "x": 620,
- "y": 1200,
+ "id": "46c33603561bf711",
+ "type": "function",
+ "z": "db7b8dca98eba850",
+ "name": "http-preparation",
+ "func": "const protocol = env.get('KAFKA_BRIDGE_PROTOCOL');\nconst host = env.get('KAFKA_BRIDGE_HOST');\nconst port = env.get('KAFKA_BRIDGE_PORT');\nconst base = protocol + '://' + host + ':' + port;\nconst group = env.get('KAFKA_BRIDGE_CONSUMER_GROUP');\nconst name = env.get('KAFKA_BRIDGE_CONSUMER_NAME');\nmsg.url = [base, msg.topic, group].join('/');\nmsg.method = 'post';\nmsg.headers = {\n 'content-type': 'application/vnd.kafka.v2+json',\n accept: 'application/vnd.kafka.v2+json'\n}\nmsg.payload = {\n name: name,\n format: 'json',\n 'auto.offset.reset': 'earliest',\n 'enable.auto.commit': true,\n 'fetch.min.bytes': 1,\n 'consumer.request.timeout.ms': 30000,\n 'isolation.level': 'read_uncommitted'\n}\n\nreturn msg;\n",
+ "outputs": 1,
+ "noerr": 0,
+ "initialize": "",
+ "finalize": "",
+ "libs": [],
+ "x": 340,
+ "y": 260,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "53aae16b268527f7"
]
]
},
{
- "id": "ca9f765b3838d5ff",
+ "id": "63c336487e6e0eb9",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-trace:trace-log-generated",
+ "z": "db7b8dca98eba850",
+ "name": "Get Subscription",
"props": [
{
"p": "payload"
],
"repeat": "",
"crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-trace:trace-log-generated",
+ "once": true,
+ "onceDelay": "0.7",
+ "topic": "subscription",
"payload": "",
"payloadType": "date",
- "x": 590,
- "y": 1240,
+ "x": 150,
+ "y": 340,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "b0f5987ab4bd1256"
]
]
},
{
- "id": "0a837c4beaa140e0",
- "type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-uplane-conf:rx-array-carriers-state-change",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-uplane-conf:rx-array-carriers-state-change",
- "payload": "",
- "payloadType": "date",
- "x": 640,
- "y": 1320,
+ "id": "b0f5987ab4bd1256",
+ "type": "function",
+ "z": "db7b8dca98eba850",
+ "name": "http-preparation",
+ "func": "const protocol = env.get('KAFKA_BRIDGE_PROTOCOL');\nconst host = env.get('KAFKA_BRIDGE_HOST');\nconst port = env.get('KAFKA_BRIDGE_PORT');\nconst base = protocol + '://' + host + ':' + port;\nconst group = env.get('KAFKA_BRIDGE_CONSUMER_GROUP');\nconst name = env.get('KAFKA_BRIDGE_CONSUMER_NAME');\nmsg.url = [base, 'consumers', group, 'instances', name, msg.topic].join('/');\nmsg.method = 'get';\nmsg.headers = {\n accept: 'application/vnd.kafka.v2+json'\n}\nreturn msg;\n",
+ "outputs": 1,
+ "noerr": 0,
+ "initialize": "",
+ "finalize": "",
+ "libs": [],
+ "x": 340,
+ "y": 340,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "53aae16b268527f7"
]
]
},
{
- "id": "3dfb5349f08c5ea9",
- "type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-troubleshooting:troubleshooting-log-generated",
- "props": [
- {
- "p": "payload"
- },
- {
- "p": "topic",
- "vt": "str"
- }
- ],
- "repeat": "",
- "crontab": "",
- "once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-troubleshooting:troubleshooting-log-generated",
- "payload": "",
- "payloadType": "date",
- "x": 650,
- "y": 1280,
+ "id": "ccf49a001b3e92d2",
+ "type": "comment",
+ "z": "db7b8dca98eba850",
+ "name": "Preparation",
+ "info": "",
+ "x": 90,
+ "y": 40,
+ "wires": []
+ },
+ {
+ "id": "892cacf32948fe41",
+ "type": "function",
+ "z": "db7b8dca98eba850",
+ "name": "http-preparation",
+ "func": "const protocol = env.get('KAFKA_BRIDGE_PROTOCOL');\nconst host = env.get('KAFKA_BRIDGE_HOST');\nconst port = env.get('KAFKA_BRIDGE_PORT');\nconst base = protocol + '://' + host + ':' + port;\nconst group = env.get('KAFKA_BRIDGE_CONSUMER_GROUP');\nconst name = env.get('KAFKA_BRIDGE_CONSUMER_NAME');\nmsg.url = [base, msg.topic, group, 'instances', name].join('/');\nmsg.method = 'delete';\nmsg.headers = {\n 'content-type': 'application/vnd.kafka.v2+json',\n accept: 'application/vnd.kafka.v2+json'\n}\nmsg.payload = null\n\nreturn msg;\n",
+ "outputs": 1,
+ "noerr": 0,
+ "initialize": "",
+ "finalize": "",
+ "libs": [],
+ "x": 340,
+ "y": 460,
"wires": [
[
- "e5f66f4bd6777ca0"
+ "53aae16b268527f7"
]
]
},
{
- "id": "030a6e7e6371402e",
+ "id": "ca171245ae7b6184",
"type": "inject",
- "z": "c5746e29f53f72ce",
- "d": true,
- "name": "o-ran-uplane-conf:tx-array-carriers-state-change",
+ "z": "db7b8dca98eba850",
+ "name": "DeleteConsumer",
"props": [
{
"p": "payload"
"repeat": "",
"crontab": "",
"once": false,
- "onceDelay": 0.1,
- "topic": "o-ran-uplane-conf:tx-array-carriers-state-change",
+ "onceDelay": "0.5",
+ "topic": "consumers",
"payload": "",
"payloadType": "date",
- "x": 640,
- "y": 1360,
- "wires": [
- [
- "e5f66f4bd6777ca0"
- ]
- ]
- },
- {
- "id": "2a2e05d79287f4a0",
- "type": "function",
- "z": "c5746e29f53f72ce",
- "name": "Provider",
- "func": "global.set('topicData', msg.payload)\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "initialize": "",
- "finalize": "",
- "libs": [],
- "x": 980,
- "y": 220,
+ "x": 140,
+ "y": 460,
"wires": [
[
- "562063a080cb99d6"
+ "892cacf32948fe41"
]
]
},
"id": "329e838eb4bf63f4",
"type": "function",
"z": "7ba02ed596e8cde5",
- "name": "ResetActionData",
- "func": "const base = 'https://odlux.oam.smo.o-ran-sc.org';\nconst path = 'rests/operations/network-topology:network-topology/topology=topology-netconf/node=';\nconst nodeId = msg.payload;\nconst mount = 'yang-ext:mount';\nconst action = 'o-ran-supervision:supervision-watchdog-reset';\n\nmsg.url = [base,path + nodeId, mount, action].join('/');\nmsg.payload = { \n \"o-ran-supervision:input\": \n {\n \"supervision-notification-interval\": 60, \n \"guard-timer-overhead\": 10\n }\n}\nreturn msg;",
+ "name": "http-preparation",
+ "func": "const protocol = env.get('SDN_CONTROLLER_PROTOCOL');\nconst host = env.get('SDN_CONTROLLER_HOST');\nconst port = env.get('SDN_CONTROLLER_PORT');;\nconst base = protocol + '://' + host + ':' + port;\nconst path = 'rests/operations/network-topology:network-topology/topology=topology-netconf/node=';\nconst nodeId = msg.payload;\nconst mount = 'yang-ext:mount';\nconst action = 'o-ran-supervision:supervision-watchdog-reset';\nmsg.url = [base,path + nodeId, mount, action].join('/');\n\nconst user = env.get('SDN_CONTROLLER_USERNAME');\nconst password = env.get('SDN_CONTROLLER_PASSWORD');\nconst auth = Buffer.from([user, password].join(':')).toString('base64')\nconst basicAuth = ['Basic', auth].join(' ');\n\nmsg.headers = {};\nmsg.headers['Content-Type'] = 'application/yang-data+json';\nmsg.headers['Accept'] = 'application/yang-data+json';\nmsg.headers['Authorization'] = basicAuth;\n\nmsg.payload = { \n \"o-ran-supervision:input\": \n {\n \"supervision-notification-interval\": 60, \n \"guard-timer-overhead\": 10\n }\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
- "x": 570,
+ "x": 560,
"y": 220,
"wires": [
[
"persist": true,
"proxy": "",
"insecureHTTPParser": true,
- "authType": "basic",
+ "authType": "",
"senderr": false,
- "headers": [
- {
- "keyType": "other",
- "keyValue": "Accept",
- "valueType": "other",
- "valueValue": "application/json"
- },
- {
- "keyType": "other",
- "keyValue": "Content-Type",
- "valueType": "other",
- "valueValue": "application/json"
- }
- ],
+ "headers": [],
"x": 800,
"y": 220,
"wires": [
"name": "Response",
"active": true,
"tosidebar": true,
- "console": false,
- "tostatus": false,
+ "console": true,
+ "tostatus": true,
"complete": "payload",
"targetType": "msg",
- "statusVal": "",
- "statusType": "auto",
- "x": 1000,
+ "statusVal": "payload.length",
+ "statusType": "msg",
+ "x": 1010,
"y": 220,
"wires": []
},
"type": "function",
"z": "7ba02ed596e8cde5",
"name": "Consumer (new Data?)",
- "func": "const topicData = global.get('topicData');\nmsg.payload = topicData.map(event => {\n if (event.event.commonEventHeader.stndDefinedNamespace === 'o-ran-supervision:supervision-notification')\n return event.event.commonEventHeader.sourceName;\n}).filter(element => {\n return element !== undefined;\n});\nglobal.set('topicData', []);\nreturn msg;",
+ "func": "// read topic data from global context\nconst topicData = global.get('topicData');\n// init result as array\nlet result = [];\nif (Array.isArray(topicData)) {\n result = topicData.filter(event => {\n return event.value.event.commonEventHeader.stndDefinedNamespace === 'o-ran-supervision:supervision-notification';\n }).map(event => {\n return event.value.event.commonEventHeader.sourceName;;\n });\n}\nmsg.payload = result;\nglobal.set('topicData', []);\nreturn msg; ",
"outputs": 1,
"noerr": 0,
"initialize": "",
"name": "The Consumer checks for data on the message router provided by the \"Massage Topics\" flow.",
"info": "The Consumer checks for data on the message router provided by the \"Massage Topics\" flow.",
"x": 520,
- "y": 260,
+ "y": 280,
"wires": []
}
]
\ No newline at end of file