Can't Create WANPPPConnection Object
Ebenezer Ejukorlem
eejukorlem at ipnxnigeria.net
Tue Feb 5 06:08:43 EST 2019
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.
More information about the Users
mailing list