Files
ols-ucentral-schema/state/unit.yml
Oleksandr Mazur 4e9d466c81 Extend schema to add dynamic authorization (CoA) support
- Extend schema/switch.yml to support configuring
  DAC list (origin of CoA and DM messages), as well as
  configiguring DAS (port on which receive CoA + DM) etc.
- Extend state/unit.yml to report back to the cloud
  current DAS configuration and DAC config.

Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
2024-02-05 14:46:18 +02:00

124 lines
3.9 KiB
YAML

type: object
description:
This section describes the current state of the OS running on the device.
properties:
load:
type: array
description:
This array hold 3 values describing the average system load for the last
1, 5 and 15 minutes.
items:
type: number
cpu_load:
type: array
description:
This array hold the total and per core load in percentage.
items:
type: number
localtime:
type: number
description:
This property contains the current unix time of the device.
memory:
type: object
description:
This section describes the current memory uasge of the device.
properties:
free:
type: number
description:
The amount of free memory.
total:
type: number
description:
The total amount of memory.
cached:
type: number
description:
The total amount of cached memory.
buffered:
type: number
description:
The total amount of buffered memory.
uptime:
type: number
description:
The number of seconds since the unit last booted.
temperature:
description:
The average and maximum thermal reading from the CPU.
type: array
items:
type: number
poe:
description:
This section describes the current state of the PoE unit on the device
type: object
properties:
max-power-budget:
description:
Reports the total power available (power budget) (in watts, W) device's Power sourcing equipment is able to source.
type: number
power-threshold:
description:
Reports configured power alarm threshold value for the Power sourcing equipment (in milliwatts, mW).
type: number
power-consumed:
description:
Reports a total power Powered Devices are draining from the device's Power sourcing equipment (in milliwatts, mW).
type: number
power-status:
description:
Reports power status of the device's Power sourcing equipment.
type: string
examples:
- "ON"
- "OFF"
ieee8021x:
description:
This section describes the global (device-wise) 802.1X (port access control) state and config applied.
type: object
properties:
dynamic-authorization:
description:
Reported DAS-related state info.
type: object
properties:
stats:
description:
Cumulative statistics for all configured DACs.
type: object
properties:
coa_req_received:
description:
Number of CoA requests received.
type: number
coa_ack_sent:
description:
Number of CoA ACK responses sent.
type: number
coa_nak_sent:
description:
Number of CoA NAK responses sent.
type: number
coa_ignored:
description:
Number of CoA requests ignored.
type: number
coa_wrong_attr:
description:
Number of CoA requests received with invalid (unsupported) attributes.
type: number
coa_wrong_attr_value:
description:
Number of CoA requests received with invalid (unsupported) attribute value.
type: number
coa_wrong_session_context:
description:
Number of CoA requests received with inexisting session context.
type: number
administratively_prohibited_req:
description:
Number of CoA requests that are sent if the NAS is configured to prohibit honoring of CoA-Request or Disconnect-Request packets for the specified session.
type: number