Create a VirtualParameter in an Extension script?

Dan Morphis dan at milkcarton.com
Fri Oct 6 12:41:10 EDT 2017


V-Parameters don't search for devices. V-Parameters are for simplifying the
exposure of parameters.  Look at the Virtual Parameters
<https://github.com/zaidka/genieacs/wiki/Virtual-Parameters> wiki for
details on how to do fall back.

On Fri, Oct 6, 2017 at 3:08 AM, Sergio Fernández <sergio19932 at gmail.com>
wrote:

> Hi there,
>
> I would need to call an extension script, in order to access an "Optical
> ID" from a DB of the OLT. I would like to have a Virtual Parameter like
> VirtualParameter.ID that contains that Optical ID, but if the Optical ID
> cannot be found, then select a MAC or a Serial of the CPE, in order for the
> field to not to be empty.
>
> How would you do that? Because I would do it all in the VirtualParameter
> script, but how do I pass an argument with some identification from the ONT
> I want to search? And if I do it inside an Extension script, there is no
> option to declare() it.
>
> Thank you very much!
>
> Sergio Fernández Rubio - https://www.linkedin.com/in/sergiofdz/
> (+34) 687 016 994 <+34%20687%2001%2069%2094>
> CEO @ ACSdesk
> https://acsdesk.com
>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20171006/959d6b6f/attachment.html>


More information about the Users mailing list