summaryrefslogtreecommitdiff
path: root/src/validators/ipv4-prefix
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-05-16 02:33:11 +0200
committerDaniil Baturin <daniil@baturin.org>2018-05-16 02:33:11 +0200
commit7445d2bfed62a47c2182ead5bc556efdca7597c4 (patch)
tree4252d9966461c0742476c71be57445156feb23bb /src/validators/ipv4-prefix
parent3666ab2b4ed251718c6db549d273ef676bb77c2c (diff)
downloadvyos-1x-7445d2bfed62a47c2182ead5bc556efdca7597c4.tar.gz
vyos-1x-7445d2bfed62a47c2182ead5bc556efdca7597c4.zip
T642: add validators for common network address checking cases.
Diffstat (limited to 'src/validators/ipv4-prefix')
-rwxr-xr-xsrc/validators/ipv4-prefix3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/validators/ipv4-prefix b/src/validators/ipv4-prefix
new file mode 100755
index 000000000..8ec8a2c45
--- /dev/null
+++ b/src/validators/ipv4-prefix
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ipaddrcheck --is-ipv4-net $1