Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 28 additions & 41 deletions server/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22643,6 +22643,34 @@ components:
'Domain name for sending the response to the requestor'
additionalProperties: false
v1_readcurrentmactablefromdevice_body:
required:
- mount-name
- requestor-address
- requestor-port
- requestor-protocol
- requestor-receive-operation
type: object
properties:
mount-name:
type: string
description: |
'Mount-name of the device, from which the current MAC table content shall be retrieved'
requestor-protocol:
type: string
description: |
'HTTP or HTTPs protocol for sending the response to the requestor'
enum:
- HTTP
- HTTPS
requestor-address:
$ref: "#/components/schemas/v1readcurrentmactablefromdevice_requestoraddress"
requestor-port:
type: integer
description: |
'TCP port for sending the response to the requestor'
requestor-receive-operation:
type: string
description: Operation at the requestor for receiving the response
example:
mount-name: "305251234"
requestor-protocol: HTTP
Expand All @@ -22651,47 +22679,6 @@ components:
ipv-4-address: 1.1.4.1
requestor-port: 4001
requestor-receive-operation: /v1/receive-requested-mac-address-table
anyOf:
- required:
- mount-name
type: object
properties:
mount-name:
type: string
description: |
'Mount-name of the device, for which the elasticsearch content shall be updated'
description: bare update of elasticsearch
example:
mount-name: "305251234"
- required:
- mount-name
- requestor-address
- requestor-port
- requestor-protocol
- requestor-receive-operation
type: object
properties:
mount-name:
type: string
description: |
'Mount-name of the device, from which the current MAC table content shall be retrieved'
requestor-protocol:
type: string
description: |
'HTTP or HTTPs protocol for sending the response to the requestor'
enum:
- HTTP
- HTTPS
requestor-address:
$ref: "#/components/schemas/v1readcurrentmactablefromdevice_requestoraddress"
requestor-port:
type: integer
description: |
'TCP port for sending the response to the requestor'
requestor-receive-operation:
type: string
description: Operation at the requestor for receiving the response
description: update of elasticsearch and response to the requestor
inline_response_200_2:
required:
- request-id
Expand Down
89 changes: 38 additions & 51 deletions spec/MacAddressTableRecorder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -722,66 +722,53 @@ paths:
content:
application/json:
schema:
anyOf:
- description: "bare update of elasticsearch"
type: object
required:
- mount-name
properties:
mount-name:
type: string
description: >
'Mount-name of the device, for which the elasticsearch content shall be updated'
example:
mount-name: "305251234"
- description: "update of elasticsearch and response to the requestor"
type: object
required:
- mount-name
- requestor-protocol
- requestor-address
- requestor-port
- requestor-receive-operation
properties:
mount-name:
type: string
description: >
'Mount-name of the device, from which the current MAC table content shall be retrieved'
requestor-protocol:
type: string
description: >
'HTTP or HTTPs protocol for sending the response to the requestor'
enum:
- "HTTP"
- "HTTPS"
requestor-address:
type: object
required:
- mount-name
- requestor-protocol
- requestor-address
- requestor-port
- requestor-receive-operation
minProperties: 1
maxProperties: 1
additionalProperties: false
properties:
mount-name:
type: string
description: >
'Mount-name of the device, from which the current MAC table content shall be retrieved'
requestor-protocol:
type: string
description: >
'HTTP or HTTPs protocol for sending the response to the requestor'
enum:
- "HTTP"
- "HTTPS"
requestor-address:
ip-address:
type: object
minProperties: 1
maxProperties: 1
additionalProperties: false
properties:
ip-address:
type: object
minProperties: 1
additionalProperties: false
properties:
ipv-4-address:
type: string
pattern: '^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$'
description: >
'IP address for sending the response to the requestor'
domain-name:
ipv-4-address:
type: string
pattern: '^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$'
pattern: '^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$'
description: >
'Domain name for sending the response to the requestor'
requestor-port:
type: integer
description: >
'TCP port for sending the response to the requestor'
requestor-receive-operation:
'IP address for sending the response to the requestor'
domain-name:
type: string
description: "Operation at the requestor for receiving the response"
pattern: '^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$'
description: >
'Domain name for sending the response to the requestor'
requestor-port:
type: integer
description: >
'TCP port for sending the response to the requestor'
requestor-receive-operation:
type: string
description: "Operation at the requestor for receiving the response"
example:
mount-name: "305251234"
requestor-protocol: "HTTP"
Expand Down
Loading