X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fstdlib%2Ftypes%2Fmac.pp;fp=3rdparty%2Fmodules%2Fstdlib%2Ftypes%2Fmac.pp;h=64459572afd51b53fdc61cdf6c67a34c6995428d;hb=131e09855e065be940e104d9ab0f18940cc76257;hp=41035746f520411fb32ed359b996f5eb0ed48eb6;hpb=407d322498f4fde815abf381007fbecfe5c10b2b;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/stdlib/types/mac.pp b/3rdparty/modules/stdlib/types/mac.pp index 41035746f..64459572a 100644 --- a/3rdparty/modules/stdlib/types/mac.pp +++ b/3rdparty/modules/stdlib/types/mac.pp @@ -1,2 +1,5 @@ # A type for a MAC address -type Stdlib::MAC = Pattern[/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/] +type Stdlib::MAC = Pattern[ + /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/, + /^([0-9A-Fa-f]{2}[:-]){19}([0-9A-Fa-f]{2})$/ +]