summaryrefslogtreecommitdiff
path: root/src/validators/interface-address
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-05-14 03:16:44 +0200
committerDaniil Baturin <daniil@baturin.org>2018-05-14 03:16:44 +0200
commit9a6320744d21416d1f1eb3a3ba168cf54ef59727 (patch)
tree8078418072c7f78eaccdd90bb1a8f34431233ab2 /src/validators/interface-address
parentb58cf978599da16ca685f2b83b555ab53dde3071 (diff)
downloadvyos-1x-9a6320744d21416d1f1eb3a3ba168cf54ef59727.tar.gz
vyos-1x-9a6320744d21416d1f1eb3a3ba168cf54ef59727.zip
Add some ipaddrcheck-based IP validators.
Diffstat (limited to 'src/validators/interface-address')
-rwxr-xr-xsrc/validators/interface-address3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/validators/interface-address b/src/validators/interface-address
new file mode 100755
index 000000000..4c203956b
--- /dev/null
+++ b/src/validators/interface-address
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ipaddrcheck --is-ipv4-host $1 || ipaddrcheck --is-ipv6-host $1