User PPPoE

Dan Morphis dan at milkcarton.com
Wed Oct 4 14:12:37 EDT 2017


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/20171004/f2325399/attachment.html>


More information about the Users mailing list