What is 'config ifstate' in LuCI file?

Can someone explain what this config in /etc/config/luci is for?
I'm trying to clean up old config files and noticed this (and cannot find documentation):

config ifstate                                 
	option interface 'xxxx'     
	option ifname 'xxx0'                    
	option bridge 'false'

Also, is this config needed in versions 18 and 19?

1 Like

Good question. I have there 2 vpn interfaces, 1 of which is not operational anymore.

config ifstate
	option interface 'elvetias'
	option ifname 'tun1'
	option bridge 'false'

config ifstate
	option interface 'vps'
	option ifname 'tun0'
	option bridge 'false'

My config was from an IPENCAP tunnel. After just removing the config a few moments ago, it has remained operational. In addition, adding a test interface with the same settings, didn't append the 'config ifstate' section to /etc/config/luci

I believe this is may be a remnant config from LEDE v17 to disable bridging - but I need some clarity on that.

Its internal backup entries made by LuCI to remember the original state of the bridge and ifname options. After someone complained about LuCI adding orig_bridge and orig_ifname fields to /etc/config/network, the backup settings have been moved to /etc/config/luci instead. You can safely remove them.

5 Likes

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