mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
add initial OpenAPI schema for IEC 60870 node
This commit is contained in:
parent
7e10188c2d
commit
1b253ad43c
4 changed files with 84 additions and 2 deletions
|
@ -27,6 +27,7 @@ discriminator:
|
|||
exec: nodes/_exec.yaml
|
||||
file: nodes/_file.yaml
|
||||
fpga: nodes/_fpga.yaml
|
||||
iec60870-5-104: nodes/_iec60870-5-104.yaml
|
||||
iec61850-8-1: nodes/_iec61850-8-1.yaml
|
||||
iec61850-9-2: nodes/_iec61850-9-2.yaml
|
||||
infiniband: nodes/_infiniband.yaml
|
||||
|
@ -40,13 +41,13 @@ discriminator:
|
|||
redis: nodes/_redis.yaml
|
||||
rtp: nodes/_rtp.yaml
|
||||
shmem: nodes/_shmem.yaml
|
||||
signal.v2: nodes/_signal_v2_node.yaml
|
||||
signal: nodes/_signal_node.yaml
|
||||
signal.v2: nodes/_signal_v2_node.yaml
|
||||
socket: nodes/_socket.yaml
|
||||
stats_node: nodes/_stats_node.yaml
|
||||
temper: nodes/_temper.yaml
|
||||
test_rtt: nodes/_test_rtt.yaml
|
||||
uldaq: nodes/_uldaq.yaml
|
||||
webrtc: nodes/_webrtc.yaml
|
||||
websocket: nodes/_websocket.yaml
|
||||
zeromq: nodes/_zeromq.yaml
|
||||
webrtc: nodes/_webrtc.yaml
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../node_obj.yaml
|
||||
- $ref: iec60870-5-104.yaml
|
|
@ -0,0 +1,40 @@
|
|||
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
|
||||
---
|
||||
|
||||
allOf:
|
||||
- type: object
|
||||
properties:
|
||||
|
||||
in:
|
||||
type: object
|
||||
properties:
|
||||
signals:
|
||||
$ref: ../signal_list.yaml
|
||||
|
||||
out:
|
||||
type: object
|
||||
properties:
|
||||
signals:
|
||||
type: array
|
||||
items:
|
||||
$ref: ./signals/iec60870_signal.yaml
|
||||
|
||||
address:
|
||||
description: Hostname or IP address of the IEC 60870 server
|
||||
type: string
|
||||
|
||||
port:
|
||||
description: Port number of the IEC 60870 server
|
||||
type: number
|
||||
|
||||
ca:
|
||||
description: Common Address
|
||||
type: number
|
||||
|
||||
low_priority_queue:
|
||||
type: number
|
||||
|
||||
high_priority_queue:
|
||||
type: number
|
||||
|
||||
- $ref: ../node.yaml
|
|
@ -0,0 +1,38 @@
|
|||
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
|
||||
---
|
||||
|
||||
allOf:
|
||||
- type: object
|
||||
properties:
|
||||
asdu_type:
|
||||
type: string
|
||||
enum:
|
||||
- single-point
|
||||
- double-point
|
||||
- scaled-int
|
||||
- normalized-float
|
||||
- short-float
|
||||
|
||||
asdu_type_id:
|
||||
type: string
|
||||
enum:
|
||||
- M_SP_NA_1
|
||||
- M_SP_TB_1
|
||||
- M_DP_NA_1
|
||||
- M_DP_TB_1
|
||||
- M_ME_NB_1
|
||||
- M_ME_TB_1
|
||||
- M_ME_NA_1
|
||||
- M_ME_TA_1
|
||||
- M_ME_NC_1
|
||||
- M_ME_TC_1
|
||||
|
||||
with_timestamp:
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
ioa:
|
||||
type: number
|
||||
min: 1
|
||||
|
||||
- $ref: ../../signal.yaml
|
Loading…
Add table
Reference in a new issue