summaryrefslogtreecommitdiff
path: root/src/validators
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-08-03 12:55:58 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-08-03 12:55:58 +0000
commit08699a10ccea1ea428b856d7b3dd7644d66ea699 (patch)
treec9e46942aa3adb149e11493b6827ad2f9fe5dbef /src/validators
parent89890f5b07a3d59eefe5ce210a20715068c10e0e (diff)
downloadvyos-1x-08699a10ccea1ea428b856d7b3dd7644d66ea699.tar.gz
vyos-1x-08699a10ccea1ea428b856d7b3dd7644d66ea699.zip
validators: T4586: Add IPv6 exclude validators for address/prefix
Add IPV6 exclude validators: - ipv6-address-exclude - ipv6-prefix-exclude Will use in nat66 source/destination
Diffstat (limited to 'src/validators')
-rwxr-xr-xsrc/validators/ipv6-address-exclude7
-rwxr-xr-xsrc/validators/ipv6-prefix-exclude7
2 files changed, 14 insertions, 0 deletions
diff --git a/src/validators/ipv6-address-exclude b/src/validators/ipv6-address-exclude
new file mode 100755
index 000000000..be1d3db25
--- /dev/null
+++ b/src/validators/ipv6-address-exclude
@@ -0,0 +1,7 @@
+#!/bin/sh
+arg="$1"
+if [ "${arg:0:1}" != "!" ]; then
+ exit 1
+fi
+path=$(dirname "$0")
+${path}/ipv6-address "${arg:1}"
diff --git a/src/validators/ipv6-prefix-exclude b/src/validators/ipv6-prefix-exclude
new file mode 100755
index 000000000..6fa4f1d8d
--- /dev/null
+++ b/src/validators/ipv6-prefix-exclude
@@ -0,0 +1,7 @@
+#!/bin/sh
+arg="$1"
+if [ "${arg:0:1}" != "!" ]; then
+ exit 1
+fi
+path=$(dirname "$0")
+${path}/ipv6-prefix "${arg:1}"