Hi all,
I am running v1.2.12 on Ubuntu 20.04 in a small lab scenario.
Here is my provision script:
const now = Date.now();
let serialNumber = declare(“DeviceID.SerialNumber”, {value: 1}).value[0];
let response = ext(“creds”, “getManagementCreds”, serialNumber);
setupBaseWanPppConnection();
return;
function setupBaseWanPppConnection() {
log('Create new WANConnectionDevice');
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*", null, {path: 1});
log('Refresh WANConnectionDevice node');
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.*", {path: now});
log('Create new WANPPPConnection');
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.*", null, {path: 1});
log('Refresh WANPPPConnection node');
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.*.*", {path: now});
log('Update WANPPPConnection');
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.1.Name", {value: now}, {value: "Internet"});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.1.ConnectionType", {value: now}, {value: "IP_Routed"});
log('Set VLAN ID 111 to WANPPPConnection');
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.1.X_HW_VLAN", {value: now}, {value: "111"});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.1.Username", {value: 1},
{value: response.username});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.1.Password", {value: 1},
{value: response.password});
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.1.NATEnabled", {value: now}, {value: true});
log('Enable WANPPPConnection');
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.*.WANPPPConnection.1.Enable", {value: now}, {value: true});
}
Here is my external script: creds.js
function getCreds(args, callback) {
let serialNumber = args[0];
let result = {
username: “exmile”,
password: serialNumber
};
callback(null, result);
}
exports.getManagementCreds = getCreds;
Everything works, except the VLAN. I have tried every combination I could find but the VLAN does not want to change to VLAN111.
Any idea what I’m missing here? It feels like I need a pair of fresh eyes cause these ones can’t find the issue.
Any help will be appreciated