summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-06-19 10:55:13 -0700
committerChristian Poessinger <christian@poessinger.com>2019-07-23 22:28:43 +0200
commit23fe16920c85b486bb4886ff1c78bc9fd49cd2e3 (patch)
tree7c27b112a05e3fa05d7a99bb6184cf350d3a2acb /src
parentf54829bd7710509655f28ec21482d1010c11ec9a (diff)
downloadvyos-1x-23fe16920c85b486bb4886ff1c78bc9fd49cd2e3.tar.gz
vyos-1x-23fe16920c85b486bb4886ff1c78bc9fd49cd2e3.zip
[wireguard] T1425 - assign a /31 address on Wireguard interface
- added a validator for checking if the address is any cidr noted address (cherry picked from commit 2ee0eff1bd04ef02b0769341eee22543f8011b68)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/validators/cidr3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/validators/cidr b/src/validators/cidr
new file mode 100755
index 000000000..815aa8ba1
--- /dev/null
+++ b/src/validators/cidr
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ipaddrcheck --is-any-cidr $1