<div dir="ltr">Look at provision scripts, and example of a provisioning workflow on the wiki. The documentation covers how to create the wanpppconnection instances.<div><br></div><div>-dan</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 5, 2019 at 2:08 AM Ebenezer Ejukorlem <<a href="mailto:eejukorlem@ipnxnigeria.net">eejukorlem@ipnxnigeria.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello All, I would appreciate some help in resolving this issue. I have been <br>
stuck on it for weeks now.<br>
<br>
So basically I am trying to automate the provisioning (PPPoE) of our <br>
customer CPEs (GPON ONTs)<br>
using provisioning scripts. I am using v1.1.2 of the Genieacs server. The <br>
provisioning script is<br>
run by a preset which is called on a the 0_BOOTSTRAP event.<br>
<br>
According to the vendor, the PPPoE credentials must be set on the object <br>
below:<br>
"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection.1"<br>
<br>
Challenge:<br>
On a factory reset or first boot up, the CPE only has the first instance of <br>
the WANIPConnection<br>
object in its data model (see below):<br>
<br>
InternetGatewayDevice.WANDevice<br>
InternetGatewayDevice.WANDevice.1<br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice<br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1<br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection<br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.Alias<br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnectionNumberOfEntries<br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnectionNumberOfEntries<br>
<br>
Forcing the CPE to create the "WANPPPConnection" object on the parent object <br>
instance<br>
"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1" using the code <br>
below does not work.<br>
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.*", null, <br>
{value: Date.now()}) //Refresh the object<br>
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.*", <br>
{path: Date.now()}, {path: 1}) //AddObject<br>
<br>
Weirdly, when I refresh the <br>
"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1" object instance <br>
from the GUI, The<br>
WANPPPConnection object instance shows up as show below:<br>
<br>
InternetGatewayDevice.WANDevice<br>
InternetGatewayDevice.WANDevice.1<br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice<br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1<br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection                                                                                                                 <br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.Alias<br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnectionNumberOfEntries<br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnectionNumberOfEntries<br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection<br>
<br>
after which I can then addObject from the GUI and set required parameters. <br>
Same behavior does not occur using<br>
the provisioning script.<br>
<br>
Also, creating multiple instances using the declare statement:<br>
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.*", <br>
{path: Date.now()}, {path: 3}) //AddObjects<br>
results in the "WANPPPConnection" object showing up only on the third <br>
"WANConnectionDevice.3" object instance.<br>
<br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3<br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection                                                                                                                         <br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.Alias<br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnectionNumberOfEntries<br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANPPPConnectionNumberOfEntries<br>
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANPPPConnection<br>
<br>
Unfortunately only this "WANConnectionDevice.1" can be used according to the <br>
vendor.<br>
<br>
Using the presets method to add the <br>
"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANPPPConnection" <br>
object does not work either.<br>
<br>
Any advice on what I can do to resolve this issue would be appreciated.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mailman/listinfo/users</a><br>
</blockquote></div>