librenms/librenms — pull request #257 by laf (2014-06-24 15:20:41+00:00)
Title: Created validate_device_id() function

You can use this to check that a device id is valid.