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

Do not try to match/rename duplicated MAC of vlan (LP: #1888726) #166

Merged
merged 2 commits into from
Oct 27, 2020

Conversation

slyon
Copy link
Collaborator

@slyon slyon commented Oct 22, 2020

Description

Fix systemd-networkd misconfiguration; when matching on macaddr, if other interfaces in the system might have the same mac (e.g. bridge, vlan, etc), the match filtering must also filter which interface to match, e.g., besides the MACAddress= match it also needs (for example) one or more of:

  • Type=!vlan
  • Type=!bridge

PS: also cleaning up the test_vlans.py file a bit, while working on it.

Checklist

@slyon
Copy link
Collaborator Author

slyon commented Oct 23, 2020

Integration tests all passed.

@codecov-io
Copy link

codecov-io commented Oct 23, 2020

Codecov Report

Merging #166 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #166   +/-   ##
=======================================
  Coverage   98.88%   98.88%           
=======================================
  Files          48       48           
  Lines        6729     6737    +8     
=======================================
+ Hits         6654     6662    +8     
  Misses         75       75           
Impacted Files Coverage Δ
src/networkd.c 100.00% <100.00%> (ø)
tests/generator/base.py 100.00% <100.00%> (ø)
tests/generator/test_vlans.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fdcb3d4...00ab717. Read the comment docs.

@sil2100
Copy link
Collaborator

sil2100 commented Oct 26, 2020

Looking at it today!

Copy link
Collaborator

@sil2100 sil2100 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, thank you for this! Guess we forgot about that list there.

@sil2100 sil2100 merged commit 83c1c1c into master Oct 27, 2020
@sil2100 sil2100 deleted the slyon/lp-1888726 branch October 27, 2020 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants