diff --git a/manifests/iface.pp b/manifests/iface.pp index 2af3747..5b0acd2 100644 --- a/manifests/iface.pp +++ b/manifests/iface.pp @@ -6,8 +6,8 @@ } } inet6: { - if ! ($method in [loopback, static, manual, v4tunnel]) { - fail('method parameter must be one of loopback, static, manual or v4tunnel for family inet6') + if ! ($method in [auto, loopback, static, manual, dhcp, v4tunnel, 6to4]) { + fail('method parameter must be one of auto, loopback, static, manual, dhcp, v4tunnel or 6to4 for family inet6') } } ipx: { diff --git a/spec/defines/iface_spec.rb b/spec/defines/iface_spec.rb index 64d273c..5230b92 100644 --- a/spec/defines/iface_spec.rb +++ b/spec/defines/iface_spec.rb @@ -114,7 +114,7 @@ it { expect { should contain_concat__fragment('interfaces::iface_eth0').with_target('/etc/network/interfaces') - }.to raise_error(Puppet::Error, /method parameter must be one of loopback, static, manual or v4tunnel for family inet6/) + }.to raise_error(Puppet::Error, /method parameter must be one of auto, loopback, static, manual, dhcp, v4tunnel or 6to4 for family inet6/) } end