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 64-bit MAC addresses, fixes #6341 #172

Conversation

treydock
Copy link
Member

Expands validation of MAC addresses to include 64bit MAC addresses. This is related to theforeman/foreman#1470.

@treydock
Copy link
Member Author

[test]

@dmitri-d
Copy link
Member

lgtm.

@domcleal
Copy link
Contributor

There's also a custom MAC validator over at modules/tftp/tftp_api.rb:11, would you mind updating it too please?

@treydock
Copy link
Member Author

@domcleal I've updated the PR to use a valid_mac? method that can be reused in other places (including the tftp_api). I also added a few tests for the Proxy::TFTP::Api class. What's added was just enough to test the MAC address validation and for me to try my hand at Rack unit tests.

@domcleal
Copy link
Contributor

domcleal commented Jul 2, 2014

Great tests, thanks!

Merged as 5f46b1b for Foreman 1.6.0 - cheers @treydock.

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.

3 participants