UBus command failed unexpectedly

Hi everyone,

I have started learning OpenWRT platform not so long ...
Right now I am trying to work with netifd using UBus, but when I call the following command it returns an error:

root@Lima:/# ubus call network.interface status
Command failed: Invalid argument

But interface allow this request to be called without parameters:

root@Lima:/# ubus -v list network.interface
'network.interface' @84a5d9f1
	"up":{}
	"down":{}
	"status":{}
	"prepare":{}
	"dump":{}
	"add_device":{"name":"String","link-ext":"Boolean"}
	"remove_device":{"name":"String","link-ext":"Boolean"}
	"notify_proto":{}
	"remove":{}
	"set_data":{}

Have anybody faced with this issue or maybe I'am doing something wrong ?

ubus call network.interface.lan status
2 Likes

Yeah, thanks !!

I've already figured out that network.interface is private for use by network.interface.lan, network.interface.wan and other such interfaces ... I've just looked at source code and figure out this :wink:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.