summaryrefslogtreecommitdiff
path: root/types/compat/ipv4.pp
diff options
context:
space:
mode:
Diffstat (limited to 'types/compat/ipv4.pp')
-rw-r--r--types/compat/ipv4.pp2
1 files changed, 2 insertions, 0 deletions
diff --git a/types/compat/ipv4.pp b/types/compat/ipv4.pp
new file mode 100644
index 0000000..1d72ebd
--- /dev/null
+++ b/types/compat/ipv4.pp
@@ -0,0 +1,2 @@
+# Emulate the validate_ipv4_address and is_ipv4_address functions
+type Stdlib::Compat::Ipv4 = Pattern[/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/]