summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Meusel <tim@bastelfreak.de>2017-07-15 11:21:08 +0200
committerTim Meusel <tim@bastelfreak.de>2017-07-15 11:21:08 +0200
commitc9370f4e3ae97b1e752713102a98af2979b1e9be (patch)
tree4461e9279ee5bc88b18aafafe0b8c6cd042f7ee4
parent596878a7bc1fd4a64da89c5c760accb3e8178ec1 (diff)
add type for MAC address
-rw-r--r--types/mac.pp2
1 files changed, 2 insertions, 0 deletions
diff --git a/types/mac.pp b/types/mac.pp
new file mode 100644
index 0000000..4103574
--- /dev/null
+++ b/types/mac.pp
@@ -0,0 +1,2 @@
+# A type for a MAC address
+type Stdlib::MAC = Pattern[/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/]