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 rpad_ipv4_network #36523

Merged
merged 1 commit into from Sep 26, 2016
Merged

add rpad_ipv4_network #36523

merged 1 commit into from Sep 26, 2016

Conversation

silenius
Copy link
Contributor

What does this PR do?

Add a def rpad_ipv4_network(ip) function to salt.utils.network.

This function returns the original ip padded with zeros.

There are a lot of places where a "short" notation of a network ip address is found, and it can sometimes be useful (for example to validate through salt._compat.ipaddress.ip_network) to have the "full" version of the address.

What issues does this PR fix or reference?

None

Tests written?

No

@cachedout cachedout merged commit 0475677 into saltstack:develop Sep 26, 2016
@cachedout
Copy link
Contributor

Very nice. Thanks, @silenius

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

2 participants