Hi Dan,
thank you for the reminder. I already have a custom command to do
downloads via presets from which I can borrow the relevant code.
Greetings,
Oliver
Am 04.04.2017 12:27, schrieb Dan Morphis:
You could use an extension script to query the NBI and return the file
name for the given OUI/product class.
-dan
On Apr 4, 2017, at 12:56 AM, Zaid Abdulla <[email protected]> wrote:
On Tue, 2017-04-04 at 10:30 +0200, Oliver Kraitschy wrote:
can I query the metadata of the files in the mongodb from within a
provision script to select a file based on version? Or how would you
implement a download based on the file version (and corresponding to
the cpe oui and product class)?
You can't query the files metadata from a provision script. I just
keep
the current version number and the filename in the script itself and
modify the script whenever there's a new firmware or config file.
--
Zaid Abdulla <[email protected]>
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users