commit | 879a6034f87854decaa178b335e23af4ccfb07ea | [log] [tgz] |
---|---|---|
author | Tomáš Pecka <tomas.pecka@cesnet.cz> | Wed Feb 03 17:21:48 2021 +0100 |
committer | Jan Kundrát <jan.kundrat@cesnet.cz> | Tue Feb 09 11:15:49 2021 +0100 |
tree | d6f30f4b6e6c19a6771fbb0a5b2517304fd94ceb | |
parent | 7443425a6fe12e303d99f82924d05a27b243f78d [diff] |
system: Implement remote system reboot via Sysrepo The ietf-system model [1] models an RPC (ietf-system:system-restart) which causes system restart. The restart is done simply by invoking `systemctl reboot` command. Originally, I wanted just to call systemd's Reboot method over its D-Bus API [2], however, it does not shutdown services and just goes straight into the reboot process. The version from logind, that can do this, is not available on our boxes. [1] https://tools.ietf.org/html/rfc7317 [2] https://www.freedesktop.org/wiki/Software/systemd/dbus/ Change-Id: I7d690a11402eaf408d9dce04d3ac0ef9006bcdb8
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.