How to create objects with specific parameters using provision scripts

Zaid Abdulla zaid at genieacs.com
Thu Apr 27 19:20:01 EDT 2017


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>


More information about the Users mailing list