add missing import

This commit is contained in:
Oliver Gorwits
2015-04-26 22:01:28 +01:00
parent fb61805ca5
commit dadd7ba310
2 changed files with 11 additions and 16 deletions

View File

@@ -171,17 +171,14 @@ Regular Expression in YAML format which will match the device DNS name, e.g.:
=item * =item *
C<"model:regex"> - matched against the device model C<"property:regex"> - matched against a device property, such as C<model> or C<vendor>
=item *
C<"vendor:regex"> - matched against the device vendor
=back =back
To simply match all devices, use "C<any>" or IP Prefix "C<0.0.0.0/0>". All To simply match all devices, use "C<any>" or IP Prefix "C<0.0.0.0/0>".
regular expressions are anchored (that is, they must match the whole string). Property regular expressions are anchored (that is, they must match the whole
To match no devices we recommend an entry of "C<localhost>" in the setting. string). To match no devices we recommend an entry of "C<localhost>" in the
setting.
=cut =cut
@@ -225,17 +222,14 @@ Regular Expression in YAML format which will match the device DNS name, e.g.:
=item * =item *
C<"model:regex"> - matched against the device model C<"property:regex"> - matched against a device property, such as C<model> or C<vendor>
=item *
C<"vendor:regex"> - matched against the device vendor
=back =back
To simply match all devices, use "C<any>" or IP Prefix "C<0.0.0.0/0>". All To simply match all devices, use "C<any>" or IP Prefix "C<0.0.0.0/0>".
regular expressions are anchored (that is, they must match the whole string). Property regular expressions are anchored (that is, they must match the whole
To match no devices we recommend an entry of "C<localhost>" in the setting. string). To match no devices we recommend an entry of "C<localhost>" in the
setting.
=cut =cut

View File

@@ -5,6 +5,7 @@ use Dancer::Plugin::DBIC 'schema';
use Scalar::Util 'blessed'; use Scalar::Util 'blessed';
use NetAddr::IP::Lite ':lower'; use NetAddr::IP::Lite ':lower';
use App::Netdisco::Util::DNS 'hostname_from_ip';
use base 'Exporter'; use base 'Exporter';
our @EXPORT = (); our @EXPORT = ();