]> git.ipfire.org Git - thirdparty/systemd.git/commit
networkd: fia xRequiredOperationalStateForOnline serializtion
authorAnton Tiurin <noxiouz@meta.com>
Mon, 15 Sep 2025 19:32:39 +0000 (12:32 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 13 Oct 2025 08:04:47 +0000 (10:04 +0200)
commit8a7e86749e9924e7a00aa68efa66e75e1f41a928
treefb07f9b4253e89d05d183e35747ec2ad5632aac4
parentf58154283544ff03c22e18f4e5b8f5f6fbb8cb08
networkd: fia xRequiredOperationalStateForOnline serializtion

In integration tests (for example TEST-85-NETWORK-NetworkctlTests)

LINK_OPERSTATE_RANGE_INVALID and required_for_online == -1 are serialized as
```
"RequiredForOnline": "true",
"RequiredOperationalStateForOnline": [null, null]
```
Such link should be reported as required_for_online=False and not
serialize nulls.

(cherry picked from commit 59d946ee6b3612ef2fd646055e39282b0e0189ff)
(cherry picked from commit 2cd1762a1f87096226a66a67e101a6a40295a21c)
src/network/networkd-json.c