Skip to content

networkd: add option to prune addresses #780

@LadyNamedLaura

Description

@LadyNamedLaura

It would be nice to be able to configure networkd to remove all addresses that aren't managed by networkd.

This would be useful in combination with configmanagement systems, where they just need to write the .network files, and restart networkd if they were changed.

Example:

[Network]
PruneAddresses=yes
Address=1.2.3.4/24
LinkLocalAddressing=no
...

this would remove any other address from the matched interface, including linklocal addresses (because LinkLocalAddressing is disabled)

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFE 🎁Request for Enhancement, i.e. a feature requestnetwork

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions