Provisioning scripts

Zaid Abdulla zaid at genieacs.com
Wed Mar 8 14:16:24 EST 2017


On Wed, 2017-03-08 at 06:19 -0900, Dan Morphis wrote:
> First, can one script call another provisioning script (not external
> script)? Use case is I want to ensure that a CPE has a
> WANPPPConnection instance, and is configured with certain parameters
> before setting the credentials. The base parameters for the
> WANPPPConnection instance are the same for most CPEs, so I don't want
> to duplicate the config for each modem variant in various
> provisioning scripts.

You can't call a provision from another. This is a planned feature
though.

> Second, is there an easier way of declaring values on an instance
> than the approach I'm using?
> //Ensure we have a WANPPPConnection instance
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANP
> PPConnection.*", null, {path: 1});
> //Set the connection values
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANP
> PPConnection.*.Name", {value: now}, {value: "Internet"});
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANP
> PPConnection.*.ConnectionType", {value: now}, {value: "IP_Routed"});
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANP
> PPConnection.*.X_BROADCOM_COM_IfName", {value: now}, {value:
> "ppp0.1"});
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANP
> PPConnection.*.NATEnabled", {value: now}, {value: true});
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANP
> PPConnection.*.X_BROADCOM_COM_FirewallEnabled", {value: now}, {value:
> true});
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANP
> PPConnection.*.Enable", {value: now}, {value: true});
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANP
> PPConnection.*.PPPoEServiceName", {value: now}, {value:
> "broadband"});

No, sorry :) I don't see how it can be made easier. Do you have
something in mind?

-- 
Zaid Abdulla <zaid at genieacs.com>


More information about the Users mailing list