Questions about provisions
Dan Morphis
dan at milkcarton.com
Tue Apr 4 06:27:39 EDT 2017
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 <zaid at genieacs.com> 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 <zaid at genieacs.com>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
More information about the Users
mailing list