diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-05-16 02:33:11 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-05-16 02:33:11 +0200 |
commit | 7445d2bfed62a47c2182ead5bc556efdca7597c4 (patch) | |
tree | 4252d9966461c0742476c71be57445156feb23bb /src | |
parent | 3666ab2b4ed251718c6db549d273ef676bb77c2c (diff) | |
download | vyos-1x-7445d2bfed62a47c2182ead5bc556efdca7597c4.tar.gz vyos-1x-7445d2bfed62a47c2182ead5bc556efdca7597c4.zip |
T642: add validators for common network address checking cases.
Diffstat (limited to 'src')
-rwxr-xr-x | src/validators/ip-address | 3 | ||||
-rwxr-xr-x | src/validators/ip-host | 3 | ||||
-rwxr-xr-x | src/validators/ip-prefix | 3 | ||||
-rwxr-xr-x | src/validators/ipv4-host | 3 | ||||
-rwxr-xr-x | src/validators/ipv4-prefix | 3 | ||||
-rwxr-xr-x | src/validators/ipv6-host | 3 | ||||
-rwxr-xr-x | src/validators/ipv6-prefix | 3 |
7 files changed, 21 insertions, 0 deletions
diff --git a/src/validators/ip-address b/src/validators/ip-address new file mode 100755 index 000000000..51fb72c85 --- /dev/null +++ b/src/validators/ip-address @@ -0,0 +1,3 @@ +#!/bin/sh + +ipaddrcheck --is-any-single $1 diff --git a/src/validators/ip-host b/src/validators/ip-host new file mode 100755 index 000000000..f2906e8cf --- /dev/null +++ b/src/validators/ip-host @@ -0,0 +1,3 @@ +#!/bin/sh + +ipaddrcheck --is-any-host $1 diff --git a/src/validators/ip-prefix b/src/validators/ip-prefix new file mode 100755 index 000000000..e58aad395 --- /dev/null +++ b/src/validators/ip-prefix @@ -0,0 +1,3 @@ +#!/bin/sh + +ipaddrcheck --is-any-net $1 diff --git a/src/validators/ipv4-host b/src/validators/ipv4-host new file mode 100755 index 000000000..f42feffa4 --- /dev/null +++ b/src/validators/ipv4-host @@ -0,0 +1,3 @@ +#!/bin/sh + +ipaddrcheck --is-ipv4-host $1 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 diff --git a/src/validators/ipv6-host b/src/validators/ipv6-host new file mode 100755 index 000000000..f7a745077 --- /dev/null +++ b/src/validators/ipv6-host @@ -0,0 +1,3 @@ +#!/bin/sh + +ipaddrcheck --is-ipv6-host $1 diff --git a/src/validators/ipv6-prefix b/src/validators/ipv6-prefix new file mode 100755 index 000000000..e43616350 --- /dev/null +++ b/src/validators/ipv6-prefix @@ -0,0 +1,3 @@ +#!/bin/sh + +ipaddrcheck --is-ipv6-net $1 |