Can't Create WANPPPConnection Object

Dan Morphis dan at milkcarton.com
Wed Feb 6 12:21:29 EST 2019


Look at provision scripts, and example of a provisioning workflow on the
wiki. The documentation covers how to create the wanpppconnection instances.

-dan

On Tue, Feb 5, 2019 at 2:08 AM Ebenezer Ejukorlem <
eejukorlem at ipnxnigeria.net> wrote:

> Hello All, I would appreciate some help in resolving this issue. I have
> been
> stuck on it for weeks now.
>
> So basically I am trying to automate the provisioning (PPPoE) of our
> customer CPEs (GPON ONTs)
> using provisioning scripts. I am using v1.1.2 of the Genieacs server. The
> provisioning script is
> run by a preset which is called on a the 0_BOOTSTRAP event.
>
> According to the vendor, the PPPoE credentials must be set on the object
> below:
>
> "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1"
>
> Challenge:
> On a factory reset or first boot up, the CPE only has the first instance
> of
> the WANIPConnection
> object in its data model (see below):
>
> InternetGatewayDevice.WANDevice
> InternetGatewayDevice.WANDevice.1
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.Alias
>
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnectionNumberOfEntries
>
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnectionNumberOfEntries
>
> Forcing the CPE to create the "WANPPPConnection" object on the parent
> object
> instance
> "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1" using the code
> below does not work.
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.*", null,
> {value: Date.now()}) //Refresh the object
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.*",
>
> {path: Date.now()}, {path: 1}) //AddObject
>
> Weirdly, when I refresh the
> "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1" object instance
> from the GUI, The
> WANPPPConnection object instance shows up as show below:
>
> InternetGatewayDevice.WANDevice
> InternetGatewayDevice.WANDevice.1
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection
>
>
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.Alias
>
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnectionNumberOfEntries
>
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnectionNumberOfEntries
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection
>
> after which I can then addObject from the GUI and set required parameters.
> Same behavior does not occur using
> the provisioning script.
>
> Also, creating multiple instances using the declare statement:
> declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.*",
>
> {path: Date.now()}, {path: 3}) //AddObjects
> results in the "WANPPPConnection" object showing up only on the third
> "WANConnectionDevice.3" object instance.
>
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection
>
>
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.Alias
>
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnectionNumberOfEntries
>
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANPPPConnectionNumberOfEntries
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANPPPConnection
>
> Unfortunately only this "WANConnectionDevice.1" can be used according to
> the
> vendor.
>
> Using the presets method to add the
> "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection"
> object does not work either.
>
> Any advice on what I can do to resolve this issue would be appreciated.
> _______________________________________________
> 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/20190206/517daa12/attachment.html>


More information about the Users mailing list