commit | 655062ca16cef03aa82aeafe078c65d5b4cf70c5 | [log] [tgz] |
---|---|---|
author | Tomáš Pecka <tomas.pecka@cesnet.cz> | Mon Dec 11 15:37:58 2023 +0100 |
committer | Tomáš Pecka <tomas.pecka@cesnet.cz> | Tue Dec 12 10:51:01 2023 +0100 |
tree | 2c174292cd7a026fadffbbe1e0360a9d45d09fe4 | |
parent | 5f07eea883efbf385d683b1d91639606f77a37e5 [diff] |
hardware: addSensorValue overload for strings and ints We will want to check the actual numeric value passed to addSensorValue function in the next commit to detect underflowed/overflowed values. The function addSensorValue, which writes the sensor-value into the tree, now accepts strings only. Most of our sensor values are integer so we convert them to strings. This commit adds new addSensorValue overload for integers to avoid converting ints to strings. Now, we can easily check the value passed to detect overloads. However, this commit does not check if the passed string value is really a valid numeric value. Change-Id: I8c32f063fa92c7f45ecb1a21364276f4be780868
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
.