provisioning script not working

sisir tiwari sisir at vianet.com.np
Fri Jan 18 05:41:53 EST 2019


Hi all,

 

I am  having issue with  provisioning script to create new pppoe connection.

 

My script is as follows:

 

const now = Date.now();

declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConne
ction.*.*", {path: Date.now()});

declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.X_CT-COM_WA
NGponLinkConfig", {path: Date.now()});

declare
("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection",
null, {path: 1});

declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConne
ction.[ConnectionType:IP_Routed,X_D0542D_ServiceList:INTERNET,TransportType:
PPPoE,Username:hello12,Password:hello12,NATEnabled:true]", {path: 1}, {path:
1});

declare
("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1
.Enable", {value: now}, {value: true});

declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.X_CT-COM_WA
NGponLinkConfig.Enable", {value: now}, {value: true});

declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.X_CT-COM_WA
NGponLinkConfig.VLANIDMark", {value: now}, {value: "1234"});

commit(); 

 

This only refreshes the
InternetGatewayDevice.WANDevice.1.WANConnectionDevice.* tree but doesn't set
the parameters value.

I guess this is due to full chain doesn't exist in GenieACS's cache of the
device object model.

 

So how could I create new pppoe connection as below since I already have
three WANConnectionDevice as
"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.(1,2,3).WANIPConnecti
on.1.*"

 

InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.E
nable

InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.U
sername 

InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANPPPConnection.1.P
assword

 

Best Regards,

SISIR TIWARI

(NOC)



T: (+977) 01 4217555 

A: Jawalakhel, Lalitpur

W:  <http://www.vianet.com.np/> www.vianet.com.np



 

 <https://www.facebook.com/vianetnepal/>  <https://twitter.com/VianetFTTH>
<https://www.instagram.com/vianetftth/>
<https://www.youtube.com/channel/UCkw5lCX7AE2ujAhJici0TIQ/videos> 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20190118/777a7116/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 349 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20190118/777a7116/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 6452 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20190118/777a7116/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 554 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20190118/777a7116/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 712 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20190118/777a7116/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 2196 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20190118/777a7116/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 608 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20190118/777a7116/attachment-0011.png>


More information about the Users mailing list