Merge pull request #242191 from tie/systemd-required-for-online-range
This commit is contained in:
@@ -517,7 +517,10 @@ let
|
|||||||
(assertValueOneOf "Unmanaged" boolValues)
|
(assertValueOneOf "Unmanaged" boolValues)
|
||||||
(assertInt "Group")
|
(assertInt "Group")
|
||||||
(assertRange "Group" 0 2147483647)
|
(assertRange "Group" 0 2147483647)
|
||||||
(assertValueOneOf "RequiredForOnline" (boolValues ++ [
|
(assertValueOneOf "RequiredForOnline" (boolValues ++ (
|
||||||
|
let
|
||||||
|
# https://freedesktop.org/software/systemd/man/networkctl.html#missing
|
||||||
|
operationalStates = [
|
||||||
"missing"
|
"missing"
|
||||||
"off"
|
"off"
|
||||||
"no-carrier"
|
"no-carrier"
|
||||||
@@ -527,7 +530,11 @@ let
|
|||||||
"degraded"
|
"degraded"
|
||||||
"enslaved"
|
"enslaved"
|
||||||
"routable"
|
"routable"
|
||||||
]))
|
];
|
||||||
|
operationalStateRanges = concatLists (imap0 (i: min: map (max: "${min}:${max}") (drop i operationalStates)) operationalStates);
|
||||||
|
in
|
||||||
|
operationalStates ++ operationalStateRanges
|
||||||
|
)))
|
||||||
(assertValueOneOf "RequiredFamilyForOnline" [
|
(assertValueOneOf "RequiredFamilyForOnline" [
|
||||||
"ipv4"
|
"ipv4"
|
||||||
"ipv6"
|
"ipv6"
|
||||||
|
|||||||
Reference in New Issue
Block a user