Re: [OpenWrt-Devel] how to get config option value on model ListValue!

2013-01-06 Thread . Elvis
thank you Jow! 2013/1/4 Jo-Philipp Wich > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi. > > > how to get the value of the option name? Can i use foreach? follow > > is my program [...] > > m.uci:foreach("dhcp", "host", > function(section) > profile:value(section['name']) >

Re: [OpenWrt-Devel] how to get config option value on model ListValue!

2013-01-04 Thread Jo-Philipp Wich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. > how to get the value of the option name? Can i use foreach? follow > is my program [...] m.uci:foreach("dhcp", "host", function(section) profile:value(section['name']) end) ~ Jow -BEGIN PGP SIGNATURE- Version: GnuPG v1.

[OpenWrt-Devel] how to get config option value on model ListValue!

2013-01-04 Thread . Elvis
hi all , The following is my dhcp config config host option name 'q' option mac '64:31:50:93:f5:2c' option ip '192.168.11.123' config host option name 'w' option mac '64:31:50:93:f5:2c' option ip '192.168.11.124' how to get the value of the option