Skip to content

Conversation

@toanju
Copy link
Contributor

@toanju toanju commented Oct 31, 2018

In case networkd is restarted this prevents a removal of an already existing IP
address that would be configured using networkd. With the proposed changes the
IP address will be kept on the interface without removing. This happens only on
physical hosts or VMs since networkd handles interface configuration slightly
different in containers.

@yuwata yuwata added the network label Nov 1, 2018
@toanju toanju force-pushed the fix-networkd-l3-loss branch 2 times, most recently from 239c8a4 to 2245d5b Compare November 2, 2018 08:28
@toanju toanju force-pushed the fix-networkd-l3-loss branch from 2245d5b to 3af0203 Compare November 6, 2018 10:30
@toanju
Copy link
Contributor Author

toanju commented Nov 6, 2018

I addressed the comments above, please have a look. I did not yet cover the routes so far.

Copy link
Member

@poettering poettering left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, just some minor coding style nitpicks

@toanju toanju force-pushed the fix-networkd-l3-loss branch from 3af0203 to fbfdeb0 Compare November 6, 2018 12:04
In case networkd is restarted this prevents a removal of an already existing IP
address that would be configured using networkd. With the proposed changes the
IP address will be kept on the interface without removing. This happens only on
physical hosts or VMs since networkd handles interface configuration slightly
different in containers.
@toanju toanju force-pushed the fix-networkd-l3-loss branch from fbfdeb0 to 30226d2 Compare November 6, 2018 12:26
In case networkd is restarted this prevents a removal of an already existing
route that would be configured using networkd. With the proposed changes the
route will be kept on the interface without removing. This happens only on
physical hosts or VMs since networkd handles interface configuration slightly
different in containers.
@toanju
Copy link
Contributor Author

toanju commented Nov 6, 2018

Added a commit to solve the same issue wrt. static routes.

@toanju toanju changed the title networkd: don't remove ip address networkd: don't remove ip address and route Nov 6, 2018
@toanju toanju changed the title networkd: don't remove ip address and route networkd: don't remove ip address or route Nov 6, 2018
@poettering poettering added the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Nov 6, 2018
@poettering
Copy link
Member

looks excellent! thanks!

@toanju
Copy link
Contributor Author

toanju commented Nov 6, 2018

Thanks for reviewing!

@poettering poettering merged commit a0ca258 into systemd:master Nov 6, 2018
keszybz pushed a commit to systemd/systemd-stable that referenced this pull request Jan 11, 2019
In case networkd is restarted this prevents a removal of an already existing IP
address that would be configured using networkd. With the proposed changes the
IP address will be kept on the interface without removing. This happens only on
physical hosts or VMs since networkd handles interface configuration slightly
different in containers.

cherry picked from systemd/systemd#10597
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed network

Development

Successfully merging this pull request may close these issues.

3 participants