diff --git a/manifests/iface.pp b/manifests/iface.pp index 62857bc..2af3747 100644 --- a/manifests/iface.pp +++ b/manifests/iface.pp @@ -1,8 +1,8 @@ define interfaces::iface ( $family, $method, $options=[], $auto=0, $allow_hotplug=0, $ifname='UNSET', $order='UNSET' ) { case $family { inet: { - if ! ($method in [loopback, static, manual, dhcp, bootp, ppp, wvdial]) { - fail('method parameter must be one of loopback, static, manual, dhcp, bootp, ppp or wvdial for family inet') + if ! ($method in [loopback, static, manual, dhcp, bootp, tunnel, ppp, wvdial, ipv4ll]) { + fail('method parameter must be one of loopback, static, manual, dhcp, bootp, tunnel, ppp, wvdial or ipv4ll for family inet') } } inet6: { diff --git a/spec/defines/iface_spec.rb b/spec/defines/iface_spec.rb index 644e378..64d273c 100644 --- a/spec/defines/iface_spec.rb +++ b/spec/defines/iface_spec.rb @@ -136,6 +136,6 @@ 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, dhcp, bootp, ppp or wvdial for family inet/) + }.to raise_error(Puppet::Error, /method parameter must be one of loopback, static, manual, dhcp, bootp, tunnel, ppp, wvdial or ipv4ll for family inet/) } end