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

Add support for use_ipvlan #1261

Merged
merged 3 commits into from May 13, 2019

Conversation

Projects
None yet
1 participant
@pqarmitage
Copy link
Collaborator

commented May 13, 2019

This is to provide a workaround for issue #1170 where systemd-networkd removes the IP addresses added by keepalived. It may also have other uses.

pqarmitage added some commits May 13, 2019

Add support for use_ipvlan (use an ipvlan i/f similar to use_vmac)
Issue #1170 identified that use_vmac didn't work with systemd-networkd
since systemd-networkd was removing IP addresses created by keepalived
(and any other application). It was discovered that systemd-networkd
did not remove IP addresses from ipvlans.

This commit adds support for ipvlans, but to work around the problem,
and because it might have other uses.

Systemd commit - systemd/systemd#12511 has added
configuration options to stop systemd-networkd removing IP addresses
added by other applications, but it is not merged yet, and it will be a
while before all the distros merge it.

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Fix building with ipvlans before IFLA_IPVLAN_FLAGS was defined
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Default IPVLANs to bridge mode
We shouldn't change the behaviour if a kernel is upgraded, so
default to the original mode supported.

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>

@pqarmitage pqarmitage merged commit f29d919 into acassen:master May 13, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.