commit | cd7f9cc51bb9cc0090cab0fd4cdf34673faa79ca | [log] [tgz] |
---|---|---|
author | Tomáš Pecka <tomas.pecka@cesnet.cz> | Mon Dec 11 15:52:48 2023 +0100 |
committer | Tomáš Pecka <tomas.pecka@cesnet.cz> | Tue Dec 12 11:06:39 2023 +0100 |
tree | 64e78f0ce51dacf1b2de1ba2db1814c187aeff21 | |
parent | 655062ca16cef03aa82aeafe078c65d5b4cf70c5 [diff] |
hardware: Disallow writing out-of-range values into sensor-value leaf One of our boxes started reporting nonsense value of one of the sensors. This value is way beyond range for sensor-value and it led to crashes because libyang refused to write such value into the sensor-value leaf and throwed with LY_EVALID. Let's hotfix that for now to set value as {over,under}flowed and sensor's oper-status to nonoperational. However, the problem of setting the correct value is more complicated because the valid range for the int32 value in YANG is one thing but the descriptions gives even more constraints depending on sensor-value-type. Change-Id: I9a74991da58239e0f376f2ec3e1e86f88eab9c57
Together with sysrepo, this software provides "general system management" of embedded devices. The target platform is anything that runs Linux with systemd. This runs in production on CzechLight SDN DWDM devices.
This component tracks the overal health state of the system, including various sensors, or the state of systemd
units. As an operator-friendly LED at the front panel of the appliance shows the aggregated health state.
Firmware can be updated via RAUC, and various aspects of the system's configuration can be adjusted. This includes a firewall, basic network settings, and authentication management.
For a full list, consult the yang/
directory in this repository.
ietf-access-control-list
, RFC 8519 (with deviations)ietf-hardware
, RFC 8348ietf-system
, RFC 7317 (partial support)ietf-interfaces
, RFC 8343 (generating config for systemd-networkd
, with extensions)ietf-routing
, RFC 8349 (see above)czechlight-system
For building, one needs:
1.75
)pkg-config
libnl-route
for talking to the Linux kernellibsystemd
and systemd
at runtimelibyang-cpp
- C++ bindings for libyangsysrepo-cpp
- C++ bindings for sysrepospdlog
- a logging librarysdbus-c++
- C++ library for D-Busfmt
- C++ string formatting librarynlohmann_json
- C++ JSON librarydocopt
for CLI option parsingnft
- the netfilter tooliproute2
- the ip
tool for testingThe build process uses CMake. A quick-and-dirty build with no fancy options can be as simple as mkdir build && cd build && cmake .. && make && make install
.