{"action":"closed","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/780","repository_url":"https://api.github.com/repos/systemd/systemd","labels_url":"https://api.github.com/repos/systemd/systemd/issues/780/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/780/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/780/events","html_url":"https://github.com/systemd/systemd/issues/780","id":98008713,"number":780,"title":"networkd: add option to prune addresses","user":{"login":"SimonPe","id":595410,"avatar_url":"https://avatars.githubusercontent.com/u/595410?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonPe","html_url":"https://github.com/SimonPe","followers_url":"https://api.github.com/users/SimonPe/followers","following_url":"https://api.github.com/users/SimonPe/following{/other_user}","gists_url":"https://api.github.com/users/SimonPe/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonPe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonPe/subscriptions","organizations_url":"https://api.github.com/users/SimonPe/orgs","repos_url":"https://api.github.com/users/SimonPe/repos","events_url":"https://api.github.com/users/SimonPe/events{/privacy}","received_events_url":"https://api.github.com/users/SimonPe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/systemd/systemd/labels/network","name":"network","color":"fad8c7"},{"url":"https://api.github.com/repos/systemd/systemd/labels/RFE","name":"RFE","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-29T19:13:49Z","updated_at":"2016-02-22T22:56:24Z","closed_at":"2016-02-22T22:56:24Z","body":"It would be nice to be able to configure networkd to remove all addresses that aren't managed by networkd.\r\n\r\nThis would be useful in combination with configmanagement systems, where they just need to write the .network files, and restart networkd if they were changed.\r\n\r\nExample:\r\n```\r\n[Network]\r\nPruneAddresses=yes\r\nAddress=1.2.3.4/24\r\nLinkLocalAddressing=no\r\n...\r\n```\r\nthis would remove any other address from the matched interface, including linklocal addresses (because LinkLocalAddressing is disabled)"}}