Adds IPv6 support for interface_for_ip function
authorGilles Dubreuil <gilles@redhat.com>
Mon, 16 Nov 2015 05:55:28 +0000 (16:55 +1100)
committerGilles Dubreuil <gilles@redhat.com>
Tue, 15 Dec 2015 06:07:57 +0000 (17:07 +1100)
commit11a0619a290d64f3caa45435a23f3e503530087a
treec0e462d7f91537538b42b5587ab1feac8c440fdb
parentb94e93d8c822c0940e89ebfe47818351634f8cc2
Adds IPv6 support for interface_for_ip function

Proper interface matching when an IPv6 address is provided.

If Facter version used is < 3 then it adds the netmask6 facts as custom facts.

Fix bugs https://bugzilla.redhat.com/show_bug.cgi?id=1280523

Change-Id: Ide26ca1740dc12ea5f47a28f4cecacd6ef0b18f9
lib/facter/netmask_ipv6.rb [new file with mode: 0644]
lib/puppet/parser/functions/interface_for_ip.rb