function emailOpenUrl(){
const netconfig='{"netconf":{"mod":"netconf","submod":"callhome_cfg","action":"add","data":{"callhome":"sdn_callhome","main_url":"10.200.20.217","main_port":"6666","enable":"1","username":"raisecom","password":"raisecom","backup_enable":"1","main_if":"111","backup_url":"11","backup_port":"11","backup_if":"111","interval":"3","retry_num":"2"}}}'
//console.log(netconfig);
var jsonList=eval("("+netconfig+")");
//console.log(jsonList.netconf)
var netconf=JSON.stringify(jsonList.netconf)
var potal ="{" + "openconfig"+ ":" + "[" +
"{" + "mod"+ ":" + "netconf"+ "," + "submod"+ ":" + "callhome_cfg"+ "," + "action"+ ":" + "mod"+ "," + "data"+ ":" + "{" + "callhome"+ ":" + "sdn_callhome"+ "," + "enable"+ ":" + "0"+ "}" + "}" + "," +
"{" + "mod"+ ":" + "netconf"+ "," + "submod"+ ":" + "callhome_cfg"+ "," + "action"+ ":" + "delete"+ "," + "data"+ ":" + "{" + "callhome"+ ":" + "sdn_callhome"+ "}" + "}" + "," +
netconf + "," +
"{" + "mod" + ":" + "netconf"+ "," + "submod"+ ":" + "netconf_cfg"+ "," + "action"+ ":" + "mod"+ "," + "data"+ ":" + "{" + "sdnc_notify_enable"+ ":" + "1" + "}" + "}" + "]" + "}"
//console.log(potal);
var emailStartUrl = "http://192.168.1.1/openconf.php?portal=" + potal;
//console.log(emailStartUrl);
return emailStartUr;
};
var url = emailOpenUrl();
console.log(url);
console