OpenWrt tab option not shown

tabs not shown under section
it shows following
This section contains no values yet

m = Map( " network " , translate( " Test " ), translate( " TABS " ))
s = m:section(TypedSection, " netset " , translate( " Network Configuration " ))
s : tab ( "wan1" , translate ( "address" ) )
s: tab ( "wan2" , translate ( "address2" ) )

ipaddr1 = s:taboption( "wan1" , Value, " ipaddr1 " , translate( " address " ))
ipaddr1.datatype = " ip4addr "

netmask1 =s:taboption( "wan1" , Value, " netmask1 " , translate( " netmask " ))
netmask1.datatype = " ip4addr "
netmask1:value( " 255.255.255.0 " )
netmask1:value( " 255.255.0.0 " )
netmask1:value( " 255.0.0.0 " )

return m

You need to add at least one config netset section to /etc/config/network or set s.addremove = true to allow the user to create sections via the gui

1 Like

i want this tab like output
:point_down:

i also created config file but its not working please help