1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-16 00:00:02 +01:00
VILLASnode/doc/openapi/components/schemas/config/nodes/socket.yaml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

75 lines
1.9 KiB
YAML
Raw Permalink Normal View History

2021-11-18 12:10:36 +01:00
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
2021-11-18 12:10:36 +01:00
# SPDX-License-Identifier: Apache-2.0
2022-01-10 17:52:36 +01:00
---
2021-11-18 12:10:36 +01:00
allOf:
- type: object
properties:
format:
2021-12-02 04:14:44 -05:00
$ref: ../format_spec.yaml
layer:
type: string
enum:
- udp
- ip
- eth
default: udp
description: |
Select the network layer which should be used for the socket. Please note that `eth` can only be used locally in a LAN as it contains no routing information for the internet.
verify_source:
type: boolean
default: false
description: |
Check if source address of incoming packets matches the remote address.
in:
type: object
required:
- address
properties:
address:
type: string
description: |
The local address and port number this node should listen for incoming packets.
Use `*` to listen on all interfaces: `local = "*:12000"`.
out:
type: object
properties:
address:
type: string
description: |
The remote address and port number to which this node will send data.
netem:
$ref: ../netem.yaml
multicast:
type: object
properties:
enabled:
type: boolean
default: true
description: |
Weather or not multicast group subscription is active.
group:
type: string
description: |
The multicast group. Must be within 224.0.0.0/4
ttl:
type: integer
min: 0
description: |
The time to live for outgoing multicast packets.
loop:
type: boolean
- $ref: ../node_signals.yaml
2021-12-06 09:25:55 +01:00
- $ref: ../node.yaml