summaryrefslogtreecommitdiff
path: root/src/validators/mac-address-exclude
diff options
context:
space:
mode:
Diffstat (limited to 'src/validators/mac-address-exclude')
-rwxr-xr-xsrc/validators/mac-address-exclude2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/validators/mac-address-exclude b/src/validators/mac-address-exclude
new file mode 100755
index 000000000..c44913023
--- /dev/null
+++ b/src/validators/mac-address-exclude
@@ -0,0 +1,2 @@
+#!/usr/bin/env sh
+${vyos_libexec_dir}/validate-value --regex "!([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})" --value "$1"