File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 30
30
# Copyright (C) 2011 Mike Arnold, unless otherwise noted.
31
31
#
32
32
define network::if::none (
33
- $ensure ,
34
- $macaddress = ' ' ,
35
- $userctl = false ,
36
- $mtu = ' ' ,
37
- $ethtool_opts = ' ' ,
38
- $linkdelay = ' '
33
+ Enum['up', 'down'] $ensure ,
34
+ Optional[Stdlib::MAC] $macaddress = undef ,
35
+ Boolean $userctl = false ,
36
+ Optional[String] $mtu = undef ,
37
+ Optional[String] $ethtool_opts = undef ,
38
+ Optional[String] $linkdelay = undef
39
39
) {
40
40
if ! is_mac_address($macaddress ) and ($macaddress != ' unmanaged' ) {
41
41
# Strip off any tailing VLAN (ie eth5.90 -> eth5).
42
42
$title_clean = regsubst($title ,' ^(\w +)\.\d +$' ,' \1 ' )
43
43
$macaddy = getvar(" ::macaddress_${title_clean} " )
44
44
} elsif $macaddress == ' unmanaged' {
45
- $macaddy = ' '
45
+ $macaddy = undef
46
46
} else {
47
47
$macaddy = $macaddress
48
48
}
You can’t perform that action at this time.
0 commit comments