commit | 94ebc36420e05bf4b83ede037c851f75d5d50ca2 | [log] [tgz] |
---|---|---|
author | Tomáš Pecka <tomas.pecka@cesnet.cz> | Wed Jan 24 16:46:39 2024 +0100 |
committer | Tomáš Pecka <tomas.pecka@cesnet.cz> | Thu Jan 25 22:16:49 2024 +0100 |
tree | b54bc76773f1ea436346593605f9a40668ffa5f1 | |
parent | 26ac0faacbbf0890930db28c28a81e334728d26e [diff] |
health: read systemd unit state from ListUnits call When we are registering units after listing all units, we did query their state explicitly using another DBus call. This is, however, not required, because ListUnits() method returns both the ActiveState, and the SubState of the unit [1]. [1] https://www.freedesktop.org/wiki/Software/systemd/dbus/#Manager-ListUnits Change-Id: I5fb6a1d214833c98675e8ab9c92d427c926fd321
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.78
)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
.