puppetlabs/puppet — pull request #296 by daniel-pittman (2011-12-30 22:54:03+00:00)
Title: Bug/2.7.x/11499 better ip address validation for host type

The previous code was fairly lax in validation, and would allow a bunch of
invalid addresses through - as well as rejecting some legal, but uncommon,
IPv6 address types.

This adds substantial testing, especially around IPv6 addressing, and replaces
the older validation with new, fancy stuff that works for all the cases.

Signed-off-by: Daniel Pittman