Missing commit message. Contributed by must go in commit message and not
in subject.
On Thu, Dec 06, 2012 at 04:54:46PM +0100, Mohamed wrote:
>
> Signed-off-by: Mohamed <mohamed.kallel@pivasoftware.com>
> Signed-off-by: Ahmed ZRIBI <ahmed.zribi@pivasoftware.com>
> ---
> ext/openwrt/scripts/functions/device_info | 94 +++++++++++++++
> ext/openwrt/scripts/functions/lan_device | 50 ++++++++
> ext/openwrt/scripts/functions/management_server | 143
> +++++++++++++++++++++++
> ext/openwrt/scripts/functions/wan_device | 105 +++++++++++++++++
> 4 files changed, 392 insertions(+), 0 deletions(-)
>
> diff --git a/ext/openwrt/scripts/functions/device_info
> b/ext/openwrt/scripts/functions/device_info
> index c3c6c33..2be20b5 100644
> --- a/ext/openwrt/scripts/functions/device_info
> +++ b/ext/openwrt/scripts/functions/device_info
> @@ -1,5 +1,6 @@
> #!/bin/sh
> # Copyright (C) 2011-2012 Luka Perkov <freecwmp@lukaperkov.net>
> +# Copyright (C) 2012-2013 Ahmed ZRIBI <ahmed.zribi@pivasoftware.com>
It's not 2013 yet. Is there a reason why you don't use "Zribi"?
>
> get_device_info_manufacturer() {
> local val=""
> @@ -10,6 +11,9 @@ case "$action" in
> get_name)
> val="0"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val"
> "InternetGatewayDevice.DeviceInfo.Manufacturer"
> + ;;
> esac
> ubus_freecwmp_output "InternetGatewayDevice.DeviceInfo.Manufacturer" "$val"
> }
> @@ -27,6 +31,9 @@ case "$action" in
> get_name)
> val="0"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val"
> "InternetGatewayDevice.DeviceInfo.ManufacturerOUI"
> + ;;
> esac
> ubus_freecwmp_output "InternetGatewayDevice.DeviceInfo.ManufacturerOUI"
> "$val"
> }
> @@ -44,6 +51,9 @@ case "$action" in
> get_name)
> val="0"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val"
> "InternetGatewayDevice.DeviceInfo.ProductClass"
> + ;;
> esac
> ubus_freecwmp_output "InternetGatewayDevice.DeviceInfo.ProductClass" "$val"
> }
> @@ -61,6 +71,9 @@ case "$action" in
> get_name)
> local val="0"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val"
> "InternetGatewayDevice.DeviceInfo.SerialNumber"
> + ;;
> esac
> ubus_freecwmp_output "InternetGatewayDevice.DeviceInfo.SerialNumber" "$val"
> }
> @@ -78,6 +91,9 @@ case "$action" in
> get_name)
> val="0"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val"
> "InternetGatewayDevice.DeviceInfo.HardwareVersion"
> + ;;
> esac
> ubus_freecwmp_output "InternetGatewayDevice.DeviceInfo.HardwareVersion"
> "$val"
> }
> @@ -95,6 +111,9 @@ case "$action" in
> get_name)
> val="0"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val"
> "InternetGatewayDevice.DeviceInfo.SoftwareVersion"
> + ;;
> esac
> ubus_freecwmp_output "InternetGatewayDevice.DeviceInfo.SoftwareVersion"
> "$val"
> }
> @@ -112,6 +131,9 @@ case "$action" in
> get_name)
> val="0"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val"
> "InternetGatewayDevice.DeviceInfo.UpTime"
> + ;;
> esac
> ubus_freecwmp_output "InternetGatewayDevice.DeviceInfo.UpTime" "$val"
> }
> @@ -129,6 +151,9 @@ case "$action" in
> get_name)
> val="0"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val"
> "InternetGatewayDevice.DeviceInfo.DeviceLog"
> + ;;
> esac
> ubus_freecwmp_output "InternetGatewayDevice.DeviceInfo.DeviceLog" "$val"
> }
> @@ -281,6 +306,66 @@ esac
> return $FAULT_CPE_INVALID_PARAMETER_NAME
> }
>
> +get_device_info_notification() {
> +case "$1" in
> + InternetGatewayDevice.)
> + get_device_info_manufacturer
> + get_device_info_oui
> + get_device_info_product_class
> + get_device_info_serial_number
> + get_device_info_hardware_version
> + get_device_info_software_version
> + get_device_info_uptime
> + get_device_info_device_log
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.DeviceInfo.)
> + get_device_info_manufacturer
> + get_device_info_oui
> + get_device_info_product_class
> + get_device_info_serial_number
> + get_device_info_hardware_version
> + get_device_info_software_version
> + get_device_info_uptime
> + get_device_info_device_log
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.DeviceInfo.Manufacturer)
> + get_device_info_manufacturer
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.DeviceInfo.ManufacturerOUI)
> + get_device_info_oui
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.DeviceInfo.ProductClass)
> + get_device_info_product_class
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.DeviceInfo.SerialNumber)
> + get_device_info_serial_number
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.DeviceInfo.HardwareVersion)
> + get_device_info_hardware_version
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.DeviceInfo.SoftwareVersion)
> + get_device_info_software_version
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.DeviceInfo.UpTime)
> + get_device_info_uptime
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.DeviceInfo.DeviceLog)
> + get_device_info_device_log
> + return $FAULT_CPE_NO_FAULT
> + ;;
> +esac
> +return $FAULT_CPE_INVALID_PARAMETER_NAME
> +}
> +
> set_device_info() {
> case "$1" in
> InternetGatewayDevice.DeviceInfo.Manufacturer)
> @@ -354,6 +439,15 @@ get_device_info_generic_name() {
> return $FAULT_CPE_INVALID_PARAMETER_NAME
> }
>
> +get_device_info_generic_notification() {
> + check_parameter_device_info_generic "$1" ; _tmp=$? ; if [ "$_tmp" -eq 1
> ]; then return $FAULT_CPE_INVALID_PARAMETER_NAME; fi
> +
> + local val
> + freecwmp_get_parameter_notification "val" "$1"
> + ubus_freecwmp_output "$1" "$val"
> + return $FAULT_CPE_NO_FAULT
> +}
> +
> set_device_info_generic() {
> check_parameter_device_info_generic "$1" ; _tmp=$? ; if [ "$_tmp" -eq 1
> ]; then return 0; fi
>
> diff --git a/ext/openwrt/scripts/functions/lan_device
> b/ext/openwrt/scripts/functions/lan_device
> index 64910e2..949f11c 100644
> --- a/ext/openwrt/scripts/functions/lan_device
> +++ b/ext/openwrt/scripts/functions/lan_device
> @@ -1,5 +1,6 @@
> #!/bin/sh
> # Copyright (C) 2012 Luka Perkov <freecwmp@lukaperkov.net>
> +# Copyright (C) 2013 Ahmed ZRIBI <ahmed.zribi@pivasoftware.com>
>
> get_wlan_enable() {
> local num="$1"
> @@ -21,6 +22,11 @@ case "$action" in
> let num=$num+1
> ubus_freecwmp_output
> "InternetGatewayDevice.LANDevice.1.WLANConfiguration.$num.Enable" "$val"
> ;;
> + get_notification)
> + let num=$num+1
> + freecwmp_get_parameter_notification "val"
> "InternetGatewayDevice.LANDevice.1.WLANConfiguration.$num.Enable"
> + ubus_freecwmp_output
> "InternetGatewayDevice.LANDevice.1.WLANConfiguration.$num.Enable" "$val"
> + ;;
> esac
> }
>
> @@ -50,6 +56,11 @@ case "$action" in
> let num=$num+1
> ubus_freecwmp_output
> "InternetGatewayDevice.LANDevice.1.WLANConfiguration.$num.SSID" "$val"
> ;;
> + get_notification)
> + let num=$num+1
> + freecwmp_get_parameter_notification "val"
> "InternetGatewayDevice.LANDevice.1.WLANConfiguration.$num.SSID"
> + ubus_freecwmp_output
> "InternetGatewayDevice.LANDevice.1.WLANConfiguration.$num.SSID" "$val"
> + ;;
> esac
>
> }
> @@ -169,6 +180,45 @@ esac
> return $FAULT_CPE_INVALID_PARAMETER_NAME
> }
>
> +get_lan_device_notification() {
> +case "$1" in
> + InternetGatewayDevice.)
> + get_wlan_enable 0
> + get_wlan_ssid 0
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.LANDevice.)
> + get_wlan_enable 0
> + get_wlan_ssid 0
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.LANDevice.1.)
> + get_wlan_enable 0
> + get_wlan_ssid 0
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.LANDevice.1.WLANConfiguration.)
> + get_wlan_enable 0
> + get_wlan_ssid 0
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.)
> + get_wlan_enable 0
> + get_wlan_ssid 0
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.Enable)
> + get_wlan_enable 0
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID)
> + get_wlan_ssid 0
> + return $FAULT_CPE_NO_FAULT
> + ;;
> +esac
> +return $FAULT_CPE_INVALID_PARAMETER_NAME
> +}
> +
> set_lan_device() {
> case "$1" in
> InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.Enable)
> diff --git a/ext/openwrt/scripts/functions/management_server
> b/ext/openwrt/scripts/functions/management_server
> index eed16d1..b1e759d 100644
> --- a/ext/openwrt/scripts/functions/management_server
> +++ b/ext/openwrt/scripts/functions/management_server
> @@ -1,5 +1,6 @@
> #!/bin/sh
> # Copyright (C) 2011-2012 Luka Perkov <freecwmp@lukaperkov.net>
> +# Copyright (C) 2012-2013 Ahmed ZRIBI <ahmed.zribi@pivasoftware.com>
>
> get_management_server_url() {
> local tmp=${FLAGS_value}
> @@ -17,6 +18,9 @@ case "$action" in
> get_name)
> val="0"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> ubus_freecwmp_output "$parm" "$val"
> }
> @@ -62,6 +66,9 @@ case "$action" in
> get_name)
> val="0"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> ubus_freecwmp_output "$parm" "$val"
> }
> @@ -80,6 +87,9 @@ case "$action" in
> get_name)
> val="0"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> ubus_freecwmp_output "$parm" "$val"
> }
> @@ -99,6 +109,9 @@ case "$action" in
> get_name)
> val="1"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> ubus_freecwmp_output "$parm" "$val" "$type"
> }
> @@ -119,6 +132,9 @@ case "$action" in
> get_name)
> val="1"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> ubus_freecwmp_output "$parm" "$val" "$type"
> }
> @@ -150,6 +166,9 @@ case "$action" in
> get_name)
> val="0"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> ubus_freecwmp_output "$parm" "$val"
> }
> @@ -164,6 +183,9 @@ case "$action" in
> get_name)
> val="0"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> ubus_freecwmp_output "$parm" "$val"
> }
> @@ -182,6 +204,9 @@ case "$action" in
> get_name)
> val="0"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> ubus_freecwmp_output "$parm" "$val"
> }
> @@ -202,6 +227,9 @@ case "$action" in
> get_name)
> val="1"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> if [ "$FLAGS_value" != "${FLAGS_TRUE}" ]; then
> ubus_freecwmp_output "$parm" "$val"
> @@ -224,6 +252,9 @@ case "$action" in
> get_name)
> val="1"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> if [ "$FLAGS_value" != "${FLAGS_TRUE}" ]; then
> ubus_freecwmp_output "$parm" "$val"
> @@ -250,6 +281,9 @@ case "$action" in
> get_name)
> val="1"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> if [ "$FLAGS_value" != "${FLAGS_TRUE}" ]; then
> ubus_freecwmp_output "$parm" "$val"
> @@ -272,6 +306,9 @@ case "$action" in
> get_name)
> val="1"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> if [ "$FLAGS_value" != "${FLAGS_TRUE}" ]; then
> ubus_freecwmp_output "$parm" "$val"
> @@ -294,6 +331,9 @@ case "$action" in
> get_name)
> val="1"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> if [ "$FLAGS_value" != "${FLAGS_TRUE}" ]; then
> ubus_freecwmp_output "$parm" "$val"
> @@ -536,6 +576,100 @@ esac
> return $FAULT_CPE_INVALID_PARAMETER_NAME
> }
>
> +get_management_server_notification() {
> +case "$1" in
> + InternetGatewayDevice.)
> + get_management_server_url
> + get_management_server_username
> + get_management_server_password
> + get_management_server_periodic_inform_enable
> + get_management_server_periodic_inform_interval
> + get_management_server_connection_request_url
> + get_management_server_connection_request_username
> + get_management_server_connection_request_password
> + get_management_server_x_freecwmp_org__acs_scheme
> + get_management_server_x_freecwmp_org__acs_hostname
> + get_management_server_x_freecwmp_org__acs_port
> + get_management_server_x_freecwmp_org__acs_path
> + get_management_server_x_freecwmp_org__connection_request_port
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.ManagementServer.)
> + get_management_server_url
> + get_management_server_username
> + get_management_server_password
> + get_management_server_periodic_inform_enable
> + get_management_server_periodic_inform_interval
> + get_management_server_connection_request_url
> + get_management_server_connection_request_username
> + get_management_server_connection_request_password
> + get_management_server_x_freecwmp_org__acs_scheme
> + get_management_server_x_freecwmp_org__acs_hostname
> + get_management_server_x_freecwmp_org__acs_port
> + get_management_server_x_freecwmp_org__acs_path
> + get_management_server_x_freecwmp_org__connection_request_port
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.ManagementServer.URL)
> + get_management_server_url
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.ManagementServer.Username)
> + get_management_server_username
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.ManagementServer.Password)
> + get_management_server_password
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.ManagementServer.PeriodicInformEnable)
> + get_management_server_periodic_inform_enable
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.ManagementServer.PeriodicInformInterval)
> + get_management_server_periodic_inform_interval
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.ManagementServer.ConnectionRequestURL)
> + get_management_server_connection_request_url
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.ManagementServer.ConnectionRequestUsername)
> + get_management_server_connection_request_username
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.ManagementServer.ConnectionRequestPassword)
> + get_management_server_connection_request_password
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.ManagementServer.X_freecwmp_org__ACS_Scheme)
> + get_management_server_x_freecwmp_org__acs_scheme
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.ManagementServer.X_freecwmp_org__ACS_Hostname)
> + get_management_server_x_freecwmp_org__acs_hostname
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.ManagementServer.X_freecwmp_org__ACS_Port)
> + get_management_server_x_freecwmp_org__acs_port
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.ManagementServer.X_freecwmp_org__ACS_Path)
> + get_management_server_x_freecwmp_org__acs_path
> + return $FAULT_CPE_NO_FAULT
> + ;;
> +
> InternetGatewayDevice.ManagementServer.X_freecwmp_org__Connection_Request_Port)
> + get_management_server_x_freecwmp_org__connection_request_port
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.ManagementServer.ParameterKey)
> + get_management_server_parameter_key
> + return $FAULT_CPE_NO_FAULT
> + ;;
> +esac
> +return $FAULT_CPE_INVALID_PARAMETER_NAME
> +}
> +
> set_management_server() {
> case "$1" in
> InternetGatewayDevice.ManagementServer.URL)
> @@ -606,6 +740,15 @@ get_management_server_generic_name() {
> return $FAULT_CPE_NO_FAULT
> }
>
> +get_management_server_generic_notification() {
> + check_parameter_management_server_generic "$1" ; _tmp=$? ; if [ "$_tmp"
> -eq 1 ]; then return $FAULT_CPE_INVALID_PARAMETER_NAME; fi
> +
> + local val
> + freecwmp_get_parameter_notification "val" "$1"
> + ubus_freecwmp_output "$1" "$val"
> + return $FAULT_CPE_NO_FAULT
> +}
> +
> set_management_server_generic() {
> check_parameter_management_server_generic "$1" ; _tmp=$? ; if [ "$_tmp"
> -eq 1 ]; then return 0; fi
>
> diff --git a/ext/openwrt/scripts/functions/wan_device
> b/ext/openwrt/scripts/functions/wan_device
> index 9c7cd14..02ba365 100644
> --- a/ext/openwrt/scripts/functions/wan_device
> +++ b/ext/openwrt/scripts/functions/wan_device
> @@ -14,6 +14,9 @@ case "$action" in
> get_name)
> val="0"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> ubus_freecwmp_output "$parm" "$val" "$type"
> }
> @@ -32,6 +35,9 @@ case "$action" in
> get_name)
> val="0"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> if [ "$FLAGS_value" != "${FLAGS_TRUE}" ]; then
> ubus_freecwmp_output "$parm" "$val"
> @@ -54,6 +60,9 @@ case "$action" in
> get_name)
> val="0"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> if [ "$FLAGS_value" != "${FLAGS_TRUE}" ]; then
> ubus_freecwmp_output "$parm" "$val"
> @@ -76,6 +85,9 @@ case "$action" in
> get_name)
> val="1"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> ubus_freecwmp_output "$parm" "$val" "$type"
> }
> @@ -101,6 +113,9 @@ case "$action" in
> get_name)
> val="1"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> ubus_freecwmp_output "$parm" "$val"
> }
> @@ -119,6 +134,9 @@ case "$action" in
> get_name)
> val="1"
> ;;
> + get_notification)
> + freecwmp_get_parameter_notification "val" "$parm"
> + ;;
> esac
> ubus_freecwmp_output "$parm" "$val"
> }
> @@ -343,6 +361,93 @@ esac
> return $FAULT_CPE_INVALID_PARAMETER_NAME
> }
>
> +get_wan_device_notification() {
> +case "$1" in
> + InternetGatewayDevice.)
> + get_wan_device_mng_status
> + get_wan_device_mng_interface_ip
> + get_wan_device_mng_interface_mac
> + get_wan_device_wan_ppp_enable
> + get_wan_device_wan_ppp_username
> + get_wan_device_wan_ppp_password
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.WANDevice.)
> + get_wan_device_mng_status
> + get_wan_device_mng_interface_ip
> + get_wan_device_mng_interface_mac
> + get_wan_device_wan_ppp_enable
> + get_wan_device_wan_ppp_username
> + get_wan_device_wan_ppp_password
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.WANDevice.1.)
> + get_wan_device_mng_status
> + get_wan_device_mng_interface_ip
> + get_wan_device_mng_interface_mac
> + get_wan_device_wan_ppp_enable
> + get_wan_device_wan_ppp_username
> + get_wan_device_wan_ppp_password
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.WANDevice.1.WANConnectionDevice.)
> + get_wan_device_mng_status
> + get_wan_device_mng_interface_ip
> + get_wan_device_mng_interface_mac
> + get_wan_device_wan_ppp_enable
> + get_wan_device_wan_ppp_username
> + get_wan_device_wan_ppp_password
> + return $FAULT_CPE_NO_FAULT
> + ;;
> + InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.)
> + get_wan_device_mng_status
> + get_wan_device_mng_interface_ip
> + get_wan_device_mng_interface_mac
> + get_wan_device_wan_ppp_enable
> + get_wan_device_wan_ppp_username
> + get_wan_device_wan_ppp_password
> + return $FAULT_CPE_NO_FAULT
> + ;;
> +
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.)
> + get_wan_device_mng_status
> + get_wan_device_mng_interface_ip
> + get_wan_device_mng_interface_mac
> + return $FAULT_CPE_NO_FAULT
> + ;;
> +
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.)
> + get_wan_device_mng_status
> + get_wan_device_mng_interface_ip
> + get_wan_device_mng_interface_mac
> + return $FAULT_CPE_NO_FAULT
> + ;;
> +
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ConnectionStatus)
> + get_wan_device_mng_status
> + return $FAULT_CPE_NO_FAULT
> + ;;
> +
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress)
> + get_wan_device_mng_interface_ip
> + return $FAULT_CPE_NO_FAULT
> + ;;
> +
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.MACAddress)
> + get_wan_device_mng_interface_mac
> + return $FAULT_CPE_NO_FAULT
> + ;;
> +
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection.1.Enable)
> + get_wan_device_wan_ppp_enable
> + return $FAULT_CPE_NO_FAULT
> + ;;
> +
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection.1.Username)
> + get_wan_device_wan_ppp_username
> + return $FAULT_CPE_NO_FAULT
> + ;;
> +
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection.1.Password)
> + get_wan_device_wan_ppp_password
> + return $FAULT_CPE_NO_FAULT
> + ;;
> +esac
> +return $FAULT_CPE_INVALID_PARAMETER_NAME
> +}
> +
> set_wan_device() {
> case "$1" in
>
> InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection.1.Enable)
> --
> 1.7.4.1
Luka
|