Index: nodes/get-a-ils.pl
===================================================================
--- nodes/get-a-ils.pl	(revision 8181)
+++ nodes/get-a-ils.pl	(revision 8182)
@@ -1,3 +1,12 @@
 #!/usr/bin/env perl
+
+# Set some vars
+
+# Filter on netmask
+$MASK = $ARGV[0];
+# Otherwise return all.
+if ( ! $MASK ) {
+  $MASK = ".*";
+}
 
 # Print the header
@@ -86,5 +95,6 @@
 
         # Match the current ip of node/if with the ip specified in the search
-        if ($il_ip eq $search) {
+        # Match the netmask specified
+        if (($il_ip eq $search) && ($il_mask =~ /$MASK/)) {
           return $il_node;
         }
