[LEDE-DEV] Question about rpcd uci::state
Jo-Philipp Wich
jo at mein.io
Mon Mar 6 04:15:31 PST 2017
Hi,
> the uci ubus service (part of rpcd) provides the method 'state' which from reading
> the source code is expected to provide the current state of an option ignoring
> pending changes.
No it is a method to provide access to the legacy concept of "state
variables" which are epheramal uci values not backed by configuration
files or pending changes.
State variables used to be required to reflect network runtime state in
uci but the entire concept got faded out with the introduction of netifd
and runtime information via ubus.
Some packages and legacy components still use state variables, so I
decided to implement this facility in rpcd.
There currently is no way to query option values while ignoring the
changes, but that should be easy to implement.
~ Jo
More information about the Lede-dev
mailing list