Hello. I’m new to GenieACS, trying to learn how it works. I’m experimenting on Huawei HG8546M ONT now. I’ve configured the OLT to create TR-069 WAN session on the ont automatically, via OMCI and it works. Now I’m trying to write a simple provisioning script, started after factory reset, which creates INTERNET WAN session on 2011 VLAN and sets some SSID and wifi passphrase. Generally, the WIFI setup part works every time, but my WAN session is sometimes created, sometimes not. Here’s WAN part of my script (based on this forum) :
declare(“InternetGatewayDevice.WANDevice.1.WANConnectionDevice.
”, null, {path: 2});
let values = {
Name: “2_INTERNET_2011”,
X_HW_SERVICELIST: “INTERNET”,
X_HW_VLAN: 2011,
ConnectionType: “IP_Routed”,
NATEnabled: true,
AddressingType: “DHCP”
};
let basePath = “InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANIPConnection”;
const path = basePath + ‘.[’ + Object.keys(values).map(key => key + ‘:’ + values[key]).join(‘,’) + ‘]’;
declare(path, {path: 1}, {path: 1});
When my WAN session is not created, there’s also nothing about it in device’s logs.
My second, minor problem is that I still have the following error despite setting cwmp.datetimeMilliseconds to false in my config.
faultCode: “9002”
faultString: Internal error
setParameterValuesFault: null
Does anyone know what am I doing wrong?
Regards