i install easycwmp in openwrt fot zbt-we826 i config easycwmp for ACS software and tcp sended to ACS but easycwmp not send WANIPConnection.1.ExternalIPAddress i search and find that i should edite wan_device script in this links : http://support.easycwmp.org/view.php?id=13http://support.easycwmp.org/view.php?id=110
i do this guids but this problem not solve this is compelete script :https://github.com/pivasoftware/easycwmp/blob/master/ext/openwrt/scripts/functions/tr098/wan_device
this code is wan ip functions that i should change
wan_device_browse_instances_wancxdev() {
local map maps=`wan_device_get_interface_maps`
for map in $maps; do
local iface=${map%%:*}
map=${map#*:}
local j=${map%%:*}
map=${map#*:}
local protocol=${map%%:*}
local default=${map#*:}
sub_entry_wandevice_wanconnectiondevice "$1" "$j" "$iface" "$protocol" "$default"
done
return 0;
}
#######################################
# Data model parameters functions #
#######################################
wan_device_get_interface_maps() {
#should return a list like this: "<interface1>:<instance1>:<protocol>:<default interface? 1 : 0> <interface2>:<instance>:<protocol>:<default interface? 1 : 0>"
echo "mng:1:IP:1 wan:2:PPP:0"
}
wan_device_get_ipcx_status() {
echo "Connected"
}
wan_device_get_ipcx_ipaddr() {
local val iface="$1"
network_get_ipaddr val "$iface"
echo "$val"
}
wan_device_get_ipcx_macaddr() {
local val iface="$1"
if [ -z "$default_wan_device_mng_interface_mac" ]; then
val=`$UCI_GET network.$iface.macaddr`
else
val=$default_wan_device_mng_interface_mac
fi
echo $val
}
wan_device_get_wan_ppp_enable() {
local iface="$1"
local val=`$UCI_GET network.$iface.auto`
echo ${val:-1}
}
wan_device_set_wan_ppp_enable() {
local iface="$1"
local val="$2"
common_set_bool "network.$iface.auto" "$val" "1" "0"
local e="$?"
[ "$e" != "0" ] && return $e
return 0
}