Skip to content

networkd network module's linkConfig is missing the ActivationPolicy option #134919

@berbiche

Description

@berbiche

Describe the bug

https://www.freedesktop.org/software/systemd/man/systemd.network.html#ActivationPolicy=

The ActivationPolicy option is missing from the possible options for systemd.network.networks.<name>.linkConfig.

network = {
sectionLink = checkUnitConfig "Link" [
(assertOnlyFields [
"MACAddress"
"MTUBytes"
"ARP"
"Multicast"
"AllMulticast"
"Unmanaged"
"RequiredForOnline"
])
(assertMacAddress "MACAddress")
(assertByteFormat "MTUBytes")
(assertValueOneOf "ARP" boolValues)
(assertValueOneOf "Multicast" boolValues)
(assertValueOneOf "AllMulticast" boolValues)
(assertValueOneOf "Unmanaged" boolValues)
(assertValueOneOf "RequiredForOnline" (boolValues ++ [
"missing"
"off"
"no-carrier"
"dormant"
"degraded-carrier"
"carrier"
"degraded"
"enslaved"
"routable"
]))
];

Steps To Reproduce

N/A

Expected behavior

Being able to use linkConfig.ActivationPolicy = "manual" on a wireguard network.

Screenshots

N/A

Additional context

N/A

Notify maintainers

@flokli @rnhmjoj

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
Irrelevant

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
- systemd.network.networks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions