How to create objects with specific parameters using provision scripts

Dan Morphis dan at milkcarton.com
Fri Apr 28 11:54:10 EDT 2017


Thank you for help! I will update the documentation!

On Thu, Apr 27, 2017 at 3:20 PM, Zaid Abdulla <zaid at genieacs.com> wrote:

> On Tue, 2017-04-25 at 08:50 -0800, Dan Morphis wrote:
> > declare('InternetGatewayDevice.X_BROADCOM_COM_IPAddrAccCtrl.X_BROADCO
> > M_COM_IPAddrAccCtrlListCfg.[SourceIPAddress:192.168.1.0].SourceIpAddr
> > ess', {value: now}, {value: '192.168.1.0'});
>
> This does nothing :) The declared value is already set since you're
> filtering by it in your alias. Also there's a typo in the name
> SourceIpAddress (P should be uppercase like in alias).
>
> You may also want to specify path value in your declaration to create
> the instance object if it doesn't already exist. Here's a more compact
> way of doing this:
>
> declare('InternetGatewayDevice.X_BROADCOM_COM_IPAddrAccCtrl.X_BROADCOM_
> COM_IPAddrAccCtrlListCfg.[SourceIPAddress:192.168.1.0SourceNetMask:255.
> 255.255.0]', {path: now}, {path: 1});
>
> --
> Zaid Abdulla <zaid at genieacs.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/20170428/43bc81a4/attachment-0001.html>


More information about the Users mailing list