Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing VLAN= from .network file and restarting systemd-networkd doesn't remove vlan from interface #9628

Closed
OtherSystems opened this issue Jul 17, 2018 · 2 comments

Comments

@OtherSystems
Copy link

systemd version the issue has been seen with

239-5

Used distribution

debian sid

Expected behaviour you didn't see

when removing the VLAN= line from a .network file, that the vlan gets removed from that interface.

Unexpected behaviour you saw

when removing the VLAN= line from the .network file for an interface, the vlan device did not get removed from the interface when restarting systemd-networkd

Steps to reproduce the problem
create a vlan in a .netdev file
add vlan to an interface by adding a VLAN= line its .network file
restart systemd-networkd
see vlan being added to the interface (ip link show)
remove VLAN= line from .network file of the interface
restart systemd-networkd
observe the vlan still being present on the interface (ip link show)

@ghost
Copy link

ghost commented Jul 18, 2018

The manual page of systemd-networkd says

This also means that when configuration is updated and systemd-networkd is restarted, netdev interfaces for which configuration was removed will not be dropped, and may need to be cleaned up manually.

I think what you reported is exactly the documented behavior.

@OtherSystems
Copy link
Author

You are correct. Initially it seemed unintuitive, but I can see the value of leaving manually configured stuff on it's own.

Sorry about that :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant