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

bridge: various fixes #62

Merged
merged 1 commit into from
Aug 30, 2017
Merged

Conversation

squeed
Copy link
Member

@squeed squeed commented Aug 25, 2017

  • Don't set the MAC, send gratuitous arp instead
  • Set the bridge's MAC to itself
  • Only disable DAD when necessary

Fixes: #60 #59 #52

@rosenhouse
Copy link
Contributor

Is there any way we can add test coverage for these changes?

I've been thinking about refactoring this plugin, but its scarier to attempt when there are important features that might break while the tests remain green.

@squeed
Copy link
Member Author

squeed commented Aug 25, 2017

Yeah, good point. Most of this should be testable.

* Don't set the MAC, send gratuitous arp instead
* Set the bridge's MAC to itself
* Only disable DAD when necessary
@squeed
Copy link
Member Author

squeed commented Aug 28, 2017

@rosenhouse added a test for the "stable mac" case. Not sure how to reasonably test the other changes.

@rosenhouse
Copy link
Contributor

@squeed looks like it went red

@squeed
Copy link
Member Author

squeed commented Aug 29, 2017

Once #56 is merged we should see fewer test failures.

A lot of these tests are dancing around with namespaces, making them non-deterministic.

@rosenhouse
Copy link
Contributor

Yeah, I don't see how to add functional tests either. (all the more reason to refactor to a more dependency-injected style where we can have unit tests of the application-object).

LGTM

@rosenhouse rosenhouse merged commit b49379d into containernetworking:master Aug 30, 2017
@squeed squeed deleted the bridge-fixes branch November 17, 2017 13:03
phoracek pushed a commit to phoracek/containernetworking-plugins that referenced this pull request Mar 21, 2023
…istency-openshift-4.11-ose-containernetworking-plugins

Updating ose-containernetworking-plugins images to be consistent with ART
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bridge: mac address unstable for v6-only bridges
2 participants