summaryrefslogtreecommitdiff
path: root/contrib/sevilNatas/subnet_script
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/sevilNatas/subnet_script')
-rw-r--r--contrib/sevilNatas/subnet_script11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/sevilNatas/subnet_script b/contrib/sevilNatas/subnet_script
new file mode 100644
index 0000000..378bf04
--- /dev/null
+++ b/contrib/sevilNatas/subnet_script
@@ -0,0 +1,11 @@
+#!/bin/sh
+# READ ME:
+# If subnet is taken it will return the desired AS#
+# else it will not return the desired subnet
+echo -e "Enter path to resdb:\c"
+read resdb
+cd $resdb
+echo -e "Enter desired subnet:\c"
+read subnet
+cat db/ip/01/*/*/cidr | grep "^$subnet\$"
+