User PPPoE
Jose Vela Delgado
josevelacisco at gmail.com
Thu Oct 5 04:32:51 EDT 2017
Thank you very much Dan for your prompt response.
This I have done:
1. I created a virtual parameter with the first script you told me.
2. I have created a provision, called "Refresh-PPPoE" with the second script you told me.
3. Finally I have created a Preset with the name "Refresh-PPPoE" so that it calls the provision every time there is a 2 PERIODIC event.
Have I done well? What is the next step to see that parameter in the GenieACS?
A greeting.
Enviado desde Correo para Windows 10
De: Dan Morphis
Enviado: miércoles, 4 de octubre de 2017 20:12
Para: Community support for GenieACS users
Asunto: Re: User PPPoE
Create a v-param called 'pppoeUsername' with this script:
let username = 'UNKNOWN';
let igd = declare("InternetGatewayDevice.WANDevice.*.WANConnectionDevice.*.WANPPPConnection.*.Username", {value: 1});
if (igd.size) {
for (let p of igd) {
if (p.value[0]) {
username = p.value[0];
break;
}
}
}
return {writable: false, value: [username, "xsd:string"]};
Finally, in what ever script you use to set the PPPoE Username field, add this:
declare("VirtualParameters.pppoeUsername", {value: Date.now()}); //Force the pppoeUsername vparam to update
-dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20171005/198c1978/attachment-0001.html>
More information about the Users
mailing list