- local oif = uci:add("olsr", "Interface")
- uci:set("olsr", oif, "Interface", "ff")
- uci:set("olsr", oif, "HelloInterval", "6.0")
- uci:set("olsr", oif, "HelloValidityTime", "108.0")
- uci:set("olsr", oif, "TcInterval", "4.0")
- uci:set("olsr", oif, "TcValidityTime", "324.0")
- uci:set("olsr", oif, "MidInterval", "18.0")
- uci:set("olsr", oif, "MidValidityTime", "324.0")
- uci:set("olsr", oif, "HnaInterval", "18.0")
- uci:set("olsr", oif, "HnaValidityTime", "108.0")
+ local oif = uci:t_add("olsr", "Interface")
+ uci:t_set("olsr", oif, "Interface", "ff")
+ uci:t_set("olsr", oif, "HelloInterval", "6.0")
+ uci:t_set("olsr", oif, "HelloValidityTime", "108.0")
+ uci:t_set("olsr", oif, "TcInterval", "4.0")
+ uci:t_set("olsr", oif, "TcValidityTime", "324.0")
+ uci:t_set("olsr", oif, "MidInterval", "18.0")
+ uci:t_set("olsr", oif, "MidValidityTime", "324.0")
+ uci:t_set("olsr", oif, "HnaInterval", "18.0")
+ uci:t_set("olsr", oif, "HnaValidityTime", "108.0")