Skip to content

Commit 8ed8ab3

Browse files
committed
Add and fix data types in network::if::none
1 parent d6eafd8 commit 8ed8ab3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

manifests/if/none.pp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@
3030
# Copyright (C) 2011 Mike Arnold, unless otherwise noted.
3131
#
3232
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
3939
) {
4040
if ! is_mac_address($macaddress) and ($macaddress != 'unmanaged') {
4141
# Strip off any tailing VLAN (ie eth5.90 -> eth5).
4242
$title_clean = regsubst($title,'^(\w+)\.\d+$','\1')
4343
$macaddy = getvar("::macaddress_${title_clean}")
4444
} elsif $macaddress == 'unmanaged' {
45-
$macaddy = ''
45+
$macaddy = undef
4646
} else {
4747
$macaddy = $macaddress
4848
}

0 commit comments

Comments
 (0)