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

Improve gen_netmask #56

Merged
merged 1 commit into from
Oct 6, 2014
Merged

Conversation

elyezer
Copy link
Contributor

@elyezer elyezer commented Oct 6, 2014

Add arguments to allow specify the CIDR range that the netmask should be
generated.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 9806aee on elyezer:improve-gen-netmask into 713949c on omaciel:master.

@omaciel
Copy link
Owner

omaciel commented Oct 6, 2014

@Ichimonji10 care to review?

@Ichimonji10
Copy link
Contributor

Much improved, @elyezer. Can I get a test like this?

self.assertEqual(u'0.0.0.0', gen_netmask(0, 0))
self.assertEqual(u'255.255.255.255', gen_netmask(32, 32))

The idea is simply to make sure that boundary cases work correctly.

@Ichimonji10
Copy link
Contributor

ACK pending comment

Add arguments to allow specify the CIDR range that the netmask should be
generated.
@Ichimonji10
Copy link
Contributor

Fixes #55.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling edcb4d7 on elyezer:improve-gen-netmask into 713949c on omaciel:master.

omaciel added a commit that referenced this pull request Oct 6, 2014
@omaciel omaciel merged commit 5c0d583 into omaciel:master Oct 6, 2014
@elyezer elyezer deleted the improve-gen-netmask branch October 6, 2014 21:29
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.

None yet

4 participants